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