This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 9da6761453fc86d45432614bb41a078a22b78562
Author: Xu Xingliang <[email protected]>
AuthorDate: Tue May 28 11:39:16 2024 +0800

    assert: disable kasan in assert
    
    Signed-off-by: Xu Xingliang <[email protected]>
---
 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 <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

Reply via email to