[PW_SID:1129943] RISC-V: KVM: Guard HFENCE range loops against overflow#2314
[PW_SID:1129943] RISC-V: KVM: Guard HFENCE range loops against overflow#2314linux-riscv-bot wants to merge 1 commit into
Conversation
The local HFENCE range helpers build the loop end with addr + size and then step through the range by the requested page order. If addr + size wraps, a small range near the top of the address space can be treated as empty and skip the intended fence. The final loop step can also wrap before the loop condition is evaluated again. Treat wrapped ranges conservatively as full-range HFENCE requests and stop each bounded loop before the next step can wrap past the computed end. This keeps the existing large-range fallback and only changes local GVMA/VVMA range construction. Fixes: 2415e46 ("RISC-V: KVM: Introduce range based local HFENCE functions") Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
|
Patch 1: "RISC-V: KVM: Guard HFENCE range loops against overflow" |
PR for series 1129943 applied to workflow__riscv__fixes
Name: RISC-V: KVM: Guard HFENCE range loops against overflow
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1129943
Version: 1