r/LinuxTeck • u/Technical_Rich_3080 • 15d ago
Kernel Panic = Blue Screen of Death
Is a Kernel Panic the Linux equivalent to the Windows BSOD?
11
Upvotes
r/LinuxTeck • u/Technical_Rich_3080 • 15d ago
Is a Kernel Panic the Linux equivalent to the Windows BSOD?
7
u/granadesnhorseshoes 15d ago
Yes.
4
u/erroneousbosh 15d ago
Yeah basically.
What has happened is that an error has occurred that is so off the wall and at such a deep level there's no coming back from it.
Both are (these days) mercifully rare, and tend to indicate faulty hardware.
To dive into the technical side of it a bit, they tend to happen because something has read an invalid bit of memory. The CPU can stick a "fence" around something and say "any attempt to read that is okay but any attempt to read in that other fence is immensely wrong". Say for instance you have an application that mangles a pointer and tries to read an address that has no memory there at all, the CPU will go "yeah no, wtaf are you doing" and trigger an interrupt that will lead to a "segmentation fault", roughly equivalent to a Windows "general protection fault" from the olden days. The kernel will kill that program and write out the contents of its memory and registers to a "core" file, that you can use to debug it, if you know what you're doing.
What happens if the kernel itself does that? Well, it just has to give up on the whole thing. It may be that something in the kernel is damaged, but it's got no way of telling because the bit that detects damage might be damaged, so the safest thing is just to blow it all up and stop.
2
u/Wendals87 15d ago
Yeah basically
2
u/absnotkinkyreggae 15d ago
yes and no.
Yes in a sense that the core of the OS reached an unrecoverable state.
But. Kernel panics not always result in a 100% dead system.
They produce a stack trace so that you can see what failed and make decisions on how to proceed.
It is always advised to save your work and reboot unless you know the nature of the panic and are confident on the limits of the damage.
on the state of the kernel matureness, it is very likely you have faulty hardware. but it is also possible a knockoff hardware is acting up on the device driver or a binary blob driver is responsible.
2
u/_NoSignal 15d ago
Yes, It's the same idea: an unrecoverable error. The BSOD it's only the way how you see the notification error.
2
u/Canenald 15d ago
As others have said, yes, but there are two major differences I can think of that make BSOD more commonplace:
1
u/Lonely-Scarcity-3387 15d ago
It’s something NixOS users laugh at. Kernel panic, you say? Let me reboot and load the previously working generation. Should take ten seconds.
Remember kids, chronomancy is the most powerful magic.
1
u/Key_River7180 15d ago
yep
1
u/PermanentLiminality 15d ago
It has been a long time since I have seen a kernel panic and when I saw them in the past it was usually hardware.
1
u/mcds99 15d ago
Back in the NT 3.51 and 4.0 a virus could cause a BSOD only way to fix it was to wipe the disk repartitions then install windows.
Kernal panic's are similar but usually its untested software in the kernel for hardware.
1
u/Petrus_1958 13d ago
As an early Mac user a few decades ago someone mentioned kernel panic. I asked if it was called that because it was more serious than a major panic.
1
u/grimvian 12d ago
Probably but much easier to recover but have we never seen one in the four years of Mint.
1
u/Derpygoras 12d ago
Is the Windows BSOD the equivalent of Guru Meditation?