aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/linux
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-02-07 11:58:16 +0100
committerBenoît Ganne <bganne@cisco.com>2020-02-07 12:00:48 +0100
commit1557d9a30dace17c5254d8abc5fad98776fef4c6 (patch)
treeb264c728a657401e025ef7549c99ee8c85db030d /src/vppinfra/linux
parentedf777272b211de3d54f5dc7b211ee84cdb31373 (diff)
misc: address sanitizer: fix vm instrumentation
Type: fix Change-Id: Ifd61c0683c85fe7340965c225ed23e46ec88e01a Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vppinfra/linux')
-rw-r--r--src/vppinfra/linux/mem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index 407e923fb78..69ac871567c 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -321,6 +321,7 @@ clib_mem_vm_ext_alloc (clib_mem_vm_alloc_t * a)
a->n_pages = n_pages;
a->addr = addr;
a->fd = fd;
+ CLIB_MEM_UNPOISON (addr, a->size);
goto done;
error:
@@ -398,6 +399,7 @@ clib_mem_vm_ext_map (clib_mem_vm_map_t * a)
return clib_error_return_unix (0, "mmap");
a->addr = addr;
+ CLIB_MEM_UNPOISON (addr, a->size);
return 0;
}