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 ae2e1aa commit 1d28c8dCopy full SHA for 1d28c8d
lib/ubsan.c
@@ -156,6 +156,17 @@ static void ubsan_epilogue(void)
156
"========================================\n");
157
158
current->in_ubsan--;
159
+
160
+ if (panic_on_warn) {
161
+ /*
162
+ * This thread may hit another WARN() in the panic path.
163
+ * Resetting this prevents additional WARN() from panicking the
164
+ * system on this thread. Other threads are blocked by the
165
+ * panic_mutex in panic().
166
+ */
167
+ panic_on_warn = 0;
168
+ panic("panic_on_warn set ...\n");
169
+ }
170
}
171
172
static void handle_overflow(struct overflow_data *data, void *lhs,
0 commit comments