]> git.hungrycats.org Git - linux/commit
[PATCH] Allow panics and reboots at oops time.
authorAndrew Morton <akpm@digeo.com>
Wed, 9 Apr 2003 04:31:10 +0000 (21:31 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 9 Apr 2003 04:31:10 +0000 (21:31 -0700)
commit7b78878b47141bb38c217d3d354adb24eb499e34
tree52f8b9a730e5e32c1377e26805aba6030b3a437d
parent2040ae819d46e22444db8cb92d01e298a9ca3b51
[PATCH] Allow panics and reboots at oops time.

From: Russell Miller <rmiller@duskglow.com>

A BUG or an oops will often leave a machine in a useless state.  There is no
way to remotely recover the machine from that state.

The patch adds a /proc/sys/kernel/panic_on_oops sysctl which, when set, will
cause the x86 kernel to call panic() at the end of the oops handler.  If the
user has also set /proc/sys/kernel/panic then a reboot will occur.

The implementation will try to sleep for a while before panicing so the oops
info has a chance of hitting the logs.

The implementation is designed so that other architectures can easily do this
in their oops handlers.
Documentation/sysctl/kernel.txt
arch/i386/kernel/traps.c
include/linux/kernel.h
include/linux/sysctl.h
kernel/panic.c
kernel/sysctl.c