4 ms·
Is there a compelling reason to write high level user mode drivers like this over traditional kernel drivers? I remember finding this repo a few years back and
by non-entity 7y ago
Is there a compelling reason to write high level user mode drivers like this over traditional kernel drivers? I remember finding this repo a few years back and being fascinated.
- steveklabnik 7y agoFrom the paper: https://www.net.in.tum.de/fileadmin/bibtex/publications/papers/the-case-for-writing-network-drivers-in-high-level-languages.pdf https://www.net.in.tum.de/fileadmin/bibtex/publications/pape... > Drivers are written in C or restricted subsets of C++ on all production-grade server, desktop, and mobile operating systems. They account for 66% of the code in Linux, but 39 out of 40 security bugs related to memory safety found in Linux in 2017 are located in drivers. These bugs could have been prevented by using high-level languages for drivers.
- pjmlp 7y agoTraditional monolithic kernel drivers are on their way out, specially given security concerns. https://developer.apple.com/videos/play/wwdc2019/702/ https://developer.apple.com/videos/play/wwdc2019/702/ https://source.android.com/devices/architecture/hal-types https://source.android.com/devices/architecture/hal-types https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/getting-started-with-universal-drivers https://docs.microsoft.com/en-us/windows-hardware/drivers/de...
- non-entity 7y agoInteresting. I suppose the ability to (almost?) debug drivers like I would any other user-mode applications could be a big win.