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:
@@ -174,6 +174,7 @@ kasan_code_name(uint8_t code)
|
|||||||
|
|
||||||
#define REPORT(f, ...) do { \
|
#define REPORT(f, ...) do { \
|
||||||
if (panic_on_violation) { \
|
if (panic_on_violation) { \
|
||||||
|
kasan_enabled = false; \
|
||||||
panic(f, __VA_ARGS__); \
|
panic(f, __VA_ARGS__); \
|
||||||
} else { \
|
} else { \
|
||||||
struct stack st; \
|
struct stack st; \
|
||||||
|
|||||||
Reference in New Issue
Block a user