RE: [PATCH v4] panic: add panic_force_cpu= parameter to redirect panic to a specific CPU

Pnina Feder
2026-01-14T21:57:33Z

Hi,

> > > Also, if this is a 'requirement' for kexec or the like, this
> > > shouldn't be a command line argument, but something that's set-up by
> > > kexec itself for functional reasons.
> >
> > Since the redirection needs to happen before other CPUs are stopped,
> > would a sysctl be preferable? The user could set it when loading the
> > crash kernel.
>
> I was more thinking about platform setup, it would set this on boot, and equally dis-allow hot-unplug of the magical CPU.

Thanks for the suggestion.

I was thinking of this as a fixed platform requirement that is known at boot and needs to apply from the start of the panic path. Handling it via platform setup would likely involve additional CPU hotplug and lifecycle handling, which seemed unnecessary for this case. A boot-time parameter felt like a simple and explicit way to express that constraint.

Please let me know if this sounds reasonable.

Thanks,
Pnina