Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by __david__ on Sunday January 26, 2014 @03:19AM
(#7124368)
The solution is easier than that: only open up the appropriate buffers to DMA. It doesn't need to be virtualized, it just needs to be bounds checked.
Maybe I'm spoiled by good hardware, but when I wrote FireWire drivers for embedded systems, we didn't just open up DMA access to RAM willy-nilly.
I honestly don't know enough about OHCI to know what the hardware setup is like, but I suspect it's just laziness.
Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by nine_k on Saturday January 25, 2014 @11:51PM
(#7123942)
If it requires a driver (and it does), it is a software issue. Just having a FireWire port, without a driver, is not enough.
So a sane OS should just not allow to initialize a DMA transfer from a newly attached device until a user with enough privilege allows it.
The solution is an IO memory management unit with virtualized access to physical memory. I am not sure how you can actually enforce this to devices on the bus though.