test/mem: disable ASan when accessing unallocated memory
authorDavid Marchand <david.marchand@redhat.com>
Thu, 5 May 2022 09:29:51 +0000 (11:29 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 11 May 2022 12:05:30 +0000 (14:05 +0200)
commit48ff13ef37cbd63ecba9b28d5377444964c9c49f
tree44a6813632ca0aa0b7e46f1c932dcb5ec176fdef
parentaf0892af4227802a184d111a86db82924c220979
test/mem: disable ASan when accessing unallocated memory

As described in bugzilla, ASan reports accesses to all memory segment as
invalid, since those parts have not been allocated with rte_malloc.
Move __rte_no_asan to rte_common.h and disable ASan on a part of the test.

Bugzilla ID: 880
Fixes: 6cc51b1293ce ("mem: instrument allocator for ASan")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
app/test/test_memory.c
lib/eal/common/malloc_elem.h
lib/eal/include/rte_common.h