Interview Prep/Linux/Boot Process & Kernel

What is a kernel panic vs a kernel oops?

AdvancedConceptBoot Process & Kernel
Answer

An oops is a kernel error (for example a bad pointer dereference in a driver); the kernel logs a stack trace, kills the offending task, and tries to keep running in a possibly tainted state. A panic is fatal: the kernel halts because it cannot continue safely. Controls:

sysctl kernel.panic=10          # reboot 10s after panic
sysctl kernel.panic_on_oops=1   # treat oops as panic (common on servers)

Configure kdump to capture a vmcore for post-mortem analysis with crash.

All Linux questions Roadmap: Linux

More on Boot Process & Kernel