A security fix briefly breaks DMA
A security fix briefly breaks DMA
Posted Apr 2, 2022 19:55 UTC (Sat) by iabervon (subscriber, #722)Parent article: A security fix briefly breaks DMA
Posted Apr 3, 2022 8:36 UTC (Sun)
by farnz (subscriber, #17727)
[Link]
In the bounce buffer case, it can't. But on a lot of systems, especially those in WiFi APs, the DMA is happening into the CPU buffer directly (no bounce buffer), and there it's an optimization to say "hey, packet copied in, resync and continue".
Posted Apr 3, 2022 8:54 UTC (Sun)
by dvrabel (subscriber, #9500)
[Link] (1 responses)
Posted Apr 3, 2022 17:40 UTC (Sun)
by iabervon (subscriber, #722)
[Link]
I expect that the copy actually happens from low to high, and the status word is at the beginning, so it always works, but relies on a property of the core API that was never promised.
A security fix briefly breaks DMA
A security fix briefly breaks DMA
A security fix briefly breaks DMA