[RFC PATCH v2 4/5] printk, tracing: Support console flush suppression and tail pinning
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Tue Nov 3 18:49:23 PST 2026
> When collecting high-volume diagnostic output into the printk ring
> buffer during a kernel crash prior to kexec, synchronous console
> emission can stall the panicking CPU for tens of seconds on slow serial
> or IPMI Serial-over-LAN links, risking external hardware watchdog
> resets. At the same time, uninhibited ring buffer rotation can wrap and
> overwrite the initial Oops, faulting registers, and primary call trace.
>
> Introduce two scoped mechanisms for in-memory crash telemetry
> collection:
>
> 1. Console flush suppression
>
> Provide printk_suppress_console_flush(bool) to clear the console
> flush mask in printk_get_console_flush_type(), guard legacy
> record emission and kthread wakeups, and suppress
> [ ... ]
> record and stop reserving descriptors or consuming trace entries
> so the primary crash context and remaining trace buffer remain
> intact.
>
> Signed-off-by: Aaron Tomlin <atomlin at atomlin.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103024453.922373-1-atomlin@atomlin.com?part=4
More information about the kexec
mailing list