| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/07 02:07 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": [
"KVM",
"VIRTUALIZATION"
],
"FocusSymbols": [
"kvm_riscv_vcpu_get_reg_config",
"kvm_riscv_vcpu_set_reg_config",
"copy_config_reg_indices"
],
"Reasoning": "The patch modifies the handling of RISC-V KVM configuration registers (zicbom_block_size, zicboz_block_size, zicbop_block_size) in kvm_riscv_vcpu_get_reg_config, kvm_riscv_vcpu_set_reg_config, and copy_config_reg_indices. This is reachable core KVM logic for RISC-V and can be fuzzed by syzkaller.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/07 02:07 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 76afda1f7e4a7675c3e0f8ece48b00575848fd42\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Tue Jul 7 02:07:07 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c\nindex bb920e8923c930..61988382570fe9 100644\n--- a/arch/riscv/kvm/vcpu_onereg.c\n+++ b/arch/riscv/kvm/vcpu_onereg.c\n@@ -50,19 +50,13 @@ static int kvm_riscv_vcpu_get_reg_config(struct kvm_vcpu *vcpu,\n \t\treg_val = vcpu-\u003earch.isa[0] \u0026 KVM_RISCV_BASE_ISA_MASK;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicbom_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOM))\n-\t\t\treturn -ENOENT;\n-\t\treg_val = riscv_cbom_block_size;\n+\t\treg_val = (kvm_riscv_isa_check_host(ZICBOM)) ? 0 : riscv_cbom_block_size;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicboz_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOZ))\n-\t\t\treturn -ENOENT;\n-\t\treg_val = riscv_cboz_block_size;\n+\t\treg_val = (kvm_riscv_isa_check_host(ZICBOZ)) ? 0 : riscv_cboz_block_size;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicbop_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOP))\n-\t\t\treturn -ENOENT;\n-\t\treg_val = riscv_cbop_block_size;\n+\t\treg_val = (kvm_riscv_isa_check_host(ZICBOP)) ? 0 : riscv_cbop_block_size;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(mvendorid):\n \t\treg_val = vcpu-\u003earch.mvendorid;\n@@ -144,21 +138,15 @@ static int kvm_riscv_vcpu_set_reg_config(struct kvm_vcpu *vcpu,\n \t\t}\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicbom_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOM))\n-\t\t\treturn -ENOENT;\n-\t\tif (reg_val != riscv_cbom_block_size)\n+\t\tif (reg_val \u0026\u0026 reg_val != riscv_cbom_block_size)\n \t\t\treturn -EINVAL;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicboz_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOZ))\n-\t\t\treturn -ENOENT;\n-\t\tif (reg_val != riscv_cboz_block_size)\n+\t\tif (reg_val \u0026\u0026 reg_val != riscv_cboz_block_size)\n \t\t\treturn -EINVAL;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(zicbop_block_size):\n-\t\tif (kvm_riscv_isa_check_host(ZICBOP))\n-\t\t\treturn -ENOENT;\n-\t\tif (reg_val != riscv_cbop_block_size)\n+\t\tif (reg_val \u0026\u0026 reg_val != riscv_cbop_block_size)\n \t\t\treturn -EINVAL;\n \t\tbreak;\n \tcase KVM_REG_RISCV_CONFIG_REG(mvendorid):\n@@ -614,20 +602,6 @@ static int copy_config_reg_indices(const struct kvm_vcpu *vcpu,\n \t\tu64 size;\n \t\tu64 reg;\n \n-\t\t/*\n-\t\t * Avoid reporting config reg if the corresponding extension\n-\t\t * was not available.\n-\t\t */\n-\t\tif (i == KVM_REG_RISCV_CONFIG_REG(zicbom_block_size) \u0026\u0026\n-\t\t kvm_riscv_isa_check_host(ZICBOM))\n-\t\t\tcontinue;\n-\t\telse if (i == KVM_REG_RISCV_CONFIG_REG(zicboz_block_size) \u0026\u0026\n-\t\t\t kvm_riscv_isa_check_host(ZICBOZ))\n-\t\t\tcontinue;\n-\t\telse if (i == KVM_REG_RISCV_CONFIG_REG(zicbop_block_size) \u0026\u0026\n-\t\t\t kvm_riscv_isa_check_host(ZICBOP))\n-\t\t\tcontinue;\n-\n \t\tsize = IS_ENABLED(CONFIG_32BIT) ? KVM_REG_SIZE_U32 : KVM_REG_SIZE_U64;\n \t\treg = KVM_REG_RISCV | size | KVM_REG_RISCV_CONFIG | i;\n \n"
} |
| 2/1 | 2026/07/07 02:07 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": [
"KVM",
"VIRTUALIZATION"
],
"FocusSymbols": [
"kvm_riscv_vcpu_get_reg_config",
"kvm_riscv_vcpu_set_reg_config",
"copy_config_reg_indices"
],
"Reasoning": "The patch modifies the handling of RISC-V KVM configuration registers (zicbom_block_size, zicboz_block_size, zicbop_block_size) in kvm_riscv_vcpu_get_reg_config, kvm_riscv_vcpu_set_reg_config, and copy_config_reg_indices. This is reachable core KVM logic for RISC-V and can be fuzzed by syzkaller.",
"WorthFuzzing": true
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit 76afda1f7e4a7675c3e0f8ece48b00575848fd42
Author: syz-cluster <triage@syzkaller.com>
Date: Tue Jul 7 02:07:07 2026 +0000
syz-cluster: applied patch under review
diff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c
index bb920e8923c930..61988382570fe9 100644
--- a/arch/riscv/kvm/vcpu_onereg.c
+++ b/arch/riscv/kvm/vcpu_onereg.c
@@ -50,19 +50,13 @@ static int kvm_riscv_vcpu_get_reg_config(struct kvm_vcpu *vcpu,
reg_val = vcpu->arch.isa[0] & KVM_RISCV_BASE_ISA_MASK;
break;
case KVM_REG_RISCV_CONFIG_REG(zicbom_block_size):
- if (kvm_riscv_isa_check_host(ZICBOM))
- return -ENOENT;
- reg_val = riscv_cbom_block_size;
+ reg_val = (kvm_riscv_isa_check_host(ZICBOM)) ? 0 : riscv_cbom_block_size;
break;
case KVM_REG_RISCV_CONFIG_REG(zicboz_block_size):
- if (kvm_riscv_isa_check_host(ZICBOZ))
- return -ENOENT;
- reg_val = riscv_cboz_block_size;
+ reg_val = (kvm_riscv_isa_check_host(ZICBOZ)) ? 0 : riscv_cboz_block_size;
break;
case KVM_REG_RISCV_CONFIG_REG(zicbop_block_size):
- if (kvm_riscv_isa_check_host(ZICBOP))
- return -ENOENT;
- reg_val = riscv_cbop_block_size;
+ reg_val = (kvm_riscv_isa_check_host(ZICBOP)) ? 0 : riscv_cbop_block_size;
break;
case KVM_REG_RISCV_CONFIG_REG(mvendorid):
reg_val = vcpu->arch.mvendorid;
@@ -144,21 +138,15 @@ static int kvm_riscv_vcpu_set_reg_config(struct kvm_vcpu *vcpu,
}
break;
case KVM_REG_RISCV_CONFIG_REG(zicbom_block_size):
- if (kvm_riscv_isa_check_host(ZICBOM))
- return -ENOENT;
- if (reg_val != riscv_cbom_block_size)
+ if (reg_val && reg_val != riscv_cbom_block_size)
return -EINVAL;
break;
case KVM_REG_RISCV_CONFIG_REG(zicboz_block_size):
- if (kvm_riscv_isa_check_host(ZICBOZ))
- return -ENOENT;
- if (reg_val != riscv_cboz_block_size)
+ if (reg_val && reg_val != riscv_cboz_block_size)
return -EINVAL;
break;
case KVM_REG_RISCV_CONFIG_REG(zicbop_block_size):
- if (kvm_riscv_isa_check_host(ZICBOP))
- return -ENOENT;
- if (reg_val != riscv_cbop_block_size)
+ if (reg_val && reg_val != riscv_cbop_block_size)
return -EINVAL;
break;
case KVM_REG_RISCV_CONFIG_REG(mvendorid):
@@ -614,20 +602,6 @@ static int copy_config_reg_indices(const struct kvm_vcpu *vcpu,
u64 size;
u64 reg;
- /*
- * Avoid reporting config reg if the corresponding extension
- * was not available.
- */
- if (i == KVM_REG_RISCV_CONFIG_REG(zicbom_block_size) &&
- kvm_riscv_isa_check_host(ZICBOM))
- continue;
- else if (i == KVM_REG_RISCV_CONFIG_REG(zicboz_block_size) &&
- kvm_riscv_isa_check_host(ZICBOZ))
- continue;
- else if (i == KVM_REG_RISCV_CONFIG_REG(zicbop_block_size) &&
- kvm_riscv_isa_check_host(ZICBOP))
- continue;
-
size = IS_ENABLED(CONFIG_32BIT) ? KVM_REG_SIZE_U32 : KVM_REG_SIZE_U64;
reg = KVM_REG_RISCV | size | KVM_REG_RISCV_CONFIG | i;
|
| 3/2 | 2026/07/07 02:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2915 output: 33 thoughts: 316 Thoughts: **Analyzing a RISC-V KVM Patch for Fuzzing Potential** Okay, so this patch is touching `arch/riscv/kvm/vcpu_onereg.c`, and it's specifically changing how we handle those `KVM_REG_RISCV_CONFIG_REG` constants – `zicbom_block_size`, `zicboz_block_size`, and `zicbop_block_size` – within the `kvm_riscv_vcpu_get_reg_config`, `kvm_riscv_vcpu_set_reg_config`, and `copy_config_reg_indices` functions. My immediate thought is, can this be exploited in a virtualized environment? Is it reachable in GCE or QEMU? Given it's RISC-V KVM code, and knowing Syzkaller supports RISC-V and KVM, this absolutely screams "fuzzable." The functions modified are `kvm_riscv_vcpu_get_reg_config`, `kvm_riscv_vcpu_set_reg_config`, and `copy_config_reg_indices`. Time to track down the Kconfig options. Let's see... looking at the file structure, `arch/riscv/kvm/Kconfig` is the obvious place to start. And, bingo, there's `CONFIG_KVM`. I just need to confirm those function names one more time to avoid any typos... yep, `kvm_riscv_vcpu_get_reg_config`, `kvm_riscv_vcpu_set_reg_config`, and `copy_config_reg_indices`. I'll use grepper to track down the exact configuration options. |
| 4/2 | 2026/07/07 02:07 | tool | grepper |
0mArgs:{
"Expression": "config KVM",
"PathPrefix": "arch/riscv/kvm/Kconfig"
}Results: {
"Output": "arch/riscv/kvm/Kconfig=18=if VIRTUALIZATION\narch/riscv/kvm/Kconfig-19-\narch/riscv/kvm/Kconfig:20:config KVM\narch/riscv/kvm/Kconfig-21-\ttristate \"Kernel-based Virtual Machine (KVM) support\"\n"
} |
| 5/2 | 2026/07/07 02:07 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3740 output: 189 thoughts: 285 Thoughts: **My Assessment of the KVM RISC-V Configuration Patch** Okay, let's break this down. The core config here is definitely `KVM`, and it's dealing specifically with RISC-V based on the implied architecture. The functions that are modified – `kvm_riscv_vcpu_get_reg_config`, `kvm_riscv_vcpu_set_reg_config`, and `copy_config_reg_indices` – are key to how the virtual CPU configuration is managed within the KVM environment. I should probably check that there aren't any other configs that should be considered at the same time. Since this is KVM on RISC-V, `RISCV` is inherently part of the equation, and `VIRTUALIZATION` is an essential component. Given these pieces, I think this is a prime candidate for fuzzing with syzkaller. The changes touch critical parts of the configuration register handling related to `zicbom_block_size`, `zicboz_block_size`, and `zicbop_block_size`. These are fundamental aspects of KVM's RISC-V implementation. So, I will return `WorthFuzzing=true`. The key symbols to focus on during fuzzing are, obviously, `kvm_riscv_vcpu_get_reg_config`, `kvm_riscv_vcpu_set_reg_config`, and `copy_config_reg_indices`. And the configs that need to be enabled are definitely `KVM` and `VIRTUALIZATION`. This patch has the potential to expose interesting corner cases within KVM for RISC-V. |
| 6/2 | 2026/07/07 02:07 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"KVM",
"VIRTUALIZATION"
],
"FocusSymbols": [
"kvm_riscv_vcpu_get_reg_config",
"kvm_riscv_vcpu_set_reg_config",
"copy_config_reg_indices"
],
"Reasoning": "The patch modifies the handling of RISC-V KVM configuration registers (zicbom_block_size, zicboz_block_size, zicbop_block_size) in kvm_riscv_vcpu_get_reg_config, kvm_riscv_vcpu_set_reg_config, and copy_config_reg_indices. This is reachable core KVM logic for RISC-V and can be fuzzed by syzkaller.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"KVM",
"VIRTUALIZATION"
],
"FocusSymbols": [
"kvm_riscv_vcpu_get_reg_config",
"kvm_riscv_vcpu_set_reg_config",
"copy_config_reg_indices"
],
"Reasoning": "The patch modifies the handling of RISC-V KVM configuration registers (zicbom_block_size, zicboz_block_size, zicbop_block_size) in kvm_riscv_vcpu_get_reg_config, kvm_riscv_vcpu_set_reg_config, and copy_config_reg_indices. This is reachable core KVM logic for RISC-V and can be fuzzed by syzkaller.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|