Conversation

This Tweet was deleted by the Tweet author. Learn more
Separately from using a memory safe language for most of the code, device drivers usually do not need to run in a privileged context. They can be run in an isolated process with the IOMMU containing the hardware. Exploiting a network driver shouldn't compromise a whole system.
1
1
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
iOS implements TCP/IP in userspace and most operating systems have drivers at least partially implemented in userspace. Many of the secondary processors in a computer run a microkernel with isolated components. Most smartphones have *at least* one L4 implementation in them.
1
2
You talk about microkernels / isolated drivers and memory safe languages as if they're not already been broadly used in the wild. Most code is written in memory safe languages these days. Systems code is increasingly moving to them too. Kernels and drivers are *mostly* not yet.
1
1
This Tweet was deleted by the Tweet author. Learn more
This Tweet was deleted by the Tweet author. Learn more
Threads sharing data structures, synchronizing together with locking and passing data between each other are obviously communicating. Everything is shared and accessible across them. There are no clear boundaries or communication protocols. It's very complex and not understood.
1
2
There's a reason mentioned lockdep, but concurrency / communication in Linux is a lot more complicated than just getting locking right. twitter.com/billhuey/statu Sharing far more and communicating far more in poorly defined / understood ways is not simpler or easier.
Quote Tweet
Replying to @DanielMicay @vyodaiken and 5 others
It's like that for Linux kernel as well. There are classes of bugs that defy casual static analysis and you have to basically make your own runtime correctness checking tools (lockdep etc)
1
1
Show replies
This Tweet was deleted by the Tweet author. Learn more
Okay, and the Linux kernel doesn't even try and just has millions of lines of code in the same address with no isolation, no security boundaries, no actual design or protocols for communication between them, etc. It's not at a human scale of understanding at all. It's far beyond.
1
2
Show replies