3 ms·
The problem with monolithic kernels is their tendency to grow without bound. The Linux kernel passed 15 million lines a few years back. Linus's arguments for a
by Animats 11y ago
The problem with monolithic kernels is their tendency to grow without bound. The Linux kernel passed 15 million lines a few years back. Linus's arguments for a monolithic kernel were stronger when it wasn't such a monolith. Anything with an attack surface that big is hopeless from a security standpoint.
There are now a few secure microkernels. It really is possible to fix the Mess at the Bottom. If the kernel isn't secure, nothing else can be. Patch-and-release security just doesn't work any more. The serious attacks today are from organized crime and governments, not script kiddies, and they develop their own zero-day exploits.
- zurn 11y agoMicrokernels are now competing with hypervisors, for the honor of providing added security and robustness boundaries to hedge against large attack surfaces in monolithic kernels. Hypervisors enable incremental change in this direction. Historically this has usually been a big competitive advantage. Qubes OS is the hypervisor department's version of the "compartmentalize OS for security" idea. The microkernel dept should come with their own credible version if they want to win.
- pjc50 11y agoSo, suppose we deploy sel4. It needs some device drivers, and crucially its proof of security depends on not exploiting DMA. The user-mode drivers then become the attack surface: if you can persuade the target graphics card to DMA over the secure kernel space, you win. (ARM TrustZone actually prevents this) I wonder how feasible a modern, graphics-capable POSIX OS built on a core of sel4 is?
- xj9 11y agoI don't have anything worth sharing at the moment, but this is something that I'm currently exploring. I'm not sure I'm entirely sold on POSIX (I'd much rather build a Plan 9 system), but I do see the value in interoperability.
- pjc50 11y agoIt depends on whether you want to run software on it or attempt to build your own ecosystem entirely, which only works if you're already a giant vendor.
- Eridrus 11y agoThis is part of what IOMMUs like VT-d are for. They let the CPU control where device drivers are allowed to write. I don't know what the perf costs are like in practice though since you would need to either be able to reconfigure the IOMMU before requesting a device to write into a user process' address space, or you would end up writing it into the device manager's address space and copying it out via IPC.