Disable KCSAN within a panic.

The kernel is single threaded at this point and the panic is more
important.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Andrew Turner 2019-11-21 13:59:01 +00:00
parent 58e70aa0cf
commit a27ac4644a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354952

View File

@ -153,6 +153,8 @@ kcsan_access(uintptr_t addr, size_t size, bool write, bool atomic, uintptr_t pc)
return;
if (__predict_false(kcsan_md_unsupported((vm_offset_t)addr)))
return;
if (__predict_false(panicstr != NULL))
return;
new.addr = addr;
new.size = size;