Skip to content

Commit

Permalink
core: don't instrument asan functions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
jenswi-linaro authored and jforissier committed Aug 14, 2024
1 parent eadb6be commit 3e6106f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/kernel/sub.mk
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3e6106f

Please sign in to comment.