aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/unittest/svm_fifo_test.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/plugins/unittest/svm_fifo_test.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/plugins/unittest/svm_fifo_test.c')
-rw-r--r--src/plugins/unittest/svm_fifo_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/unittest/svm_fifo_test.c b/src/plugins/unittest/svm_fifo_test.c
index 87b85da8951..ccaffa1f236 100644
--- a/src/plugins/unittest/svm_fifo_test.c
+++ b/src/plugins/unittest/svm_fifo_test.c
@@ -2710,8 +2710,8 @@ svm_fifo_test (vlib_main_t * vm, unformat_input_t * input,
int res = 0;
char *str;
- clib_warning ("high mem %lu", HIGH_SEGMENT_BASEVA << 4);
- fifo_segment_main_init (&segment_main, HIGH_SEGMENT_BASEVA << 4, 5);
+ clib_warning ("high mem %lu", HIGH_SEGMENT_BASEVA << 1);
+ fifo_segment_main_init (&segment_main, HIGH_SEGMENT_BASEVA << 1, 5);
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (input, "fifo1"))