-
Mathis Salmen authored
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:
Mathis Salmen <[email protected]> Fixes: 6bd33e1e ("riscv: add nommu support") Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by:
Palmer Dabbelt <[email protected]> Signed-off-by:
Greg Kroah-Hartman <[email protected]>
2a4835b8