Author: andrew
Date: Thu Nov 21 13:59:01 2019
New Revision: 354952
URL: https://svnweb.freebsd.org/changeset/base/354952

Log:
  Disable KCSAN within a panic.
  
  The kernel is single threaded at this point and the panic is more
  important.
  
  Sponsored by: DARPA, AFRL

Modified:
  head/sys/kern/subr_csan.c

Modified: head/sys/kern/subr_csan.c
==============================================================================
--- head/sys/kern/subr_csan.c   Thu Nov 21 13:57:30 2019        (r354951)
+++ head/sys/kern/subr_csan.c   Thu Nov 21 13:59:01 2019        (r354952)
@@ -153,6 +153,8 @@ kcsan_access(uintptr_t addr, size_t size, bool write, 
                return;
        if (__predict_false(kcsan_md_unsupported((vm_offset_t)addr)))
                return;
+       if (__predict_false(panicstr != NULL))
+               return;
 
        new.addr = addr;
        new.size = size;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to