Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
misc: address sanitizer: fix vm instrumentation
[vpp.git]
/
src
/
vppinfra
/
linux
/
mem.c
diff --git
a/src/vppinfra/linux/mem.c
b/src/vppinfra/linux/mem.c
index
407e923
..
69ac871
100644
(file)
--- 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;
}