summaryrefslogtreecommitdiffstats
path: root/src/svm/ssvm.c
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-04-20 09:52:39 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-04-22 17:11:56 +0000
commit77d42fc7193fb3ffa9c6f2f9c6d4459493b8cff2 (patch)
tree3af006b7028bf8acd8569d94df54c10d7f4e453d /src/svm/ssvm.c
parent07bbaef593939e9d03ba131e03296587472514ce (diff)
svm: asan: fix asan support
- restrict the unittests SVM address space to what is supported by ASan - mark SVM mmap()ed address space accessible for ASan - SVM shared memory heap scheme means some allocation can happen outside the current process. Lazily mark those accessible for ASan Type: fix Change-Id: I7c196c80b2a5297651d0afa54f1a8e478fcf59b1 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/svm/ssvm.c')
-rw-r--r--src/svm/ssvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svm/ssvm.c b/src/svm/ssvm.c
index 0305278a6b6..073bc0b5403 100644
--- a/src/svm/ssvm.c
+++ b/src/svm/ssvm.c
@@ -97,6 +97,7 @@ ssvm_master_init_shm (ssvm_private_t * ssvm)
close (ssvm_fd);
sh = mapa.addr;
+ CLIB_MEM_UNPOISON (sh, sizeof (*sh));
sh->master_pid = ssvm->my_pid;
sh->ssvm_size = ssvm->ssvm_size;
sh->ssvm_va = pointer_to_uword (sh);