Message ID | 20230202054406.221721-4-ebiggers@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | Backport oops_limit to 4.14 | expand |
diff --git a/mm/kasan/report.c b/mm/kasan/report.c index 6bcfb01ba0386..5b421f8433488 100644 --- a/mm/kasan/report.c +++ b/mm/kasan/report.c @@ -172,7 +172,7 @@ 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) + if (panic_on_warn && !test_bit(KASAN_BIT_MULTI_SHOT, &kasan_flags)) panic("panic_on_warn set ...\n"); kasan_enable_current(); }