| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/30 20:08 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [
"param_set_charp"
],
"Reasoning": "The patch modifies param_set_charp in kernel/params.c to fix a potential memory issue (e.g. use-after-free or memory leak on failure) by allocating new memory before freeing the old one. This is a core kernel function reachable via sysfs module parameters.",
"WorthFuzzing": true
} |
| 1/1 | 2026/07/30 20:08 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 63574ce417978b685410ba2a6315ec9dbf7b0bcb\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Jul 30 20:08:09 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/kernel/params.c b/kernel/params.c\nindex a668863a4bb63..939ef84a46ffb 100644\n--- a/kernel/params.c\n+++ b/kernel/params.c\n@@ -261,6 +261,7 @@ EXPORT_SYMBOL_GPL(param_set_uint_minmax);\n \n int param_set_charp(const char *val, const struct kernel_param *kp)\n {\n+\tchar *tmp;\n \tsize_t len, maxlen = 1024;\n \n \tlen = strnlen(val, maxlen + 1);\n@@ -269,19 +270,20 @@ int param_set_charp(const char *val, const struct kernel_param *kp)\n \t\treturn -ENOSPC;\n \t}\n \n-\tmaybe_kfree_parameter(*(char **)kp-\u003earg);\n-\n \t/*\n \t * This is a hack. We can't kmalloc() in early boot, and we\n \t * don't need to; this mangled commandline is preserved.\n \t */\n \tif (slab_is_available()) {\n-\t\t*(char **)kp-\u003earg = kmalloc_parameter(len + 1);\n-\t\tif (!*(char **)kp-\u003earg)\n+\t\ttmp = kmalloc_parameter(len + 1);\n+\t\tif (!tmp)\n \t\t\treturn -ENOMEM;\n-\t\tstrcpy(*(char **)kp-\u003earg, val);\n+\t\tmemcpy(tmp, val, len + 1);\n \t} else\n-\t\t*(const char **)kp-\u003earg = val;\n+\t\ttmp = (char *)val;\n+\n+\tmaybe_kfree_parameter(*(char **)kp-\u003earg);\n+\t*(char **)kp-\u003earg = tmp;\n \n \treturn 0;\n }\n"
} |
| 2/1 | 2026/07/30 20:08 | agent | patch-evaluator |
0mModel:best-expensive Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [
"param_set_charp"
],
"Reasoning": "The patch modifies param_set_charp in kernel/params.c to fix a potential memory issue (e.g. use-after-free or memory leak on failure) by allocating new memory before freeing the old one. This is a core kernel function reachable via sysfs module parameters.",
"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). - Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed, ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU. - Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove) that are executed only during PCI hot-unplug or sysfs driver unbind operations. 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. Prefer non-static, non-inlined API entrypoint functions over internal static helper functions (which are inlined by the compiler and do not have distinct symbol addresses). 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. Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed for Kbuild to compile the code statically into vmlinux. 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 63574ce417978b685410ba2a6315ec9dbf7b0bcb
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Jul 30 20:08:09 2026 +0000
syz-cluster: applied patch under review
diff --git a/kernel/params.c b/kernel/params.c
index a668863a4bb63..939ef84a46ffb 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -261,6 +261,7 @@ EXPORT_SYMBOL_GPL(param_set_uint_minmax);
int param_set_charp(const char *val, const struct kernel_param *kp)
{
+ char *tmp;
size_t len, maxlen = 1024;
len = strnlen(val, maxlen + 1);
@@ -269,19 +270,20 @@ int param_set_charp(const char *val, const struct kernel_param *kp)
return -ENOSPC;
}
- maybe_kfree_parameter(*(char **)kp->arg);
-
/*
* This is a hack. We can't kmalloc() in early boot, and we
* don't need to; this mangled commandline is preserved.
*/
if (slab_is_available()) {
- *(char **)kp->arg = kmalloc_parameter(len + 1);
- if (!*(char **)kp->arg)
+ tmp = kmalloc_parameter(len + 1);
+ if (!tmp)
return -ENOMEM;
- strcpy(*(char **)kp->arg, val);
+ memcpy(tmp, val, len + 1);
} else
- *(const char **)kp->arg = val;
+ tmp = (char *)val;
+
+ maybe_kfree_parameter(*(char **)kp->arg);
+ *(char **)kp->arg = tmp;
return 0;
}
|
| 3/2 | 2026/07/30 20:08 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2298 output: 31 thoughts: 298 Thoughts: **Analyzing a Kernel Parameter Patch: Potential Fuzzing Target** Okay, so I'm looking at this patch that tweaks `kernel/params.c`, specifically the `param_set_charp` function. It seems they've reordered memory allocation and deallocation for character pointer parameters. Instead of freeing the old string *before* allocating the new one, they're now allocating the new one, copying the value, and then only freeing the old one. The motivation is clear: to prevent a nasty use-after-free or potential race condition if the new allocation fails or if another process is accessing the parameter concurrently. My immediate thought is, "This is good, this is functional, and definitely worth fuzzing!" `param_set_charp` handles character pointer module parameters, which is core kernel functionality. I need to understand its behavior and any dependencies it might have. First, let's confirm the relevant function. Let's see... yep, it's right here in `kernel/params.c`. Next, I need to figure out the best way to exercise this code with fuzzing. Any special kernel configurations needed? No, `kernel/params.c` is always compiled, which is great – one less hurdle. Now, my focus is on `param_set_charp` itself. I need to confirm that this symbol is exported or accessible to user space. Ah, and here we are: `EXPORT_SYMBOL(param_set_charp)`. Good. That indicates it's accessible and that's critical. The lightbulb just went off - I can target this with sysfs writes! Those module parameters are accessible at `/sys/module/*/parameters/*`. I can write to those paths, which calls the function. This is a perfect target for fuzzing. |
| 4/2 | 2026/07/30 20:08 | tool | grepper |
0mArgs:{
"Expression": "param_set_charp",
"PathPrefix": "kernel/params.c"
}Results: {
"Output": "kernel/params.c=260=EXPORT_SYMBOL_GPL(param_set_uint_minmax);\nkernel/params.c-261-\nkernel/params.c:262:int param_set_charp(const char *val, const struct kernel_param *kp)\nkernel/params.c-263-{\n--\nkernel/params.c-289-}\nkernel/params.c:290:EXPORT_SYMBOL(param_set_charp);\nkernel/params.c-291-\n--\nkernel/params.c=304=const struct kernel_param_ops param_ops_charp = {\nkernel/params.c:305:\t.set = param_set_charp,\nkernel/params.c-306-\t.get = param_get_charp,\n"
} |
| 5/2 | 2026/07/30 20:08 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3218 output: 99 thoughts: 165 Thoughts: **Fuzzing Target Identification** Okay, so I've examined the code and it's clear that `param_set_charp` is indeed exported and utilized within `param_ops_charp`. That makes it a strong candidate for fuzzing, absolutely. Given that it resides in `kernel/params.c`, and is part of the core kernel, there are no specific kernel configurations I need to worry about enabling beforehand. It's already baked in. My focus symbol is clearly `param_set_charp`. Therefore, I'll update the `set-results` call with the following information: * `WorthFuzzing`: `true` – because it's a kernel function, a memory-related fix was applied and it is accessible via sysfs. * `FocusSymbols`: `["param_set_charp"]` – this is the function I want the fuzzer to target specifically. * `EnableConfigs`: `[]` – no specific kernel configs are needed. * `Reasoning`: "The patch modifies `param_set_charp` in `kernel/params.c` to fix a potential memory issue (e.g. use-after-free or memory leak on failure) by allocating new memory before freeing the old one. This is a core kernel function reachable via sysfs module parameters." This should provide the team with the necessary context and reasoning. |
| 6/2 | 2026/07/30 20:08 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [
"param_set_charp"
],
"Reasoning": "The patch modifies param_set_charp in kernel/params.c to fix a potential memory issue (e.g. use-after-free or memory leak on failure) by allocating new memory before freeing the old one. This is a core kernel function reachable via sysfs module parameters.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": null,
"FocusSymbols": [
"param_set_charp"
],
"Reasoning": "The patch modifies param_set_charp in kernel/params.c to fix a potential memory issue (e.g. use-after-free or memory leak on failure) by allocating new memory before freeing the old one. This is a core kernel function reachable via sysfs module parameters.",
"WorthFuzzing": true
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|