assert: disable kasan in assert

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Xu Xingliang 2024-05-28 11:39:16 +08:00 committed by Xiang Xiao
parent f51c5452b2
commit 9da6761453

View File

@ -41,6 +41,7 @@
#include <nuttx/reboot_notifier.h>
#include <nuttx/syslog/syslog.h>
#include <nuttx/usb/usbdev_trace.h>
#include <nuttx/mm/kasan.h>
#include <assert.h>
#include <debug.h>
@ -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