[PATCH] riscv: Fix icache flush being skipped for a second mm mapping an exec folio

Nickolai Zeldovich nickolai at csail.mit.edu
Sat Oct 10 08:53:47 PDT 2026


On Sat, Oct 10, 2026 at 8:05 AM Jisheng Zhang <jszhang at kernel.org> 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.



More information about the linux-riscv mailing list