hung_task_panic

file: /proc/sys/kernel/hung_task_panic
variable: kernel.hung_task_panic
Official reference

Controls the kernel’s behavior when a hung task is detected. This file shows up if CONFIG_DETECT_HUNG_TASK is enabled.

0: continue operation. This is the default behavior.

1: panic immediately.

source