panic: Avoid dump_stack() twice
PATCH 1/1 panic: Avoid dump_stack() twice
stacktrace will be dumped twice on ARM64 after commit 3f388f28639f ("panic: dump registers on panic_on_warn"), will not dump_stack when no regs as before.
Fixes 3f388f28639f ("panic: dump registers on panic_on_warn")
Signed-off-by Kefeng Wang <[email protected]>
--- kernel/panic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/panic.c +2 -1
@@ -605,7 +605,8 @@ void __warn(const char *file, int line, void *caller, unsigned taint,panic ("panic_on_warn set ...\n" ); } -dump_stack (); +if (!regs) +dump_stack ();print_irqtrace_events (current);
Signature · 1 line
2.26.2
Fixed already
https://ozlabs.org/~akpm/mmots/broken-out/panic-dont-dump-stack-twice-on-warn.patch
Sorry for breaking this :(
Quoted 25 lines · Kefeng Wang
stacktrace will be dumped twice on ARM64 after commit
3f388f28639f("panic: dump registers onpanic_on_warn"), will notdump_stackwhen no regs as before.Fixes 3f388f28639f ("panic: dump registers on panic_on_warn")Signed-off-by Kefeng Wang <[email protected]>--- kernel/panic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)kernel/panic.c +2
-1@@ -605,7 +605,8 @@ void __warn(const char *file, int line, void *caller, unsigned taint,panic ("panic_on_warn set ...\n" ); } -dump_stack (); +if (!regs) +dump_stack ();print_irqtrace_events (current);
Signature · 1 line
Alexey
Quoted 7 lines · Alexey Kardashevskiy
Fixed already
https://ozlabs.org/~akpm/mmots/broken-out/panic-dont-dump-stack-twice-on-warn.patch
Sorry for breaking this :(
OK.