assert: disable kasan in assert
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
f51c5452b2
commit
9da6761453
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user