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.
More on Boot Process & Kernel
Walk through the Linux boot process from power-on to login prompt.BeginnerWhat is the difference between BIOS and UEFI booting?IntermediateWhat does GRUB2 do and where is its configuration?BeginnerWhat is the initramfs and why is it needed?AdvancedHow do you view and change kernel command-line parameters?IntermediateWhat is systemd and why did it replace SysV init?Beginner