From 9da6761453fc86d45432614bb41a078a22b78562 Mon Sep 17 00:00:00 2001 From: Xu Xingliang Date: Tue, 28 May 2024 11:39:16 +0800 Subject: [PATCH] assert: disable kasan in assert Signed-off-by: Xu Xingliang --- sched/misc/assert.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sched/misc/assert.c b/sched/misc/assert.c index fb9c1a9107..48a0fa4e92 100644 --- a/sched/misc/assert.c +++ b/sched/misc/assert.c @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -602,6 +603,10 @@ void _assert(FAR const char *filename, int linenum, if (os_ready && fatal) { + /* Disable KASAN to avoid false positive */ + + kasan_stop(); + #ifdef CONFIG_SMP pause_all_cpu(); #endif