Reboot automatically when the kernel crashes #7

Merged
matchu merged 1 commit from claude/panic-on-oops into main 2026-11-17 15:33:49 -08:00
Owner

By default, after a kernel Oops, Linux kills the task that hit it and keeps
running. If that task held a lock, the machine can freeze instead. That's what
happened to code.openneo.net with Debian's 6.1.0-55 kernel (Debian bug
#1154101): an ext4 Oops left the filesystem journal locked, every disk write
hung, and the box sat frozen for 13 hours until a manual reboot.

So set kernel.panic_on_oops=1 and kernel.panic=10 on both machines, in
/etc/sysctl.d/90-reboot-on-crash.conf: an Oops now panics, and a panic reboots
after 10 seconds.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

By default, after a kernel Oops, Linux kills the task that hit it and keeps running. If that task held a lock, the machine can freeze instead. That's what happened to code.openneo.net with Debian's 6.1.0-55 kernel (Debian bug #1154101): an ext4 Oops left the filesystem journal locked, every disk write hung, and the box sat frozen for 13 hours until a manual reboot. So set kernel.panic_on_oops=1 and kernel.panic=10 on both machines, in /etc/sysctl.d/90-reboot-on-crash.conf: an Oops now panics, and a panic reboots after 10 seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
By default, after a kernel Oops, Linux kills the task that hit it and keeps
running. If that task held a lock, the machine can freeze instead. That's what
happened to code.openneo.net with Debian's 6.1.0-55 kernel (Debian bug
#1154101): an ext4 Oops left the filesystem journal locked, every disk write
hung, and the box sat frozen for 13 hours until a manual reboot.

So set kernel.panic_on_oops=1 and kernel.panic=10 on both machines, in
/etc/sysctl.d/90-reboot-on-crash.conf: an Oops now panics, and a panic reboots
after 10 seconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
matchu merged commit 0ff6305701 into main 2026-11-17 15:33:49 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenNeo/openneo-code!7
No description provided.