From 77d42fc7193fb3ffa9c6f2f9c6d4459493b8cff2 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Mon, 20 Apr 2020 09:52:39 +0200 Subject: svm: asan: fix asan support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/plugins/unittest/svm_fifo_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/unittest') 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")) -- cgit 1.2.3-korg