Re: [PATCH V2] riscv: Fixup race condition on PG_dcache_clean in flush_icache_pte

From: Palmer Dabbelt
Date: Thu Feb 09 2023 - 18:40:55 EST



On Thu, 26 Jan 2023 22:53:06 -0500, guoren@xxxxxxxxxx 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@xxxxxxxxxxxx>