We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d28c8d commit 1d2252fCopy full SHA for 1d2252f
mm/kasan/report.c
@@ -92,8 +92,16 @@ static void end_report(unsigned long *flags)
92
pr_err("==================================================================\n");
93
add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
94
spin_unlock_irqrestore(&report_lock, *flags);
95
- if (panic_on_warn)
+ if (panic_on_warn) {
96
+ /*
97
+ * This thread may hit another WARN() in the panic path.
98
+ * Resetting this prevents additional WARN() from panicking the
99
+ * system on this thread. Other threads are blocked by the
100
+ * panic_mutex in panic().
101
+ */
102
+ panic_on_warn = 0;
103
panic("panic_on_warn set ...\n");
104
+ }
105
kasan_enable_current();
106
}
107
0 commit comments