• Andrew Morton's avatar
    [PATCH] Allow panics and reboots at oops time. · 7b78878b
    Andrew Morton authored
    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.
    7b78878b
traps.c 22.1 KB