svn commit: r354952 - head/sys/kern

Andrew Turner andrew at FreeBSD.org
Thu Nov 21 13:59:02 UTC 2019


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;


More information about the svn-src-all mailing list