Skip to content

[PW_SID:1128605] KVM: riscv: Fix infinite loop in NACL hfence entry allocation#2299

Open
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1128605
Open

[PW_SID:1128605] KVM: riscv: Fix infinite loop in NACL hfence entry allocation#2299
linux-riscv-bot wants to merge 2 commits into
workflow__riscv__fixesfrom
pw1128605

Conversation

@linux-riscv-bot

Copy link
Copy Markdown

PR for series 1128605 applied to workflow__riscv__fixes

Name: KVM: riscv: Fix infinite loop in NACL hfence entry allocation
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1128605
Version: 1

Linux RISC-V bot and others added 2 commits July 15, 2026 17:25
try_count is initialized to 5 but never decremented in the retry path,
making the `if (try_count)` check always true. If all NACL shared memory
hfence entries remain in the pending state after sync, the function loops
forever, causing a soft lockup. Decrement try_count on each retry so the
fallback warning and return become reachable.

Fixes: d466c19 ("RISC-V: KVM: Add common nested acceleration support")
Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 142.10 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1157.86 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1451.61 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.53 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.43 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.81 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 89.73 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
kdoc
Desc: Detects for kdoc errors
Duration: 0.85 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
module-param
Desc: Detect module_param changes
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot

Copy link
Copy Markdown
Author

Patch 1: "KVM: riscv: Fix infinite loop in NACL hfence entry allocation"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.31 seconds
Result: PASS

@linux-riscv-bot
linux-riscv-bot force-pushed the workflow__riscv__fixes branch from 8ca72ef to 60e0882 Compare July 19, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant