]> git.droids-corp.org - dpdk.git/commit
mem: instrument allocator for ASan
authorZhihong Peng <zhihongx.peng@intel.com>
Wed, 20 Oct 2021 07:46:41 +0000 (15:46 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 29 Oct 2021 14:25:03 +0000 (16:25 +0200)
commit6cc51b1293ceac4a77d4bf7ac91a8bbd59e1f78c
tree3fbb03784d3e0f19d433643ba389b51ecd0869a6
parent6e0290250d5cfa19a3cdb5e6a30634ddd317c85d
mem: instrument allocator for ASan

This patch adds necessary hooks in the memory allocator for ASan.

This feature is currently available in DPDK only on Linux x86_64.
If other OS/architectures want to support it, ASAN_SHADOW_OFFSET must be
defined and RTE_MALLOC_ASAN must be set accordingly in meson.

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
config/meson.build
doc/guides/prog_guide/asan.rst
lib/eal/common/malloc_elem.c
lib/eal/common/malloc_elem.h
lib/eal/common/malloc_heap.c
lib/eal/common/rte_malloc.c