On Wed, 21 May 2025 19:41:00 +0200, Ahmad Fatoum wrote:
> Writing the PTE with a normal non-volatile access is a bad idea, because
> speculation may already use a partially written entry.
> 
> Use WRITE_ONCE to turn this into a volatile write via a new set_pte
> helper. The extra helper is useful for type enforcement and for future
> extension when we start to consistently apply break-before-make[1].
> 
> [...]

Applied, thanks!

[1/4] arch: sync READ_ONCE/WRITE_ONCE with Linux
      https://git.pengutronix.de/cgit/barebox/commit/?id=cacff83edeef (link may 
not be stable)
[2/4] ARM64: mmu: document granule size calculation
      https://git.pengutronix.de/cgit/barebox/commit/?id=ebe6d3b8b732 (link may 
not be stable)
[3/4] ARM: mmu: ensure PTE is written at once
      https://git.pengutronix.de/cgit/barebox/commit/?id=cc909e5d084e (link may 
not be stable)

Best regards,
-- 
Sascha Hauer <s.ha...@pengutronix.de>


Reply via email to