lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2024090808-elusive-deviate-3bbb@gregkh>
Date: Sun, 8 Sep 2024 16:10:19 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: WangYuli <wangyuli@...ontech.com>
Cc: stable@...r.kernel.org, sashal@...nel.org, alexghiti@...osinc.com,
	palmer@...osinc.com, paul.walmsley@...ive.com, palmer@...belt.com,
	aou@...s.berkeley.edu, anup@...infault.org,
	linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
	rdunlap@...radead.org, dvlachos@....forth.gr, bhe@...hat.com,
	samuel.holland@...ive.com, guoren@...nel.org, linux@...linux.org.uk,
	linux-arm-kernel@...ts.infradead.org, willy@...radead.org,
	akpm@...ux-foundation.org, fengwei.yin@...el.com,
	prabhakar.mahadev-lad.rj@...renesas.com, conor.dooley@...rochip.com,
	glider@...gle.com, elver@...gle.com, dvyukov@...gle.com,
	kasan-dev@...glegroups.com, ardb@...nel.org,
	linux-efi@...r.kernel.org, atishp@...shpatra.org,
	kvm@...r.kernel.org, kvm-riscv@...ts.infradead.org,
	qiaozhe@...as.ac.cn, ryan.roberts@....com, ryabinin.a.a@...il.com,
	andreyknvl@...il.com, vincenzo.frascino@....com,
	namcao@...utronix.de
Subject: Re: [PATCH 6.6 4/4] riscv: Use accessors to page table entries
 instead of direct dereference

On Fri, Sep 06, 2024 at 04:22:39PM +0800, WangYuli wrote:
> From: Alexandre Ghiti <alexghiti@...osinc.com>
> 
> [ Upstream commit edf955647269422e387732870d04fc15933a25ea ]
> 
> As very well explained in commit 20a004e7b017 ("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 riscv which is such architecture.
> 
> Signed-off-by: Alexandre Ghiti <alexghiti@...osinc.com>
> Acked-by: Anup Patel <anup@...infault.org>
> Link: https://lore.kernel.org/r/20231213203001.179237-5-alexghiti@rivosinc.com
> Signed-off-by: Palmer Dabbelt <palmer@...osinc.com>
> Signed-off-by: WangYuli <wangyuli@...ontech.com>
> ---

all now queued up, thanks.

greg k-h

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ