Re: [PATCH] oslat: Avoid out-of-order memory accesses to precede counter read

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 14, 2021 at 07:55:42PM +0200, Nicolas Saenz Julienne wrote:
> In arm64 it's possible for the processor to access memory appearing in
> program order after the read of the counter before the counter has been
> read. This would skew the counter value to a later point than intended.
> 
> Fix this my adding an isb() following the counter read instruction.
> 
> Suggested-by: Punit Agrawal <punitagrawal@xxxxxxxxx>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzju@xxxxxxxxxx>

Acked-by: Peter Xu <peterx@xxxxxxxxxx>

-- 
Peter Xu




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux