summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVivian Wang <wangruikang@iscas.ac.cn>2026-03-03 08:29:49 +0300
committerPaul Walmsley <pjw@kernel.org>2026-06-07 08:48:15 +0300
commit1b2c6b56a9fa0dcbef461039937de22b1cbecc7d (patch)
treeb02abbf2d0059111b09d01fd34dace24d7c38fc6 /include/linux
parent26c171fc48539ac88d3697792b1fde9334af836c (diff)
downloadlinux-1b2c6b56a9fa0dcbef461039937de22b1cbecc7d.tar.xz
riscv: mm: Unconditionally sfence.vma for spurious fault
Svvptc does not guarantee that it's safe to just return here. Since we have already cleared our bit, if, theoretically, the bounded timeframe for the accessed page to become valid still hasn't happened after sret, we could fault again and actually crash. Hopefully, these spurious faults should be rare enough that this is an acceptable slowdown. Cc: stable@vger.kernel.org Fixes: 503638e0babf ("riscv: Stop emitting preventive sfence.vma for new vmalloc mappings") Signed-off-by: Vivian Wang <wangruikang@iscas.ac.cn> Link: https://patch.msgid.link/20260303-handle-kfence-protect-spurious-fault-v2-5-f80d8354d79d@iscas.ac.cn Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions