Re: [PATCH v2 3/6] panic: Allow postponing pre-kdump notifiers
From: Guilherme G. Piccoli
Date: Mon Oct 19 2026 - 18:10:58 EST
On 28/09/2026 14:55, Zack Rusin wrote:
> Provide an escape hatch for debugging kdump failures that may involve
> pre-kdump callbacks. Add panic_pre_kdump_postpone to skip their early
> invocation in crash core without consuming the once-only guard.
>
> When enabled, the chain runs before kdump only when
> crash_kexec_post_notifiers is also enabled. Leave the late panic call
> unchanged so callbacks remain eligible if that path is reached.
> Skipping the callbacks may prevent hypervisor crash handling.
>
> Suggested-by: Guilherme G. Piccoli <gpiccoli@xxxxxxxxxx>
> Link: https://lore.kernel.org/r/bc0bdd14-5e6a-0676-cd04-14fb0bb93cd5@xxxxxxxxxx
> Signed-off-by: Zack Rusin <zack.rusin@xxxxxxxxxxxx>
> ---
> New in v2: optional postponement policy suggested by Guilherme.
>
> Documentation/admin-guide/kernel-parameters.txt | 14 ++++++++++++++
> include/linux/panic_notifier.h | 1 +
> kernel/crash_core.c | 3 ++-
> kernel/panic.c | 2 ++
> 4 files changed, 19 insertions(+), 1 deletion(-)
>
Thanks for implementing this! It makes sense to me...though I have some
"conflicting" comments in patch #2 heh
Cheers,
Guilherme