]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rcu: Add BOOTPARAM_RCU_STALL_PANIC Kconfig option
authorGustavo Luiz Duarte <gustavold@gmail.com>
Tue, 17 Mar 2026 21:41:17 +0000 (17:41 -0400)
committerJoel Fernandes <joelagnelf@nvidia.com>
Mon, 30 Mar 2026 19:48:14 +0000 (15:48 -0400)
commitab875b3e179ff7ca2a982bc14f7fe810862c7594
treef563d326d9c13267fff3c383022dcc54604a38fb
parenta18396219ba52b524d8b86bf9e2515b01c068614
rcu: Add BOOTPARAM_RCU_STALL_PANIC Kconfig option

Add a Kconfig option to set the default value of the
kernel.panic_on_rcu_stall sysctl, allowing the kernel to be built
with panic-on-RCU-stall enabled by default.

This is useful for high-availability systems that require automatic
recovery (via panic_timeout) when a CPU stall is detected, without
needing userspace to configure the sysctl at boot.

This follows the pattern established by BOOTPARAM_SOFTLOCKUP_PANIC
and BOOTPARAM_HUNG_TASK_PANIC.  The runtime sysctl can still override
the Kconfig default.

Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Gustavo Luiz Duarte <gustavold@gmail.com>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
kernel/rcu/Kconfig.debug
kernel/rcu/tree_stall.h