summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-17 17:58:59 +0100
committerFlorin Coras <florin.coras@gmail.com>2020-11-19 15:35:00 +0000
commite3e9d8af46a407afc6e7e83cf705f604c771923f (patch)
tree794307462c3cf4ffda43a1245c702dcd3abade14
parent2064047b9e72a3b7eec7d181a5230cc86594446b (diff)
svm: fix high segment base address for ASan
AddressSanitizer has specific requirements on memory map. In particular, the range [0x00007fff8000, 0x10007fff7fff] is reserved for ASan use. Type: fix Fixes: f260eb97866978746ebd3f3441dc66e4ff7111cd Change-Id: Ie96c4dd88b4f02d7fc5c24464572ff72cb6fd96b Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/svm/svm_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svm/svm_common.h b/src/svm/svm_common.h
index ec5e70b83a6..3a3db5d2f3c 100644
--- a/src/svm/svm_common.h
+++ b/src/svm/svm_common.h
@@ -82,7 +82,7 @@ typedef struct svm_map_region_args_
*/
#if __WORDSIZE == 64
#ifdef CLIB_SANITIZE_ADDR
-#define HIGH_SEGMENT_BASEVA 0x2000000000
+#define HIGH_SEGMENT_BASEVA 0x300000000000 /* DO NOT CHANGE THIS: YOU'LL BREAK ASAN */
#else /* CLIB_SANITIZE_ADDR */
#define HIGH_SEGMENT_BASEVA (128ULL << 30) /* 128GB */
#endif /* CLIB_SANITIZE_ADDR */