| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/18 00:24 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch exclusively modifies test fixture code in net/mac80211/tests/util.c used for mac80211 KUnit unit tests (t_sdata_init). This code is only executed within the KUnit test framework and is structurally unreachable during runtime syzkaller fuzzing.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/18 00:24 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 3e572ef420c01c806e904bd3a02c1a7cd145a44f\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Fri Sep 18 00:24:34 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/net/mac80211/tests/util.c b/net/mac80211/tests/util.c\nindex 0b01264af577e..89ff4f389de38 100644\n--- a/net/mac80211/tests/util.c\n+++ b/net/mac80211/tests/util.c\n@@ -2,7 +2,7 @@\n /*\n * Utilities for mac80211 unit testing\n *\n- * Copyright (C) 2024 Intel Corporation\n+ * Copyright (C) 2024, 2026 Intel Corporation\n */\n #include \u003clinux/ieee80211.h\u003e\n #include \u003cnet/mac80211.h\u003e\n@@ -226,10 +226,6 @@ int t_sdata_init(struct kunit_resource *resource, void *ctx)\n \t\tsband = t_sdata-\u003ewiphy-\u003ebands[band];\n \t\tsband-\u003eband = band;\n \n-\t\tsband-\u003ebitrates =\n-\t\t\tkmemdup(bitrates, sizeof(bitrates), GFP_KERNEL);\n-\t\tsband-\u003en_bitrates = ARRAY_SIZE(bitrates);\n-\n \t\t/* Initialize channels, feel free to add more channels/bands */\n \t\tswitch (band) {\n \t\tcase NL80211_BAND_2GHZ:\n"
} |
| 2/1 | 2026/09/18 00:24 | agent | patch-evaluator |
1mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies test fixture code in net/mac80211/tests/util.c used for mac80211 KUnit unit tests (t_sdata_init). This code is only executed within the KUnit test framework and is structurally unreachable during runtime syzkaller fuzzing.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any '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: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 3e572ef420c01c806e904bd3a02c1a7cd145a44f
Author: syz-cluster <triage@syzkaller.com>
Date: Fri Sep 18 00:24:34 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/mac80211/tests/util.c b/net/mac80211/tests/util.c
index 0b01264af577e..89ff4f389de38 100644
--- a/net/mac80211/tests/util.c
+++ b/net/mac80211/tests/util.c
@@ -2,7 +2,7 @@
/*
* Utilities for mac80211 unit testing
*
- * Copyright (C) 2024 Intel Corporation
+ * Copyright (C) 2024, 2026 Intel Corporation
*/
#include <linux/ieee80211.h>
#include <net/mac80211.h>
@@ -226,10 +226,6 @@ int t_sdata_init(struct kunit_resource *resource, void *ctx)
sband = t_sdata->wiphy->bands[band];
sband->band = band;
- sband->bitrates =
- kmemdup(bitrates, sizeof(bitrates), GFP_KERNEL);
- sband->n_bitrates = ARRAY_SIZE(bitrates);
-
/* Initialize channels, feel free to add more channels/bands */
switch (band) {
case NL80211_BAND_2GHZ:
|
| 3/2 | 2026/09/18 00:24 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 3021 output: 42 thoughts: 130 Thoughts: **Evaluating a Patch for Syzkaller Fuzzing** Okay, so the user wants me to decide if this patch is a good candidate for Syzkaller fuzzing. My initial instinct is to dig in and evaluate. Let's start with the diff itself. Ah, it's touching `net/mac80211/tests/util.c`. Now, that's interesting. `tests/util.c` within the mac80211 subsystem? Wait a minute... that screams KUnit tests to me! So, the next step is clear: I need to quickly ascertain what exactly `net/mac80211/tests/util.c` is all about. I need a bit more detail to make an informed judgement. I'll need to check the code itself to see how it's used. Let me quickly either pull up the file with `grepper` to see where else it's referenced, or just directly `read-file` the contents, and get a better understanding of its scope and purpose. Then I can figure out whether fuzzing is even relevant here. |
| 4/2 | 2026/09/18 00:24 | tool | read-file |
0mArgs:{
"File": "net/mac80211/tests/util.c",
"FirstLine": 210,
"LineCount": 40
}Results: {
"Contents": " 210:\t\tstrscpy(t_sdata-\u003esdata-\u003ename, \"kunit\");\n 211:\t\n 212:\t\tt_sdata-\u003esdata-\u003elocal = \u0026t_sdata-\u003elocal;\n 213:\t\tt_sdata-\u003esdata-\u003elocal-\u003ehw.wiphy = t_sdata-\u003ewiphy;\n 214:\t\tt_sdata-\u003esdata-\u003ewdev.wiphy = t_sdata-\u003ewiphy;\n 215:\t\tt_sdata-\u003esdata-\u003evif.type = NL80211_IFTYPE_STATION;\n 216:\t\n 217:\t\tt_sdata-\u003esdata-\u003edeflink.sdata = t_sdata-\u003esdata;\n 218:\t\tt_sdata-\u003esdata-\u003edeflink.link_id = 0;\n 219:\t\n 220:\t\tt_sdata-\u003ewiphy-\u003ebands[NL80211_BAND_2GHZ] = \u0026t_sdata-\u003eband_2ghz;\n 221:\t\tt_sdata-\u003ewiphy-\u003ebands[NL80211_BAND_5GHZ] = \u0026t_sdata-\u003eband_5ghz;\n 222:\t\n 223:\t\tfor (int band = NL80211_BAND_2GHZ; band \u003c= NL80211_BAND_5GHZ; band++) {\n 224:\t\t\tstruct ieee80211_supported_band *sband;\n 225:\t\n 226:\t\t\tsband = t_sdata-\u003ewiphy-\u003ebands[band];\n 227:\t\t\tsband-\u003eband = band;\n 228:\t\n 229:\t\t\t/* Initialize channels, feel free to add more channels/bands */\n 230:\t\t\tswitch (band) {\n 231:\t\t\tcase NL80211_BAND_2GHZ:\n 232:\t\t\t\tsband-\u003echannels = kmemdup(channels_2ghz,\n 233:\t\t\t\t\t\t\t sizeof(channels_2ghz),\n 234:\t\t\t\t\t\t\t GFP_KERNEL);\n 235:\t\t\t\tsband-\u003en_channels = ARRAY_SIZE(channels_2ghz);\n 236:\t\t\t\tsband-\u003ebitrates = kmemdup(bitrates,\n 237:\t\t\t\t\t\t\t sizeof(bitrates),\n 238:\t\t\t\t\t\t\t GFP_KERNEL);\n 239:\t\t\t\tsband-\u003en_bitrates = ARRAY_SIZE(bitrates);\n 240:\t\t\t\tbreak;\n 241:\t\t\tcase NL80211_BAND_5GHZ:\n 242:\t\t\t\tsband-\u003echannels = kmemdup(channels_5ghz,\n 243:\t\t\t\t\t\t\t sizeof(channels_5ghz),\n 244:\t\t\t\t\t\t\t GFP_KERNEL);\n 245:\t\t\t\tsband-\u003en_channels = ARRAY_SIZE(channels_5ghz);\n 246:\t\t\t\tsband-\u003ebitrates = kmemdup(bitrates,\n 247:\t\t\t\t\t\t\t sizeof(bitrates),\n 248:\t\t\t\t\t\t\t GFP_KERNEL);\n 249:\t\t\t\tsband-\u003en_bitrates = ARRAY_SIZE(bitrates);\n"
} |
| 5/2 | 2026/09/18 00:24 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 4233 output: 29 thoughts: 271 Thoughts: **My Analysis of this Code Snippet** Okay, here's what I'm seeing. That `sband->bitrates = kmemdup(bitrates, sizeof(bitrates), GFP_KERNEL);` line, it's just plain duplicated! It's outside the `switch` statement *and* inside both cases for `NL80211_BAND_2GHZ` and `NL80211_BAND_5GHZ` (specifically, lines 236 and 246). So, looking at the code from lines 229-240, it's pretty clear. Inside the switch statement, within both cases, that `kmemdup` is called. Before this patch, that means `sband->bitrates` was being allocated *twice* – a classic memory leak in a KUnit test setup, no less. This is sloppy. The commit seems to have cleaned this up, removing the redundant `kmemdup` call outside of the switch. Good spot! Now, the important question is: is `net/mac80211/tests/` part of KUnit tests or does it affect normal kernel execution? The whole point of my KUnit tests is that they don't impact normal operation, but I must make sure of that before I trust this fix. I'd better double-check the `Kconfig` and `Makefile` within `net/mac80211/tests/` to be certain. |
| 6/2 | 2026/09/18 00:24 | tool | grepper |
0mArgs:{
"Expression": "tests",
"PathPrefix": "net/mac80211"
}Results: {
"Output": "net/mac80211/Kconfig=60=config MAC80211_KUNIT_TEST\nnet/mac80211/Kconfig:61:\ttristate \"KUnit tests for mac80211\" if !KUNIT_ALL_TESTS\nnet/mac80211/Kconfig-62-\tdepends on KUNIT\n--\nnet/mac80211/Makefile=65=mac80211-$(CONFIG_MAC80211_RC_MINSTREL) += $(rc80211_minstrel-y)\nnet/mac80211/Makefile-66-\nnet/mac80211/Makefile:67:obj-y += tests/\nnet/mac80211/Makefile-68-\n--\nnet/mac80211/main.c=1137=int ieee80211_register_hw(struct ieee80211_hw *hw)\n--\nnet/mac80211/main.c-1511-\t/*\nnet/mac80211/main.c:1512:\t * We use the number of queues for feature tests (QoS, HT) internally\nnet/mac80211/main.c-1513-\t * so restrict them appropriately.\n--\nnet/mac80211/tests/Makefile:1:mac80211-tests-y += module.o util.o elems.o mfp.o tpe.o chan-mode.o s1g_tim.o ttlm.o\nnet/mac80211/tests/Makefile-2-\nnet/mac80211/tests/Makefile:3:obj-$(CONFIG_MAC80211_KUNIT_TEST) += mac80211-tests.o\n--\nnet/mac80211/tests/chan-mode.c-2-/*\nnet/mac80211/tests/chan-mode.c:3: * KUnit tests for channel mode functions\nnet/mac80211/tests/chan-mode.c-4- *\n--\nnet/mac80211/tests/elems.c-2-/*\nnet/mac80211/tests/elems.c:3: * KUnit tests for element parsing\nnet/mac80211/tests/elems.c-4- *\n--\nnet/mac80211/tests/mfp.c-2-/*\nnet/mac80211/tests/mfp.c:3: * KUnit tests for management frame acceptance\nnet/mac80211/tests/mfp.c-4- *\n--\nnet/mac80211/tests/module.c=9=MODULE_LICENSE(\"GPL\");\nnet/mac80211/tests/module.c:10:MODULE_DESCRIPTION(\"tests for mac80211\");\n--\nnet/mac80211/tests/s1g_tim.c-2-/*\nnet/mac80211/tests/s1g_tim.c:3: * KUnit tests for S1G TIM PVB decoding. This test suite covers\nnet/mac80211/tests/s1g_tim.c-4- * IEEE80211-2024 Annex L figures 8, 9, 10, 12, 13, 14. ADE mode\n--\nnet/mac80211/tests/tpe.c-2-/*\nnet/mac80211/tests/tpe.c:3: * KUnit tests for TPE element handling\nnet/mac80211/tests/tpe.c-4- *\n--\nnet/mac80211/tests/ttlm.c-2-/*\nnet/mac80211/tests/ttlm.c:3: * KUnit tests for negotiated TTLM (TID-To-Link Mapping) parsing\nnet/mac80211/tests/ttlm.c-4- *\n"
} |
| 7/2 | 2026/09/18 00:24 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 5855 output: 34 thoughts: 488 Thoughts: **My Assessment of WorthFuzzing Criteria**
Okay, let's break this down. My goal is to determine when to set `WorthFuzzing` to `false`. The rules are clear: I *only* return `false` if all the modified code strictly fits into one or more of the specified negative categories. These are well-defined:
* **Non-kernel and non-executable changes:** This is straightforward. Think documentation, comments, spelling corrections, user-space tools, samples, and scripts that *don't* impact the kernel image. Decorative logging or tracepoints that don't change how things work are also out. Build system and Kconfig changes are excluded if they don't alter the compiled C code. This all makes perfect sense.
* **Structurally unreachable hardware:** This is pretty specific. We're talking about drivers for hardware that isn't easily emulated in standard QEMU. Vendor-specific PCIe switches, SmartNICs, GPU drivers (like mlxsw, pds\_core, qed, ionic, amdgpu) that need real hardware are prime examples. Got it.
* **Unreachable execution paths:** This covers situations where code only gets executed under very specific, and typically rare, circumstances. Driver teardown routines, like `.remove`, `.shutdown`, `pci_unregister_driver` are triggered by hot-unplugging a PCI device or manually unbinding a driver, which are not usually done. Code exclusive to architectures other than my target also falls under this category. Makes sense.
* **KUnit Consideration:**
Now, a critical question arises. Are KUnit tests fuzzable by syzkaller? I need to think carefully here. KUnit tests are kernel unit tests, running at boot or module load, and also accessible via debugfs/kunit if `CONFIG_KUNIT_DEBUGFS` is enabled.
My brain is now in overdrive. I should be able to check: Can syzkaller execute KUnit test code? Syzkaller's primary method is through system calls. How does KUnit fit into that?
Okay, I should find out what `t_sdata_init` is and where it is called!
|
| 8/2 | 2026/09/18 00:25 | tool | grepper |
0mArgs:{
"Expression": "t_sdata_init",
"PathPrefix": "net/mac80211"
}Results: {
"Output": "net/mac80211/tests/util.c=65=static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {\n--\nnet/mac80211/tests/util.c-192-\nnet/mac80211/tests/util.c:193:int t_sdata_init(struct kunit_resource *resource, void *ctx)\nnet/mac80211/tests/util.c-194-{\n--\nnet/mac80211/tests/util.h=12=struct t_sdata {\n--\nnet/mac80211/tests/util.h-24-\t\tstruct t_sdata *__t_sdata =\t\t\t\t\\\nnet/mac80211/tests/util.h:25:\t\t\tkunit_alloc_resource(test, t_sdata_init,\t\\\nnet/mac80211/tests/util.h-26-\t\t\t\t\t t_sdata_exit,\t\t\\\n--\nnet/mac80211/tests/util.h-32-\nnet/mac80211/tests/util.h:33:int t_sdata_init(struct kunit_resource *resource, void *data);\nnet/mac80211/tests/util.h-34-void t_sdata_exit(struct kunit_resource *resource);\n"
} |
| 9/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7214 output: 32 thoughts: 91 Thoughts: Okay, let's break this down. **Initial Investigation into `t_sdata_init`** Alright, so I need to figure out the context of `t_sdata_init`. The text tells me it's called exclusively by the `TEST_SDATA` macro. That immediately narrows the scope, which is good. I see the macro's definition - it appears to be tied to a `kunit_alloc_resource` call, using `t_sdata_init` and `t_sdata_exit` as initialization and teardown functions, respectively. Now, to understand *what* it's doing, I need to understand where `TEST_SDATA` itself is actually *used*. Time to fire up the trusty grep. |
| 10/2 | 2026/09/18 00:25 | tool | grepper |
0mError:no matches Args: {
"Expression": "TEST_SDATA",
"PathPrefix": "net/mac80211"
}Results: {
"error": "no matches"
} |
| 11/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7513 output: 31 thoughts: 16 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Debugging the Include Path** Alright, hang on a second. I need to figure out where the heck `util.h` is actually getting included. I'm seeing an issue, and my initial assumption is that something's amiss with the include path. So, let's trace this down and make sure I'm using the expected version and that it's correctly linked. I need to quickly identify the relevant `#include` directives and understand the order of precedence in the build process. I'll probably start with a grep to locate all instances of the file name and then zero in on the exact include statements that are relevant to this particular scope. The ultimate goal is to understand how the preprocessor is resolving the path and confirm if my expectations match what the compiler is actually doing. |
| 12/2 | 2026/09/18 00:25 | tool | grepper |
0mArgs:{
"Expression": "util\\.h",
"PathPrefix": "net/mac80211"
}Results: {
"Output": "net/mac80211/tests/chan-mode.c-9-\nnet/mac80211/tests/chan-mode.c:10:#include \"util.h\"\nnet/mac80211/tests/chan-mode.c-11-\n--\nnet/mac80211/tests/util.c-10-#include \u003ckunit/test-bug.h\u003e\nnet/mac80211/tests/util.c:11:#include \"util.h\"\nnet/mac80211/tests/util.c-12-\n"
} |
| 13/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7897 output: 32 thoughts: 32 Thoughts: Here's my take on the thought process: **Diving into the `chan-mode.c` Test Code** Okay, so I need to understand how channel mode testing is handled in the mac80211 driver. My initial thought is to navigate the codebase to the `net/mac80211/tests/chan-mode.c` file. This is the obvious starting point. Now, to zero in on how things are working in there, I need to know where I can find the information on how the tests rely on other functions and/or variables. I'm going to look around where `util.h` is included. My hunch is that this header file provides some fundamental utility functions or definitions that are critical for this specific test suite. By focusing my search around that `util.h` include, I should be able to quickly grasp the core mechanics and dependencies that are at play in the channel mode tests. |
| 14/2 | 2026/09/18 00:25 | tool | grepper |
0mArgs:{
"Expression": "t_sdata",
"PathPrefix": "net/mac80211"
}Results: {
"Output": "net/mac80211/iface.c=1059=static bool ieee80211_iftype_supports_hdr_offload(enum nl80211_iftype iftype)\n--\nnet/mac80211/iface.c-1070-\nnet/mac80211/iface.c:1071:static bool ieee80211_set_sdata_offload_flags(struct ieee80211_sub_if_data *sdata)\nnet/mac80211/iface.c-1072-{\n--\nnet/mac80211/iface.c=1137=static void ieee80211_recalc_sdata_offload(struct ieee80211_sub_if_data *sdata)\n--\nnet/mac80211/iface.c-1141-\nnet/mac80211/iface.c:1142:\tif (ieee80211_set_sdata_offload_flags(sdata)) {\nnet/mac80211/iface.c-1143-\t\tdrv_update_vif_offload(local, sdata);\n--\nnet/mac80211/iface.c=1366=int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)\n--\nnet/mac80211/iface.c-1520-\t\t\tieee80211_del_virtual_monitor(local);\nnet/mac80211/iface.c:1521:\t\t\tieee80211_set_sdata_offload_flags(sdata);\nnet/mac80211/iface.c-1522-\n--\nnet/mac80211/iface.c=1876=static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,\n--\nnet/mac80211/iface.c-1941-\t\tif (ieee80211_vif_is_mesh(\u0026sdata-\u003evif))\nnet/mac80211/iface.c:1942:\t\t\tieee80211_mesh_init_sdata(sdata);\nnet/mac80211/iface.c-1943-\t\tbreak;\n--\nnet/mac80211/iface.c=1978=static int ieee80211_runtime_change_iftype(struct ieee80211_sub_if_data *sdata,\n--\nnet/mac80211/iface.c-2046-\nnet/mac80211/iface.c:2047:\tieee80211_set_sdata_offload_flags(sdata);\nnet/mac80211/iface.c-2048-\tret = drv_change_interface(local, sdata, internal_type, p2p);\n--\nnet/mac80211/mesh.c=1728=void ieee80211_mesh_work(struct ieee80211_sub_if_data *sdata)\n--\nnet/mac80211/mesh.c-1756-\nnet/mac80211/mesh.c:1757:void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata)\nnet/mac80211/mesh.c-1758-{\n--\nnet/mac80211/mesh.h=274=void ieee80211s_update_metric(struct ieee80211_local *local,\n--\nnet/mac80211/mesh.h-276-\t\t\t struct ieee80211_tx_status *st);\nnet/mac80211/mesh.h:277:void ieee80211_mesh_init_sdata(struct ieee80211_sub_if_data *sdata);\nnet/mac80211/mesh.h-278-void ieee80211_mesh_teardown_sdata(struct ieee80211_sub_if_data *sdata);\n--\nnet/mac80211/tests/chan-mode.c=148=static void test_determine_chan_mode(struct kunit *test)\n--\nnet/mac80211/tests/chan-mode.c-150-\tconst struct determine_chan_mode_case *params = test-\u003eparam_value;\nnet/mac80211/tests/chan-mode.c:151:\tstruct t_sdata *t_sdata = T_SDATA(test);\nnet/mac80211/tests/chan-mode.c-152-\tstruct ieee80211_conn_settings conn = {\n--\nnet/mac80211/tests/chan-mode.c-156-\tstruct cfg80211_bss cbss = {\nnet/mac80211/tests/chan-mode.c:157:\t\t.channel = \u0026t_sdata-\u003eband_5ghz.channels[0],\nnet/mac80211/tests/chan-mode.c-158-\t};\n--\nnet/mac80211/tests/chan-mode.c-186-\t\t\tparams-\u003evht_basic_mcs_1_4 :\nnet/mac80211/tests/chan-mode.c:187:\t\t\tle16_get_bits(t_sdata-\u003eband_5ghz.vht_cap.vht_mcs.rx_mcs_map, 0xff),\nnet/mac80211/tests/chan-mode.c-188-\t\tparams-\u003evht_basic_mcs_5_8_set ?\nnet/mac80211/tests/chan-mode.c-189-\t\t\tparams-\u003evht_basic_mcs_5_8 :\nnet/mac80211/tests/chan-mode.c:190:\t\t\tle16_get_bits(t_sdata-\u003eband_5ghz.vht_cap.vht_mcs.rx_mcs_map, 0xff00),\nnet/mac80211/tests/chan-mode.c-191-\t\t/* HE Capabilities */\n--\nnet/mac80211/tests/chan-mode.c-219-\t/* To force EHT downgrade to HE on punctured 80 MHz downgraded to 40 MHz */\nnet/mac80211/tests/chan-mode.c:220:\tset_bit(IEEE80211_HW_DISALLOW_PUNCTURING, t_sdata-\u003elocal.hw.flags);\nnet/mac80211/tests/chan-mode.c-221-\nnet/mac80211/tests/chan-mode.c-222-\tif (params-\u003estrict)\nnet/mac80211/tests/chan-mode.c:223:\t\tset_bit(IEEE80211_HW_STRICT, t_sdata-\u003elocal.hw.flags);\nnet/mac80211/tests/chan-mode.c-224-\telse\nnet/mac80211/tests/chan-mode.c:225:\t\tclear_bit(IEEE80211_HW_STRICT, t_sdata-\u003elocal.hw.flags);\nnet/mac80211/tests/chan-mode.c-226-\nnet/mac80211/tests/chan-mode.c:227:\tt_sdata-\u003esdata-\u003eu.mgd.ht_capa_mask = params-\u003eht_capa_mask;\nnet/mac80211/tests/chan-mode.c:228:\tt_sdata-\u003esdata-\u003eu.mgd.vht_capa = params-\u003evht_capa;\nnet/mac80211/tests/chan-mode.c:229:\tt_sdata-\u003esdata-\u003eu.mgd.vht_capa_mask = params-\u003evht_capa_mask;\nnet/mac80211/tests/chan-mode.c-230-\n--\nnet/mac80211/tests/chan-mode.c-244-\trcu_read_lock();\nnet/mac80211/tests/chan-mode.c:245:\telems = ieee80211_determine_chan_mode(t_sdata-\u003esdata, \u0026conn, \u0026cbss,\nnet/mac80211/tests/chan-mode.c-246-\t\t\t\t\t NULL, 0, \u0026chanreq, \u0026ap_chandef,\n--\nnet/mac80211/tests/util.c=65=static const struct ieee80211_sband_iftype_data sband_capa_5ghz[] = {\n--\nnet/mac80211/tests/util.c-192-\nnet/mac80211/tests/util.c:193:int t_sdata_init(struct kunit_resource *resource, void *ctx)\nnet/mac80211/tests/util.c-194-{\nnet/mac80211/tests/util.c-195-\tstruct kunit *test = kunit_get_current_test();\nnet/mac80211/tests/util.c:196:\tstruct t_sdata *t_sdata;\nnet/mac80211/tests/util.c-197-\nnet/mac80211/tests/util.c:198:\tt_sdata = kzalloc_obj(*t_sdata);\nnet/mac80211/tests/util.c:199:\tKUNIT_ASSERT_NOT_NULL(test, t_sdata);\nnet/mac80211/tests/util.c-200-\nnet/mac80211/tests/util.c:201:\tresource-\u003edata = t_sdata;\nnet/mac80211/tests/util.c-202-\tresource-\u003ename = \"sdata\";\nnet/mac80211/tests/util.c-203-\nnet/mac80211/tests/util.c:204:\tt_sdata-\u003esdata = kzalloc_obj(*t_sdata-\u003esdata);\nnet/mac80211/tests/util.c:205:\tKUNIT_ASSERT_NOT_NULL(test, t_sdata-\u003esdata);\nnet/mac80211/tests/util.c-206-\nnet/mac80211/tests/util.c:207:\tt_sdata-\u003ewiphy = kzalloc_obj(*t_sdata-\u003ewiphy);\nnet/mac80211/tests/util.c:208:\tKUNIT_ASSERT_NOT_NULL(test, t_sdata-\u003ewiphy);\nnet/mac80211/tests/util.c-209-\nnet/mac80211/tests/util.c:210:\tstrscpy(t_sdata-\u003esdata-\u003ename, \"kunit\");\nnet/mac80211/tests/util.c-211-\nnet/mac80211/tests/util.c:212:\tt_sdata-\u003esdata-\u003elocal = \u0026t_sdata-\u003elocal;\nnet/mac80211/tests/util.c:213:\tt_sdata-\u003esdata-\u003elocal-\u003ehw.wiphy = t_sdata-\u003ewiphy;\nnet/mac80211/tests/util.c:214:\tt_sdata-\u003esdata-\u003ewdev.wiphy = t_sdata-\u003ewiphy;\nnet/mac80211/tests/util.c:215:\tt_sdata-\u003esdata-\u003evif.type = NL80211_IFTYPE_STATION;\nnet/mac80211/tests/util.c-216-\nnet/mac80211/tests/util.c:217:\tt_sdata-\u003esdata-\u003edeflink.sdata = t_sdata-\u003esdata;\nnet/mac80211/tests/util.c:218:\tt_sdata-\u003esdata-\u003edeflink.link_id = 0;\nnet/mac80211/tests/util.c-219-\nnet/mac80211/tests/util.c:220:\tt_sdata-\u003ewiphy-\u003ebands[NL80211_BAND_2GHZ] = \u0026t_sdata-\u003eband_2ghz;\nnet/mac80211/tests/util.c:221:\tt_sdata-\u003ewiphy-\u003ebands[NL80211_BAND_5GHZ] = \u0026t_sdata-\u003eband_5ghz;\nnet/mac80211/tests/util.c-222-\n--\nnet/mac80211/tests/util.c-225-\nnet/mac80211/tests/util.c:226:\t\tsband = t_sdata-\u003ewiphy-\u003ebands[band];\nnet/mac80211/tests/util.c-227-\t\tsband-\u003eband = band;\n--\nnet/mac80211/tests/util.c-286-\nnet/mac80211/tests/util.c:287:\tieee80211_set_sband_iftype_data(\u0026t_sdata-\u003eband_5ghz, sband_capa_5ghz);\nnet/mac80211/tests/util.c-288-\n--\nnet/mac80211/tests/util.c-291-\nnet/mac80211/tests/util.c:292:void t_sdata_exit(struct kunit_resource *resource)\nnet/mac80211/tests/util.c-293-{\nnet/mac80211/tests/util.c:294:\tstruct t_sdata *t_sdata = resource-\u003edata;\nnet/mac80211/tests/util.c-295-\nnet/mac80211/tests/util.c:296:\tkfree(t_sdata-\u003eband_2ghz.channels);\nnet/mac80211/tests/util.c:297:\tkfree(t_sdata-\u003eband_2ghz.bitrates);\nnet/mac80211/tests/util.c:298:\tkfree(t_sdata-\u003eband_5ghz.channels);\nnet/mac80211/tests/util.c:299:\tkfree(t_sdata-\u003eband_5ghz.bitrates);\nnet/mac80211/tests/util.c-300-\nnet/mac80211/tests/util.c:301:\tkfree(t_sdata-\u003esdata);\nnet/mac80211/tests/util.c:302:\tkfree(t_sdata-\u003ewiphy);\nnet/mac80211/tests/util.c-303-\nnet/mac80211/tests/util.c:304:\tkfree(t_sdata);\nnet/mac80211/tests/util.c-305-}\n--\nnet/mac80211/tests/util.h-11-\nnet/mac80211/tests/util.h:12:struct t_sdata {\nnet/mac80211/tests/util.h-13-\tstruct ieee80211_sub_if_data *sdata;\n--\nnet/mac80211/tests/util.h-23-#define T_SDATA(test) ({\t\t\t\t\t\t\\\nnet/mac80211/tests/util.h:24:\t\tstruct t_sdata *__t_sdata =\t\t\t\t\\\nnet/mac80211/tests/util.h:25:\t\t\tkunit_alloc_resource(test, t_sdata_init,\t\\\nnet/mac80211/tests/util.h:26:\t\t\t\t\t t_sdata_exit,\t\t\\\nnet/mac80211/tests/util.h-27-\t\t\t\t\t GFP_KERNEL, NULL);\t\t\\\nnet/mac80211/tests/util.h-28-\t\t\t\t\t\t\t\t\t\\\nnet/mac80211/tests/util.h:29:\t\tKUNIT_ASSERT_NOT_NULL(test, __t_sdata);\t\t\t\\\nnet/mac80211/tests/util.h:30:\t\t__t_sdata;\t\t\t\t\t\t\\\nnet/mac80211/tests/util.h-31-\t})\nnet/mac80211/tests/util.h-32-\nnet/mac80211/tests/util.h:33:int t_sdata_init(struct kunit_resource *resource, void *data);\nnet/mac80211/tests/util.h:34:void t_sdata_exit(struct kunit_resource *resource);\nnet/mac80211/tests/util.h-35-\n"
} |
| 15/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 12607 output: 30 thoughts: 2359 Thoughts: **Analysis of the Patch: Worth Fuzzing?** Okay, let's break this down. This patch modifies `net/mac80211/tests/util.c`, which, from what I can tell, is test code for the mac80211 KUnit testing framework. My primary concern is always *reachability*: can this code actually execute in a standard fuzzing environment like QEMU or GCE? The patch itself seems straightforward – a copyright update and, as far as I can see, initialisation code for a test structure. I need to confirm if this part of the code is executed in normal operating conditions. `t_sdata_init` is a helper function used exclusively during KUnit test execution and it's not called anywhere in production kernel networking code, driver code, syscall paths, or any syzkaller-fuzzable execution paths. From my understanding of the fuzzing principles, KUnit tests are generally considered "self-tests" and are not normally fuzzed. Syzkaller focuses on system calls and reachable kernel paths. The prompt clearly states that "User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/) that do not affect the compiled kernel image (vmlinux) or kernel modules" should NOT be fuzzed. This means that even though the code is compiled into the kernel if `CONFIG_MAC80211_KUNIT_TEST` is enabled and that `t_sdata_init` is called, the *reachability* is the gate. And, from what I can see, there is no way for the `t_sdata_init` to be triggered from user-space through syscalls or normal kernel operation. Therefore, given the nature of KUnit tests and the emphasis on reachable code for fuzzing, I would conclude that this patch is *not* worth fuzzing with syzkaller. |
| 16/2 | 2026/09/18 00:25 | tool | grepper |
0mArgs:{
"Expression": "tests/",
"PathPrefix": "net/mac80211"
}Results: {
"Output": "net/mac80211/Makefile=65=mac80211-$(CONFIG_MAC80211_RC_MINSTREL) += $(rc80211_minstrel-y)\nnet/mac80211/Makefile-66-\nnet/mac80211/Makefile:67:obj-y += tests/\nnet/mac80211/Makefile-68-\n"
} |
| 17/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 15524 output: 44 thoughts: 61 Thoughts: **My Analysis of the mac80211 Test Suite** Okay, so I'm looking at the `net/mac80211` test suite, specifically its structure and how it's invoked. It seems nothing *outside* of the `net/mac80211/tests/` directory is directly calling any of the code within it. That's a crucial first observation. It suggests the suite is designed to be self-contained in terms of initialization or is called via a very specific entry point. This points to a module/integration test setup, rather than something that's interleaved deeply with the core driver functionality, which is good from a design perspective. Now, let's drill down. I should check `net/mac80211/tests/chan-mode.c`. I want to understand how this specific test case is registered within the larger suite. I need to see the mechanism used for test suite registration; this will confirm my initial assessment of how this is all triggered and managed. I suspect there's a specific function call or structure that defines the test suite and its constituent parts. Understanding this registration process is key to grasping how these tests are run and integrated into the overall build/test infrastructure. |
| 18/2 | 2026/09/18 00:25 | tool | read-file |
0mError:file net/mac80211/tests/chan-mode.c does not have line 290, it has only 275 lines Args: {
"File": "net/mac80211/tests/chan-mode.c",
"FirstLine": 290,
"LineCount": 40
}Results: {
"error": "file net/mac80211/tests/chan-mode.c does not have line 290, it has only 275 lines"
} |
| 19/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 15937 output: 44 thoughts: 25 Thoughts: Here's my summary, as though I'm reading and thinking about the end of the `net/mac80211/tests/chan-mode.c` file: **Analyzing the Conclusion of chan-mode.c** Alright, let's dive into the tail end of `chan-mode.c` in the `net/mac80211/tests` directory. I'm focusing on how they're wrapping things up here. I'm immediately looking for the standard test framework calls, error handling, and resource cleanup that I expect to see. This is where they'll declare the success or failure and release everything allocated during the test. I want to see if they're properly unregistering anything registered, freeing allocated memory, and returning appropriate exit codes. Are they using the standard `test_` macros? Are they checking for memory leaks with something like `kmemleak` before exiting the test? Proper cleanup is crucial. Any sloppy resource management here, and the test's value is significantly reduced. This is where I see the true quality of the test, and whether they've accounted for every potential exit path. Let's see how they do it. |
| 20/2 | 2026/09/18 00:25 | tool | read-file |
0mArgs:{
"File": "net/mac80211/tests/chan-mode.c",
"FirstLine": 240,
"LineCount": 40
}Results: {
"Contents": " 240:\t\n 241:\t\tmemcpy((void *)rcu_access_pointer(cbss.ies)-\u003edata, bss_ies,\n 242:\t\t sizeof(bss_ies));\n 243:\t\n 244:\t\trcu_read_lock();\n 245:\t\telems = ieee80211_determine_chan_mode(t_sdata-\u003esdata, \u0026conn, \u0026cbss,\n 246:\t\t\t\t\t\t NULL, 0, \u0026chanreq, \u0026ap_chandef,\n 247:\t\t\t\t\t\t userspace_selectors);\n 248:\t\trcu_read_unlock();\n 249:\t\n 250:\t\t/* We do not need elems, free them if they are valid. */\n 251:\t\tif (!IS_ERR_OR_NULL(elems))\n 252:\t\t\tkfree(elems);\n 253:\t\n 254:\t\tif (params-\u003eerror) {\n 255:\t\t\tKUNIT_ASSERT_TRUE(test, IS_ERR(elems));\n 256:\t\t\tKUNIT_ASSERT_EQ(test, PTR_ERR(elems), -params-\u003eerror);\n 257:\t\t} else {\n 258:\t\t\tKUNIT_ASSERT_NOT_ERR_OR_NULL(test, elems);\n 259:\t\t\tKUNIT_ASSERT_EQ(test, conn.mode, params-\u003eexpected_mode);\n 260:\t\t\tKUNIT_ASSERT_EQ(test, conn.bw_limit, params-\u003eexpected_bw_limit);\n 261:\t\t}\n 262:\t}\n 263:\t\n 264:\tstatic struct kunit_case chan_mode_cases[] = {\n 265:\t\tKUNIT_CASE_PARAM(test_determine_chan_mode,\n 266:\t\t\t\t determine_chan_mode_gen_params),\n 267:\t\t{}\n 268:\t};\n 269:\t\n 270:\tstatic struct kunit_suite chan_mode = {\n 271:\t\t.name = \"mac80211-mlme-chan-mode\",\n 272:\t\t.test_cases = chan_mode_cases,\n 273:\t};\n 274:\t\n 275:\tkunit_test_suite(chan_mode);\n"
} |
| 21/2 | 2026/09/18 00:25 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 16852 output: 96 thoughts: 2247 Thoughts: **Analysis of KUnit Test Code and Syzkaller Fuzzing Applicability** Okay, so I'm looking at this patch and immediately, `kunit_test_suite(chan_mode);` jumps out. This is a KUnit test suite, plain and simple. My initial thought is to figure out whether syzkaller even *targets* KUnit tests, or if they're considered non-fuzzable. Syzkaller is all about generating syscall sequences to expose bugs in the running kernel. KUnit tests, on the other hand, typically run during kernel initialization or module load. In a syzkaller context, KUnit is usually either disabled, or if enabled, runs *once* before fuzzing begins. The key question is whether syzkaller can execute test cases with fuzz input. The answer is a clear no; KUnit test parameters are statically hardcoded. This specific patch, as I can see, is removing redundant allocation in a helper function, `t_sdata_init()`, which is used *exclusively* by KUnit test suites within `net/mac80211/tests/`. Now, if someone tries to argue that this "falls strictly into Section 2", I'll quickly need to verify: I need to be sure that the code change does not affect compiled kernel or module, to check whether it is in Section 2, which defines what code should NOT be fuzzed. Looking back at Section 2, it discusses changes that are: non-kernel and non-executable (like documentation, user-space tools, logging), unreachable hardware, or unreachable execution paths. The core principle of patch fuzzing is that it only finds bugs in code that's reachable in standard virtualized environments. If it's structurally unreachable, don't fuzz it. KUnit test code, specifically in this context, is *unreachable* from syzkaller fuzzing. There's no syscall interface, no network packet, no driver probe, nor user interaction to pass fuzz data to these tests. Even if you enable debugfs for KUnit, the tests use static, hardcoded data. Therefore, can syzkaller fuzz KUnit test fixtures? Nope. Syzkaller cannot fuzz KUnit test suites because they are static self-tests. Even though there is a debugfs trigger, the test parameters are static, hardcoded. So is this KUnit test code considered self-tests / unit tests? Yes. I need to confirm whether in-kernel tests (like KUnit) fall into that bullet, if test code should be fuzzed at all, or if KUnit code is structurally unreachable from fuzzing. My thinking is: Can syzkaller ever hit `t_sdata_init` during a fuzzing run? The answer is no. This helper function is ONLY called within KUnit test code. It's never triggered by syscalls, network packets, or user interaction. Syzkaller uses syzlang programs and that's it. It cannot reach the KUnit test code, period. In short, based on the current definitions and core concepts: The KUnit code is not worth fuzzing, and the patch in question is removing a duplicate allocation in a unit test helper function. It's unreachable by syzkaller fuzzing. The patch is only in `net/mac80211/tests/util.c`, which is KUnit test harness / mock fixture code. It is not executed during normal kernel operation and cannot be meaningfully reached or fuzzed by syzkaller. Therefore: `WorthFuzzing`: false `FocusSymbols`: [] `EnableConfigs`: [] My reasoning is the explanation above, that the patch modifies only test utility code used exclusively by mac80211 KUnit unit tests (`t_sdata_init`). This code is part of the KUnit test suite and is structurally unreachable during normal kernel runtime or syzkaller fuzzing. I'm ready to `set-results`. |
| 22/2 | 2026/09/18 00:26 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies test fixture code in net/mac80211/tests/util.c used for mac80211 KUnit unit tests (t_sdata_init). This code is only executed within the KUnit test framework and is structurally unreachable during runtime syzkaller fuzzing.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch exclusively modifies test fixture code in net/mac80211/tests/util.c used for mac80211 KUnit unit tests (t_sdata_init). This code is only executed within the KUnit test framework and is structurally unreachable during runtime syzkaller fuzzing.",
"WorthFuzzing": false
} |
| 23/1 | 2026/09/18 00:26 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|