Re: [PATCH][RFC] hung_task: Support to panic when the maximum number of hung task warnings is reached

From: Randy Dunlap

Date: Tue Sep 23 2025 - 00:35:43 EST




On 9/22/25 8:37 PM, lirongqing wrote:
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index dc0e0c6..e7cf166 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1264,10 +1264,10 @@ config DEFAULT_HUNG_TASK_TIMEOUT
> Keeping the default should be fine in most cases.
>
> config BOOTPARAM_HUNG_TASK_PANIC
> - bool "Panic (Reboot) On Hung Tasks"
> + int "Panic (Reboot) On Hung Tasks"
> depends on DETECT_HUNG_TASK
> help
> - Say Y here to enable the kernel to panic on "hung tasks",
> + Say 1|2 here to enable the kernel to panic on "hung tasks",

Please make that "1|2" more user-friendly, e.g., "1 or 2".

> which are bugs that cause the kernel to leave a task stuck
> in uninterruptible "D" state.

--
~Randy