[PATCH 2/8] ARM: Implement read/write for ownership in theARMv6 DMA cache ops

Russell King - ARM Linux linux at arm.linux.org.uk
Sun May 16 11:01:17 EDT 2010


On Sun, May 16, 2010 at 09:29:47AM +0300, Ronen Shitrit wrote:
> Our ARMv6 do speculative rd for both I and D cache...

That means doing this read-write for ownership trick can lead to
corrupted data on your CPU, since the CPU may prefetch data from
the DMA buffer before the unmap has happened.

This means Catalin's patch is unsafe for your situation.



More information about the linux-arm-kernel mailing list