allow users to configure the softlockup detector to generate a panic instead of a warning message. high-availability systems might opt for this strict method (combined with panic_timeout= boot option/sysctl), instead of generating softlockup warnings ad infinitum. also, automated tests work better if the system reboots reliably (into a safe kernel) in case of a lockup. The full spectrum of configurability is supported: boot option, sysctl option and Kconfig option. it's default-disabled.
Showing the changes to kernel/sysctl.c (1 of 5 files). Show all
Unified · Split
| @@ -727,6 +727,17 @@ static struct ctl_table kern_table[] = { · 726 unmodified lines | ||
| 727 | 727 | }, |
| 728 | 728 | #endif |
| 729 | 729 | #ifdef CONFIG_DETECT_SOFTLOCKUP |
| 730 | + { | |
| 731 | + .ctl_name = CTL_UNNUMBERED, | |
| 732 | + .procname = "softlockup_panic", | |
| 733 | + .data = &softlockup_panic, | |
| 734 | + .maxlen = sizeof(int), | |
| 735 | + .mode = 0644, | |
| 736 | + .proc_handler = &proc_doulongvec_minmax, | |
| 737 | + .strategy = &sysctl_intvec, | |
| 738 | + .extra1 = &zero, | |
| 739 | + .extra2 = &one, | |
| 740 | + }, | |
| 730 | 741 | { |
| 731 | 742 | .ctl_name = CTL_UNNUMBERED, |
| 732 | 743 | .procname = "softlockup_thresh", |