[PATCH v2] riscv: add icache flush for nommu sigreturn trampoline

Palmer Dabbelt palmer at rivosinc.com
Tue Apr 11 12:52:08 PDT 2023


On Thu, 06 Apr 2023 12:11:31 +0200, Mathis Salmen wrote:
> In a NOMMU kernel, sigreturn trampolines are generated on the user
> stack by setup_rt_frame. Currently, these trampolines are not instruction
> fenced, thus their visibility to ifetch is not guaranteed.
> 
> This patch adds a flush_icache_range in setup_rt_frame to fix this
> problem.
> 
> [...]

Applied, thanks!

[1/1] riscv: add icache flush for nommu sigreturn trampoline
      https://git.kernel.org/palmer/c/8d736482749f

Best regards,
-- 
Palmer Dabbelt <palmer at rivosinc.com>




More information about the linux-riscv mailing list