Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by yuliyp on Sunday January 26, 2014 @12:47AM
(#7124049)
You mean the problem with Direct Memory Access is that it's Direct? Memory protection, authorization checks, and user consent are all implemented by the CPU knowing which pieces of memory are what. If you use DMA you're just writing to and reading from specific locations on the RAM chips, irrespective of what the CPU wants you to do. RAM chips don't have ACLs; They'll do whatever requests hit their pins.
[ Parent
| on HN ]
Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by Dylan16807 on Sunday January 26, 2014 @12:56AM
(#7124069)
It's really easy to have direct access to a single range of memory and no access outside of that range. It's also really easy to have somewhat more complicated schemes. There is nothing inherently insecure about DMA. It's just shoddy protocols and/or protocols used in unexpected ways.
Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by reeses on Monday January 27, 2014 @10:35PM
(#7135155)
This is another of those "people did it 100 years ago and now we have to reinvent it" things. The Mark I would never have had this problem.
Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by wmf on Sunday January 26, 2014 @12:52AM
(#7124060)
The IOMMU is basically ACLs for RAM, but OSes don't use it as much as they could (possibly because Intel disables it on random SKUs).
Re:Inception - Root any machine over FireWire, Thunderbolt, ...
by beagle3 on Sunday January 26, 2014 @04:21AM
(#7124542)
There's a handshake that's done with the PCIe device; It doesn't cost anything to keep the address/data lines off until the handshake is complete, and require that the user approve the handshake.
True, this will not stop an e.g. accepted external drive from DMAing - but it will stop a randomly plugged thing from doing so.
Not having this level is worse than Windows' of old tendency to autorun anything called "autorun.inf" on a media - because autorun was still subject to user privileges whereas the PCIe "autorun" is not.