4 ms·
So, 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 t
by pjc50 11y ago
So, 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.