reboot-fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest23 patches 44 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/23 | Add missing device_suspsend(PMSG_FREEZE) calls.kernel/ | +2 | 4 replies | |
| 2/23 | Refactor sys_reboot into reusable partsinclude/ kernel/ | +73 | 0 replies | |
| 3/23 | Make ctrl_alt_del call kernel_restart to get a proper reboot.kernel/ | +1 | 0 replies | |
| 4/23 | Add emergency_restart()include/ include/ include/ +24 more | +166 | 0 replies | |
| 5/23 | Fix the arguments to machine_restart on crisarch/ | +2 | 0 replies | |
| 6/23 | Don't export machine_restart, machine_halt, or machine_power_off.arch/ arch/ arch/ +26 more | +0 | 4 replies | |
| 7/23 | i386: Implement machine_emergency_rebootarch/ include/ | +8 | 0 replies | |
| 8/23 | x86_64: Fix reboot_forcearch/ | +1 | 0 replies | |
| 9/23 | x86_64: Implemenent machine_emergency_restartarch/ include/ | +12 | 0 replies | |
| 10/23 | Use kernel_power_off in sysrq-okernel/ | +2 | 0 replies | |
| 11/23 | Call emergency_reboot from panickernel/ | +4 | 0 replies | |
| 12/23 | Update sysrq-B to use emergency_restart()drivers/ | +1 | 0 replies | |
| 13/23 | Fix watchdog drivers to call emergency_reboot()drivers/ drivers/ drivers/ +1 more | +4 | 0 replies | |
| 14/23 | In hangcheck-timer.c call emergency_restart()drivers/ | +1 | 0 replies | |
| 15/23 | 68328serial: sysrq should use emergency_rebootdrivers/ | +1 | 0 replies | |
| 16/23 | swpsuspend: Have suspend to disk use factors of sys_rebootkernel/ | +3 | 2 replies | |
| 17/23 | pcwd.c: Call kernel_power_off not machine_power_offdrivers/ | +2 | 0 replies | |
| 18/23 | machine_shutdown: Typo fix to actually allow specifying which cpu to reboot onarch/ | +1 | 0 replies | |
| 19/23 | i386 machine_power_off cleanuparch/ | +1 | 0 replies | |
| 20/23 | APM: Remove redundant call to set_cpus_allowedarch/ | +0 | 0 replies | |
| 21/23 | x86_64 sync machine_power_off with i386arch/ | +3 | 0 replies | |
| 22/23 | acpi_power_off: Don't switch to the boot cpudrivers/ | +0 | 0 replies | |
| 23/23 | acpi: Don't call acpi_sleep_prepare from acpi_power_offdrivers/ | +12 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/23] reboot-fixes
The reboot code paths seems to be suffering from 15 years of people only looking at the code when it breaks. The result is there are several code paths in which different callers expect different semantics from the same functions, and a fair amount of imperfect inline replication of code.
For a year or more every time I fix one bug in the bug fix reveals yet another bug. In an attempt to end the cycle of bug fixes revealing yet more bugs I have generated a series of patches to clean up the semantics along the reboot path.
With the callers all agreeing on what to expect from the functions they call it should at least be possible to kill bugs without more showing up because of the bug fix.
My primary approach is to factor sys_reboot into several smaller functions and provide those functions for the general kernel consumers instead of the architecture dependent restart and halt hooks.
I don't expect this to noticeably fix any bugs along the main code paths but magic sysrq and several of the more obscure code paths should work much more reliably.
Eric