Re: [PATCH] riscv: Fix icache flush being skipped for a second mm mapping an exec folio
From: Nickolai Zeldovich
Date: Sat Oct 10 2026 - 11:54:05 EST
On Sat, Oct 10, 2026 at 8:05 AM Jisheng Zhang <jszhang@xxxxxxxxxx> wrote:
> I guess the reproducer is just a simple c program.
> It would be helpful if you can paste the reproducer code into the commit
> msg as well.
Sure, added to the revised patch (v3 sent by email just now).
I also fixed the other two comments you pointed out (thank you):
enabling this code only under CONFIG_SMP, and using atomic64 to get
atomicity on 32-bit machines.
Nickolai.