Re: [PATCH v2] panic: Remove redundant panic-cpu backtrace

From: Sergey Senozhatsky
Date: Wed Sep 03 2025 - 22:34:41 EST


On (25/09/03 12:04), Petr Mladek wrote:
> Backtraces from all CPUs are printed during panic() when
> SYS_INFO_ALL_CPU_BT is set. It shows the backtrace for
> the panic-CPU even when it has already been explicitly
> printed before.
>
> Do not change the legacy code which prints the backtrace
> in various context, for example, as part of Oops report,
> right after panic message. It will always be visible in
> the crash dump.
>
> Instead, remember when the backtrace was printed, and skip
> it when dumping the optional backtraces on all CPUs.
>
> Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>

That's very kind of you, Petr. Thanks for working on this.


// As a side note, my involvement was more of a
// Reported-and-tested-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
// Petr is the sole author of this patch.