[PATCH V2] riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte
Palmer Dabbelt
palmer at rivosinc.com
Thu Feb 9 15:37:32 PST 2023
On Thu, 26 Jan 2023 22:53:06 -0500, guoren at kernel.org wrote:
> In commit 588a513d3425 ("arm64: Fix race condition on PG_dcache_clean
> in __sync_icache_dcache()"), we found RISC-V has the same issue as the
> previous arm64. The previous implementation didn't guarantee the correct
> sequence of operations, which means flush_icache_all() hasn't been
> called when the PG_dcache_clean was set. That would cause a risk of page
> synchronization.
>
> [...]
Applied, thanks!
[1/1] riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte
https://git.kernel.org/palmer/c/950b879b7f02
Best regards,
--
Palmer Dabbelt <palmer at rivosinc.com>
More information about the linux-riscv
mailing list