KASAN: Disable checking before triggering a panic
KASAN hooks will not generate reports if panicstr != NULL, but then there is a window after the initial panic() call where another report may be raised. This can happen if a false positive occurs; to simplify debugging of such problems, avoid recursing. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
0dcef81de9
commit
ea3fbe0707
@ -174,6 +174,7 @@ kasan_code_name(uint8_t code)
|
||||
|
||||
#define REPORT(f, ...) do { \
|
||||
if (panic_on_violation) { \
|
||||
kasan_enabled = false; \
|
||||
panic(f, __VA_ARGS__); \
|
||||
} else { \
|
||||
struct stack st; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user