| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/04 16:06 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies `zone_spanned_pages_in_node` and inlines `adjust_zone_range_for_zone_movable`. Both functions are marked with `__init` and are only executed during early kernel boot. Since fuzzing occurs after the kernel has booted, this code is unreachable by the fuzzer.",
"WorthFuzzing": false
} |
| 1/1 | 2026/08/04 16:06 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 61972c9f29f4002d867946f1cd26fdc0d36b5e87\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Tue Aug 4 16:06:41 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/mm/mm_init.c b/mm/mm_init.c\nindex 711f821f7b3c7..d544eed2f173b 100644\n--- a/mm/mm_init.c\n+++ b/mm/mm_init.c\n@@ -1143,42 +1143,6 @@ void __ref memmap_init_zone_device(struct zone *zone,\n }\n #endif\n \n-/*\n- * The zone ranges provided by the architecture do not include ZONE_MOVABLE\n- * because it is sized independent of architecture. Unlike the other zones,\n- * the starting point for ZONE_MOVABLE is not fixed. It may be different\n- * in each node depending on the size of each node and how evenly kernelcore\n- * is distributed. This helper function adjusts the zone ranges\n- * provided by the architecture for a given node by using the end of the\n- * highest usable zone for ZONE_MOVABLE. This preserves the assumption that\n- * zones within a node are in order of monotonic increases memory addresses\n- */\n-static void __init adjust_zone_range_for_zone_movable(int nid,\n-\t\t\t\t\tunsigned long zone_type,\n-\t\t\t\t\tunsigned long node_end_pfn,\n-\t\t\t\t\tunsigned long *zone_start_pfn,\n-\t\t\t\t\tunsigned long *zone_end_pfn)\n-{\n-\t/* Only adjust if ZONE_MOVABLE is on this node */\n-\tif (zone_movable_pfn[nid]) {\n-\t\t/* Size ZONE_MOVABLE */\n-\t\tif (zone_type == ZONE_MOVABLE) {\n-\t\t\t*zone_start_pfn = zone_movable_pfn[nid];\n-\t\t\t*zone_end_pfn = min(node_end_pfn,\n-\t\t\t\tarch_zone_highest_possible_pfn[movable_zone]);\n-\n-\t\t/* Adjust for ZONE_MOVABLE starting within this range */\n-\t\t} else if (!mirrored_kernelcore \u0026\u0026\n-\t\t\t*zone_start_pfn \u003c zone_movable_pfn[nid] \u0026\u0026\n-\t\t\t*zone_end_pfn \u003e zone_movable_pfn[nid]) {\n-\t\t\t*zone_end_pfn = zone_movable_pfn[nid];\n-\n-\t\t/* Check if this whole range is within ZONE_MOVABLE */\n-\t\t} else if (*zone_start_pfn \u003e= zone_movable_pfn[nid])\n-\t\t\t*zone_start_pfn = *zone_end_pfn;\n-\t}\n-}\n-\n /*\n * Return the number of holes in a range on a node. If nid is MAX_NUMNODES,\n * then all holes in the requested range will be accounted for.\n@@ -1257,6 +1221,15 @@ static unsigned long __init zone_absent_pages_in_node(int nid,\n /*\n * Return the number of pages a zone spans in a node, including holes\n * present_pages = zone_spanned_pages_in_node() - zone_absent_pages_in_node()\n+ *\n+ * The zone ranges provided by the architecture do not include ZONE_MOVABLE\n+ * because it is sized independent of architecture. Unlike the other zones,\n+ * the starting point for ZONE_MOVABLE is not fixed. It may be different\n+ * in each node depending on the size of each node and how evenly kernelcore\n+ * is distributed. The zone ranges provided by the architecture are adjusted\n+ * for a given node by using the end of the highest usable zone for\n+ * ZONE_MOVABLE. This preserves the assumption that zones within a node are\n+ * in order of monotonic increases memory addresses\n */\n static unsigned long __init zone_spanned_pages_in_node(int nid,\n \t\t\t\t\tunsigned long zone_type,\n@@ -1267,21 +1240,41 @@ static unsigned long __init zone_spanned_pages_in_node(int nid,\n {\n \tunsigned long zone_low = arch_zone_lowest_possible_pfn[zone_type];\n \tunsigned long zone_high = arch_zone_highest_possible_pfn[zone_type];\n+\tunsigned long movable_pfn = zone_movable_pfn[nid];\n \n \t/* Get the start and end of the zone */\n \t*zone_start_pfn = clamp(node_start_pfn, zone_low, zone_high);\n \t*zone_end_pfn = clamp(node_end_pfn, zone_low, zone_high);\n-\tadjust_zone_range_for_zone_movable(nid, zone_type, node_end_pfn,\n-\t\t\t\t\t zone_start_pfn, zone_end_pfn);\n \n-\t/* Check that this node has pages within the zone's required range */\n-\tif (*zone_end_pfn \u003c node_start_pfn || *zone_start_pfn \u003e node_end_pfn)\n-\t\treturn 0;\n+\t/* Nothing to adjust if ZONE_MOVABLE is not on this node */\n+\tif (!movable_pfn)\n+\t\tgoto out;\n+\n+\t/* Size ZONE_MOVABLE */\n+\tif (zone_type == ZONE_MOVABLE) {\n+\t\t*zone_start_pfn = movable_pfn;\n+\t\t*zone_end_pfn = min(node_end_pfn,\n+\t\t\tarch_zone_highest_possible_pfn[movable_zone]);\n+\n+\t\t/* Check that this node has pages within the zone's required range */\n+\t\tif (*zone_end_pfn \u003c node_start_pfn ||\n+\t\t *zone_start_pfn \u003e node_end_pfn)\n+\t\t\treturn 0;\n+\n+\t\t/* Move the zone start inside the node if necessary */\n+\t\t*zone_start_pfn = max(*zone_start_pfn, node_start_pfn);\n \n-\t/* Move the zone boundaries inside the node if necessary */\n-\t*zone_end_pfn = min(*zone_end_pfn, node_end_pfn);\n-\t*zone_start_pfn = max(*zone_start_pfn, node_start_pfn);\n+\t/* Adjust for ZONE_MOVABLE starting within this range */\n+\t} else if (!mirrored_kernelcore \u0026\u0026 *zone_start_pfn \u003c movable_pfn \u0026\u0026\n+\t\t *zone_end_pfn \u003e movable_pfn) {\n+\t\t*zone_end_pfn = movable_pfn;\n \n+\t/* Check if this whole range is within ZONE_MOVABLE */\n+\t} else if (*zone_start_pfn \u003e= movable_pfn) {\n+\t\t*zone_start_pfn = *zone_end_pfn;\n+\t}\n+\n+out:\n \t/* Return the spanned pages */\n \treturn *zone_end_pfn - *zone_start_pfn;\n }\n"
} |
| 2/1 | 2026/08/04 16:06 | agent | patch-evaluator |
1mModel:best-expensive Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies `zone_spanned_pages_in_node` and inlines `adjust_zone_range_for_zone_movable`. Both functions are marked with `__init` and are only executed during early kernel boot. Since fuzzing occurs after the kernel has booted, this code is unreachable by the fuzzer.",
"WorthFuzzing": false
}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 61972c9f29f4002d867946f1cd26fdc0d36b5e87
Author: syz-cluster <triage@syzkaller.com>
Date: Tue Aug 4 16:06:41 2026 +0000
syz-cluster: applied patch under review
diff --git a/mm/mm_init.c b/mm/mm_init.c
index 711f821f7b3c7..d544eed2f173b 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1143,42 +1143,6 @@ void __ref memmap_init_zone_device(struct zone *zone,
}
#endif
-/*
- * The zone ranges provided by the architecture do not include ZONE_MOVABLE
- * because it is sized independent of architecture. Unlike the other zones,
- * the starting point for ZONE_MOVABLE is not fixed. It may be different
- * in each node depending on the size of each node and how evenly kernelcore
- * is distributed. This helper function adjusts the zone ranges
- * provided by the architecture for a given node by using the end of the
- * highest usable zone for ZONE_MOVABLE. This preserves the assumption that
- * zones within a node are in order of monotonic increases memory addresses
- */
-static void __init adjust_zone_range_for_zone_movable(int nid,
- unsigned long zone_type,
- unsigned long node_end_pfn,
- unsigned long *zone_start_pfn,
- unsigned long *zone_end_pfn)
-{
- /* Only adjust if ZONE_MOVABLE is on this node */
- if (zone_movable_pfn[nid]) {
- /* Size ZONE_MOVABLE */
- if (zone_type == ZONE_MOVABLE) {
- *zone_start_pfn = zone_movable_pfn[nid];
- *zone_end_pfn = min(node_end_pfn,
- arch_zone_highest_possible_pfn[movable_zone]);
-
- /* Adjust for ZONE_MOVABLE starting within this range */
- } else if (!mirrored_kernelcore &&
- *zone_start_pfn < zone_movable_pfn[nid] &&
- *zone_end_pfn > zone_movable_pfn[nid]) {
- *zone_end_pfn = zone_movable_pfn[nid];
-
- /* Check if this whole range is within ZONE_MOVABLE */
- } else if (*zone_start_pfn >= zone_movable_pfn[nid])
- *zone_start_pfn = *zone_end_pfn;
- }
-}
-
/*
* Return the number of holes in a range on a node. If nid is MAX_NUMNODES,
* then all holes in the requested range will be accounted for.
@@ -1257,6 +1221,15 @@ static unsigned long __init zone_absent_pages_in_node(int nid,
/*
* Return the number of pages a zone spans in a node, including holes
* present_pages = zone_spanned_pages_in_node() - zone_absent_pages_in_node()
+ *
+ * The zone ranges provided by the architecture do not include ZONE_MOVABLE
+ * because it is sized independent of architecture. Unlike the other zones,
+ * the starting point for ZONE_MOVABLE is not fixed. It may be different
+ * in each node depending on the size of each node and how evenly kernelcore
+ * is distributed. The zone ranges provided by the architecture are adjusted
+ * for a given node by using the end of the highest usable zone for
+ * ZONE_MOVABLE. This preserves the assumption that zones within a node are
+ * in order of monotonic increases memory addresses
*/
static unsigned long __init zone_spanned_pages_in_node(int nid,
unsigned long zone_type,
@@ -1267,21 +1240,41 @@ static unsigned long __init zone_spanned_pages_in_node(int nid,
{
unsigned long zone_low = arch_zone_lowest_possible_pfn[zone_type];
unsigned long zone_high = arch_zone_highest_possible_pfn[zone_type];
+ unsigned long movable_pfn = zone_movable_pfn[nid];
/* Get the start and end of the zone */
*zone_start_pfn = clamp(node_start_pfn, zone_low, zone_high);
*zone_end_pfn = clamp(node_end_pfn, zone_low, zone_high);
- adjust_zone_range_for_zone_movable(nid, zone_type, node_end_pfn,
- zone_start_pfn, zone_end_pfn);
- /* Check that this node has pages within the zone's required range */
- if (*zone_end_pfn < node_start_pfn || *zone_start_pfn > node_end_pfn)
- return 0;
+ /* Nothing to adjust if ZONE_MOVABLE is not on this node */
+ if (!movable_pfn)
+ goto out;
+
+ /* Size ZONE_MOVABLE */
+ if (zone_type == ZONE_MOVABLE) {
+ *zone_start_pfn = movable_pfn;
+ *zone_end_pfn = min(node_end_pfn,
+ arch_zone_highest_possible_pfn[movable_zone]);
+
+ /* Check that this node has pages within the zone's required range */
+ if (*zone_end_pfn < node_start_pfn ||
+ *zone_start_pfn > node_end_pfn)
+ return 0;
+
+ /* Move the zone start inside the node if necessary */
+ *zone_start_pfn = max(*zone_start_pfn, node_start_pfn);
- /* Move the zone boundaries inside the node if necessary */
- *zone_end_pfn = min(*zone_end_pfn, node_end_pfn);
- *zone_start_pfn = max(*zone_start_pfn, node_start_pfn);
+ /* Adjust for ZONE_MOVABLE starting within this range */
+ } else if (!mirrored_kernelcore && *zone_start_pfn < movable_pfn &&
+ *zone_end_pfn > movable_pfn) {
+ *zone_end_pfn = movable_pfn;
+ /* Check if this whole range is within ZONE_MOVABLE */
+ } else if (*zone_start_pfn >= movable_pfn) {
+ *zone_start_pfn = *zone_end_pfn;
+ }
+
+out:
/* Return the spanned pages */
return *zone_end_pfn - *zone_start_pfn;
}
|
| 3/2 | 2026/08/04 16:06 | llm | patch-evaluator |
1mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 3505 output: 24 thoughts: 795 Thoughts: **Analysis of the `mm/mm_init.c` Patch** Okay, so this patch in `mm/mm_init.c` is getting rid of `adjust_zone_range_for_zone_movable` and inlining its logic into `zone_spanned_pages_in_node`. Seems straightforward enough initially, but there's a slight modification to the logic. I see they've taken these lines: ```c - /* Check that this node has pages within the zone's required range */ - if (*zone_end_pfn < node_start_pfn || *zone_start_pfn > node_end_pfn) - return 0; - /* Move the zone boundaries inside the node if necessary */ - *zone_end_pfn = min(*zone_end_pfn, node_end_pfn); - *zone_start_pfn = max(*zone_start_pfn, node_start_pfn); ``` ...and moved them, with slight changes, into the `if (zone_type == ZONE_MOVABLE)` block. Hold on a second, though. Aren't `*zone_start_pfn` and `*zone_end_pfn` already clamped at the beginning of `zone_spanned_pages_in_node`? ```c /* Get the start and end of the zone */ *zone_start_pfn = clamp(node_start_pfn, zone_low, zone_high); *zone_end_pfn = clamp(node_end_pfn, zone_low, zone_high); ``` Right, they are! So, `*zone_end_pfn` is already guaranteed to be less than or equal to `node_end_pfn`, and `*zone_start_pfn` is already guaranteed to be greater than or equal to `node_start_pfn`. That means the removed checks are mostly redundant, except for the `ZONE_MOVABLE` case, where there's a reassignment. Now, this is an initialization code change; this is declared using `__init`. `zone_spanned_pages_in_node` is an `__init` function. Usually, fuzzing `__init` functions isn't very productive because they are only executed once during boot. But wait, is `zone_spanned_pages_in_node` only called during boot? Maybe memory hotplug calls it? Memory hotplug might call `__meminit` functions, but `__init` functions are discarded after boot. Let's make sure by checking the definition: it's `static unsigned long __init zone_spanned_pages_in_node(...)`. Ah, yes, it *is* `__init`. That means it's discarded after boot. Fuzzing can't reach `__init` functions after the system has booted. Let's make absolutely sure. Yes, the patch shows `static unsigned long __init zone_spanned_pages_in_node(...)`. That seals it; `__init`. So, it's only executed during early boot. Memory hotplug uses `__meminit`. Since this is `__init`, it only runs at boot time. Syzkaller fuzzes the kernel *after* it has booted, so this code is unreachable during fuzzing. To be extra careful, let me check if there is any way to trigger this after boot. I'll use `grepper` to search for `zone_spanned_pages_in_node`. Therefore, I should return `WorthFuzzing=false` because it's an `__init` function and not reachable after boot. |
| 4/2 | 2026/08/04 16:08 | tool | grepper |
0mArgs:{
"Expression": "zone_spanned_pages_in_node"
}Results: {
"Output": "mm/mm_init.c=1180=static unsigned long __init zone_absent_pages_in_node(int nid,\n--\nmm/mm_init.c-1222- * Return the number of pages a zone spans in a node, including holes\nmm/mm_init.c:1223: * present_pages = zone_spanned_pages_in_node() - zone_absent_pages_in_node()\nmm/mm_init.c-1224- *\n--\nmm/mm_init.c-1233- */\nmm/mm_init.c:1234:static unsigned long __init zone_spanned_pages_in_node(int nid,\nmm/mm_init.c-1235-\t\t\t\t\tunsigned long zone_type,\n--\nmm/mm_init.c=1324=static void __init calculate_node_totalpages(struct pglist_data *pgdat,\n--\nmm/mm_init.c-1336-\nmm/mm_init.c:1337:\t\tspanned = zone_spanned_pages_in_node(pgdat-\u003enode_id, i,\nmm/mm_init.c-1338-\t\t\t\t\t\t node_start_pfn,\n"
} |
| 5/2 | 2026/08/04 16:08 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5453 output: 101 thoughts: 134 Thoughts: **Fuzzing Unreachability in Early Boot** Okay, so I've been looking at this `zone_spanned_pages_in_node` function. I see now that it's part of `__init`, and it's called by `calculate_node_totalpages`, which is *also* marked as `__init`. Right, that makes it pretty clear. Since these are `__init` functions, they are only ever executed during the kernel's early boot sequence. That's before userspace is even up and running, let alone a fuzzer like syzkaller. Therefore, there is no way for a fuzzing campaign to actually reach this code. The nature of fuzzing dictates that it runs in user-space, well after the kernel has booted. So, I will be returning `WorthFuzzing=false` here. My reasoning is solid: The modifications are within `__init` sections, rendering the code inaccessible to any fuzzing attempts running in a standard, post-boot environment. No point spending time on something we can't influence with our fuzzing tools. |
| 6/2 | 2026/08/04 16:08 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies `zone_spanned_pages_in_node` and inlines `adjust_zone_range_for_zone_movable`. Both functions are marked with `__init` and are only executed during early kernel boot. Since fuzzing occurs after the kernel has booted, this code is unreachable by the fuzzer.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies `zone_spanned_pages_in_node` and inlines `adjust_zone_range_for_zone_movable`. Both functions are marked with `__init` and are only executed during early kernel boot. Since fuzzing occurs after the kernel has booted, this code is unreachable by the fuzzer.",
"WorthFuzzing": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|