diff options
-rw-r--r-- | mm/kasan/report.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 24c1211fe9d5..0ee82111a0c4 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -133,6 +133,8 @@ static void kasan_end_report(unsigned long *flags) pr_err("==================================================================\n"); add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE); spin_unlock_irqrestore(&report_lock, *flags); + if (panic_on_warn) + panic("panic_on_warn set ...\n"); kasan_enable_current(); } |