From 3e6106ff56095f8ee90ac127f8c5a84fbe4d4636 Mon Sep 17 00:00:00 2001 From: Jens Wiklander Date: Fri, 26 Jul 2024 15:21:20 +0200 Subject: [PATCH] core: don't instrument asan functions Don't instrument the functions used by CFG_CORE_SANITIZE_KADDRESS=y since it may cause recursive calls together with CFG_CORE_DEBUG_CHECK_STACKS=y. Signed-off-by: Jens Wiklander Acked-by: Jerome Forissier --- core/kernel/sub.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/kernel/sub.mk b/core/kernel/sub.mk index e345543c19e..a8cdba2e88c 100644 --- a/core/kernel/sub.mk +++ b/core/kernel/sub.mk @@ -1,5 +1,6 @@ srcs-$(CFG_CORE_SANITIZE_KADDRESS) += asan.c cflags-remove-asan.c-y += $(cflags_kasan) +cflags-remove-asan.c-y += $(finstrument-functions) srcs-$(CFG_TEE_CORE_DEBUG) += spin_lock_debug.c srcs-y += assert.c srcs-y += console.c