Re: [PATCH 6.6.y RESEND 2/2] LoongArch: Use accessors to page table entries instead of direct dereference

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

 



On Tue, Sep 10, 2024 at 09:11:19PM +0800, He Lugang wrote:
> From: Huacai Chen <chenhuacai@xxxxxxxxxxx>
> 
> commit 4574815abf43e2bf05643e1b3f7a2e5d6df894f0 upstream
> 
> As very well explained in commit 20a004e7b017cce282 ("arm64: mm: Use
> READ_ONCE/WRITE_ONCE when accessing page tables"), an architecture whose
> page table walker can modify the PTE in parallel must use READ_ONCE()/
> WRITE_ONCE() macro to avoid any compiler transformation.
> 
> So apply that to LoongArch which is such an architecture, in order to
> avoid potential problems.
> 
> Similar to commit edf955647269422e ("riscv: Use accessors to page table
> entries instead of direct dereference").
> 
> Signed-off-by: Huacai Chen <chenhuacai@xxxxxxxxxxx>

You did not sign off on this, so I'm dropping it :(





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux