diff --git a/kernel/panic.c b/kernel/panic.c index 1d07cf9af849..dde00886c896 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -84,6 +84,7 @@ void panic(const char *fmt, ...) * after the panic_lock is acquired) from invoking panic again. */ local_irq_disable(); + preempt_disable_notrace(); /* * It's possible to come here directly from a panic-assertion and