Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 2a4835b8 authored by Mathis Salmen's avatar Mathis Salmen Committed by Greg Kroah-Hartman
Browse files

riscv: add icache flush for nommu sigreturn trampoline


commit 8d736482 upstream.

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.

Signed-off-by: default avatarMathis Salmen <mathis.salmen@matsal.de>
Fixes: 6bd33e1e ("riscv: add nommu support")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230406101130.82304-1-mathis.salmen@matsal.de


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c76e79e5
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment