In the Linux kernel, the following vulnerability has been resolved: 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.
https://git.kernel.org/stable/c/ede985ff4b569ed2454024f8bb107a6729fe08aa
https://git.kernel.org/stable/c/c4df24702bfc3cd2bed7746b94dc6139a3fa5428
https://git.kernel.org/stable/c/4d730cab96e6b75e4a07c4baf37294ebc07f795e
https://git.kernel.org/stable/c/1b2c6b56a9fa0dcbef461039937de22b1cbecc7d