| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/08/27 06:40 | flow | patch-triage |
2mArgs:null Results: {
"EnableConfigs": [
"MAC80211"
],
"FocusSymbols": [
"ieee80211_beacon_get_tim",
"__ieee80211_beacon_get",
"ieee80211_beacon_get_ap",
"ieee80211_s1g_short_beacon_get"
],
"KMSANReasoning": "The patch modifies the logic for constructing the TIM (Traffic Indication Map) element in beacon frames for S1G interfaces. It changes when and how bytes are appended to the socket buffer (`skb`) using `skb_put_u8()`. All appended bytes are fully initialized values (e.g., `mcast_traffic | (31 \u003c\u003c 1)` or `0`). There are no new allocations, no complex structures with padding, and no uninitialized memory being copied to user space or sent over the network. Therefore, there is no risk of uninitialized memory usage or info-leaks that would require KMSAN. Any potential issues like out-of-bounds writes to the `skb` would be caught by KASAN.",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies `ieee80211_s1g_beacon_add_tim_pvb` and `__ieee80211_beacon_add_tim` in `net/mac80211/tx.c` to conditionally emit a bitmap control or PVB based on unicast and multicast traffic for S1G interfaces. This is a functional change in the core mac80211 stack affecting beacon generation and TIM (Traffic Indication Map) handling. The code is reachable via `ieee80211_beacon_get_tim` and other beacon generation paths which are used by various drivers and the mac80211 stack itself. Therefore, it is worth fuzzing. The relevant config is `MAC80211`.",
"WorthFuzzing": true
} |
| 1/1 | 2026/08/27 06:40 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 22467456b5af67f721f2afa7c2ceb5dc858464c2\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Aug 27 06:40:36 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/net/mac80211/tx.c b/net/mac80211/tx.c\nindex 3a1e2c9e1565e..3896c7b2c4e5c 100644\n--- a/net/mac80211/tx.c\n+++ b/net/mac80211/tx.c\n@@ -5089,10 +5089,18 @@ static void ieee80211_beacon_add_tim_pvb(struct ps_data *ps,\n */\n static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,\n \t\t\t\t\t struct sk_buff *skb,\n-\t\t\t\t\t bool mcast_traffic)\n+\t\t\t\t\t bool mcast_traffic,\n+\t\t\t\t\t bool ucast_traffic)\n {\n \tint blk;\n \n+\t/*\n+\t * if no unicast and multicast traffic don't emit a bitmap control\n+\t * or pvb\n+\t */\n+\tif (!mcast_traffic \u0026\u0026 !ucast_traffic)\n+\t\treturn;\n+\n \t/*\n \t * Emit a bitmap control block with a page slice number of 31 and a\n \t * page index of 0 which indicates as per IEEE80211-2024 9.4.2.5.1\n@@ -5101,6 +5109,10 @@ static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,\n \t */\n \tskb_put_u8(skb, mcast_traffic | (31 \u003c\u003c 1));\n \n+\t/* If there's no unicast traffic we don't need to include a PVB. */\n+\tif (!ucast_traffic)\n+\t\treturn;\n+\n \t/* Emit an encoded block for each non-zero sub-block */\n \tfor (blk = 0; blk \u003c IEEE80211_MAX_SUPPORTED_S1G_TIM_BLOCKS; blk++) {\n \t\tu8 blk_bmap = 0;\n@@ -5182,25 +5194,16 @@ static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,\n \n \tps-\u003edtim_bc_mc = mcast_traffic;\n \n-\tif (have_bits) {\n-\t\tif (s1g)\n-\t\t\tieee80211_s1g_beacon_add_tim_pvb(ps, skb,\n-\t\t\t\t\t\t\t mcast_traffic);\n-\t\telse\n-\t\t\tieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);\n+\tif (s1g) {\n+\t\tieee80211_s1g_beacon_add_tim_pvb(ps, skb, mcast_traffic,\n+\t\t\t\t\t\t have_bits);\n+\t} else if (have_bits) {\n+\t\tieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);\n \t} else {\n-\t\t/*\n-\t\t * If there is no buffered unicast traffic for an S1G\n-\t\t * interface, we can exclude the bitmap control. This is in\n-\t\t * contrast to other phy types as they do include the bitmap\n-\t\t * control and pvb even when there is no buffered traffic.\n-\t\t */\n-\t\tif (!s1g) {\n-\t\t\t/* Bitmap control */\n-\t\t\tskb_put_u8(skb, mcast_traffic);\n-\t\t\t/* Part Virt Bitmap */\n-\t\t\tskb_put_u8(skb, 0);\n-\t\t}\n+\t\t/* Bitmap control */\n+\t\tskb_put_u8(skb, mcast_traffic);\n+\t\t/* Part Virt Bitmap */\n+\t\tskb_put_u8(skb, 0);\n \t}\n \n \ttim-\u003edatalen = skb_tail_pointer(skb) - tim-\u003edata;\n"
} |
| 2/1 | 2026/08/27 06:40 | agent | patch-evaluator |
2mModel:best-expensive Args: null Results: {
"EnableConfigs": [
"MAC80211"
],
"FocusSymbols": [
"ieee80211_beacon_get_tim",
"__ieee80211_beacon_get",
"ieee80211_beacon_get_ap",
"ieee80211_s1g_short_beacon_get"
],
"Reasoning": "The patch modifies `ieee80211_s1g_beacon_add_tim_pvb` and `__ieee80211_beacon_add_tim` in `net/mac80211/tx.c` to conditionally emit a bitmap control or PVB based on unicast and multicast traffic for S1G interfaces. This is a functional change in the core mac80211 stack affecting beacon generation and TIM (Traffic Indication Map) handling. The code is reachable via `ieee80211_beacon_get_tim` and other beacon generation paths which are used by various drivers and the mac80211 stack itself. Therefore, it is worth fuzzing. The relevant config is `MAC80211`.",
"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 22467456b5af67f721f2afa7c2ceb5dc858464c2
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Aug 27 06:40:36 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3a1e2c9e1565e..3896c7b2c4e5c 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -5089,10 +5089,18 @@ static void ieee80211_beacon_add_tim_pvb(struct ps_data *ps,
*/
static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,
struct sk_buff *skb,
- bool mcast_traffic)
+ bool mcast_traffic,
+ bool ucast_traffic)
{
int blk;
+ /*
+ * if no unicast and multicast traffic don't emit a bitmap control
+ * or pvb
+ */
+ if (!mcast_traffic && !ucast_traffic)
+ return;
+
/*
* Emit a bitmap control block with a page slice number of 31 and a
* page index of 0 which indicates as per IEEE80211-2024 9.4.2.5.1
@@ -5101,6 +5109,10 @@ static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,
*/
skb_put_u8(skb, mcast_traffic | (31 << 1));
+ /* If there's no unicast traffic we don't need to include a PVB. */
+ if (!ucast_traffic)
+ return;
+
/* Emit an encoded block for each non-zero sub-block */
for (blk = 0; blk < IEEE80211_MAX_SUPPORTED_S1G_TIM_BLOCKS; blk++) {
u8 blk_bmap = 0;
@@ -5182,25 +5194,16 @@ static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,
ps->dtim_bc_mc = mcast_traffic;
- if (have_bits) {
- if (s1g)
- ieee80211_s1g_beacon_add_tim_pvb(ps, skb,
- mcast_traffic);
- else
- ieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);
+ if (s1g) {
+ ieee80211_s1g_beacon_add_tim_pvb(ps, skb, mcast_traffic,
+ have_bits);
+ } else if (have_bits) {
+ ieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);
} else {
- /*
- * If there is no buffered unicast traffic for an S1G
- * interface, we can exclude the bitmap control. This is in
- * contrast to other phy types as they do include the bitmap
- * control and pvb even when there is no buffered traffic.
- */
- if (!s1g) {
- /* Bitmap control */
- skb_put_u8(skb, mcast_traffic);
- /* Part Virt Bitmap */
- skb_put_u8(skb, 0);
- }
+ /* Bitmap control */
+ skb_put_u8(skb, mcast_traffic);
+ /* Part Virt Bitmap */
+ skb_put_u8(skb, 0);
}
tim->datalen = skb_tail_pointer(skb) - tim->data;
|
| 3/2 | 2026/08/27 06:40 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2797 output: 46 thoughts: 343 Thoughts: **Analyzing a mac80211 Patch for S1G Beacon Optimization** Okay, so this patch is digging into `net/mac80211/tx.c` and specifically tweaking how S1G beacons are generated. The core of it seems to be in the `ieee80211_s1g_beacon_add_tim_pvb` function. This function's signature is getting an extra `bool ucast_traffic` argument. That tells me they're trying to optimize the beacon content based on whether there's unicast traffic present. The logic is fairly straightforward: if there's *no* unicast or multicast traffic, it skips adding the bitmap control or PVB. It also skips the PVB if there is no unicast traffic. Smart. This should reduce the beacon size and transmission time in scenarios where these elements aren't necessary, which is a good optimization for power-constrained devices commonly found in the Sub-1 GHz spectrum. The caller of this modified function, `__ieee80211_beacon_add_tim`, is being updated to pass the `have_bits` flag as the `ucast_traffic` argument. This makes sense; `have_bits` probably directly indicates the presence of unicast traffic in the TIM (Traffic Indication Map). Functionally, this is a change within the `mac80211` subsystem, targeting S1G interfaces (802.11ah). I should note that the mac80211_hwsim module can be useful to test this in virtualized environments. Now, let's see what config options are relevant here, specifically within `mac80211`. I know `MAC80211` is the main one, and I'll likely also need `MAC80211_HWSIM` if I want to simulate and test this. I'm curious about the visibility of these functions. Is `ieee80211_s1g_beacon_add_tim_pvb` static? Yes, it appears so. How about `__ieee80211_beacon_add_tim`? I'll need to double-check that; let's verify if that's also a static function or not. |
| 4/2 | 2026/08/27 06:40 | tool | grepper |
0mArgs:{
"Expression": "__ieee80211_beacon_add_tim",
"PathPrefix": "net/mac80211/tx.c"
}Results: {
"Output": "net/mac80211/tx.c=5090=static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,\n--\nnet/mac80211/tx.c-5160-\nnet/mac80211/tx.c:5161:static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,\nnet/mac80211/tx.c-5162-\t\t\t\t struct ieee80211_link_data *link,\n--\nnet/mac80211/tx.c=5212=static int ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,\n--\nnet/mac80211/tx.c-5226-\tif (local-\u003etim_in_locked_section) {\nnet/mac80211/tx.c:5227:\t\t__ieee80211_beacon_add_tim(sdata, link, ps, skb, is_template);\nnet/mac80211/tx.c-5228-\t} else {\nnet/mac80211/tx.c-5229-\t\tspin_lock_bh(\u0026local-\u003etim_lock);\nnet/mac80211/tx.c:5230:\t\t__ieee80211_beacon_add_tim(sdata, link, ps, skb, is_template);\nnet/mac80211/tx.c-5231-\t\tspin_unlock_bh(\u0026local-\u003etim_lock);\n"
} |
| 5/2 | 2026/08/27 06:40 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 4131 output: 45 thoughts: 27 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience, and written as if they were my own: **Investigating the `ieee80211_beacon_add_tim` Static Function** Alright, so I'm digging into this 802.11 beacon management code, and I see that `ieee80211_beacon_add_tim` is declared as static. That immediately piques my interest. Static functions, by definition, have limited scope – they're only visible within their own compilation unit. This has implications for maintainability, reuse, and potential for unintended side effects if not understood properly. My first thought now is to understand the usage patterns. So I'm mentally parsing the code, and my first step is to quickly identify all call sites. Who's invoking this function, and under what circumstances? Is it called from a central management module, or is it scattered throughout various driver components? Are the call sites documented appropriately? Is this function being used responsibly? What data structures are passed, and how are they being modified? Understanding the call graph will give me a better understanding of potential risks and opportunities related to this static function. |
| 6/2 | 2026/08/27 06:40 | tool | grepper |
0mArgs:{
"Expression": "ieee80211_beacon_add_tim",
"PathPrefix": "net/mac80211/tx.c"
}Results: {
"Output": "net/mac80211/tx.c=5004=void ieee80211_tx_pending(struct tasklet_struct *t)\n--\nnet/mac80211/tx.c-5049-\nnet/mac80211/tx.c:5050:static void ieee80211_beacon_add_tim_pvb(struct ps_data *ps,\nnet/mac80211/tx.c-5051-\t\t\t\t\t struct sk_buff *skb,\n--\nnet/mac80211/tx.c=5090=static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,\n--\nnet/mac80211/tx.c-5160-\nnet/mac80211/tx.c:5161:static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,\nnet/mac80211/tx.c-5162-\t\t\t\t struct ieee80211_link_data *link,\n--\nnet/mac80211/tx.c-5200-\t} else if (have_bits) {\nnet/mac80211/tx.c:5201:\t\tieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);\nnet/mac80211/tx.c-5202-\t} else {\n--\nnet/mac80211/tx.c-5211-\nnet/mac80211/tx.c:5212:static int ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,\nnet/mac80211/tx.c-5213-\t\t\t\t struct ieee80211_link_data *link,\n--\nnet/mac80211/tx.c-5226-\tif (local-\u003etim_in_locked_section) {\nnet/mac80211/tx.c:5227:\t\t__ieee80211_beacon_add_tim(sdata, link, ps, skb, is_template);\nnet/mac80211/tx.c-5228-\t} else {\nnet/mac80211/tx.c-5229-\t\tspin_lock_bh(\u0026local-\u003etim_lock);\nnet/mac80211/tx.c:5230:\t\t__ieee80211_beacon_add_tim(sdata, link, ps, skb, is_template);\nnet/mac80211/tx.c-5231-\t\tspin_unlock_bh(\u0026local-\u003etim_lock);\n--\nnet/mac80211/tx.c=5599=__ieee80211_beacon_get_ap(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5637-\nnet/mac80211/tx.c:5638:\tieee80211_beacon_add_tim(sdata, link, \u0026ap-\u003eps, skb, is_template);\nnet/mac80211/tx.c-5639-\n--\nnet/mac80211/tx.c=5681=ieee80211_s1g_short_beacon_get(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5701-\nnet/mac80211/tx.c:5702:\tieee80211_beacon_add_tim(sdata, link, \u0026ap-\u003eps, skb, is_template);\nnet/mac80211/tx.c-5703-\n--\nnet/mac80211/tx.c=5769=__ieee80211_beacon_get(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5893-\t\tskb_put_data(skb, beacon-\u003ehead, beacon-\u003ehead_len);\nnet/mac80211/tx.c:5894:\t\tieee80211_beacon_add_tim(sdata, link, \u0026ifmsh-\u003eps, skb,\nnet/mac80211/tx.c-5895-\t\t\t\t\t is_template);\n"
} |
| 7/2 | 2026/08/27 06:40 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5271 output: 37 thoughts: 0 |
| 8/2 | 2026/08/27 06:41 | tool | grepper |
0mArgs:{
"Expression": "MAC80211",
"PathPrefix": "net/mac80211/Kconfig"
}Results: {
"Output": "net/mac80211/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\nnet/mac80211/Kconfig:2:config MAC80211\nnet/mac80211/Kconfig-3-\ttristate \"Generic IEEE 802.11 Networking Stack (mac80211)\"\n--\nnet/mac80211/Kconfig-15-\nnet/mac80211/Kconfig:16:comment \"CFG80211 needs to be enabled for MAC80211\"\nnet/mac80211/Kconfig-17-\tdepends on CFG80211=n\nnet/mac80211/Kconfig-18-\nnet/mac80211/Kconfig:19:if MAC80211 != n\nnet/mac80211/Kconfig-20-\nnet/mac80211/Kconfig:21:config MAC80211_HAS_RC\nnet/mac80211/Kconfig-22-\tbool\nnet/mac80211/Kconfig-23-\nnet/mac80211/Kconfig:24:config MAC80211_RC_MINSTREL\nnet/mac80211/Kconfig-25-\tbool \"Minstrel\" if EXPERT\nnet/mac80211/Kconfig:26:\tselect MAC80211_HAS_RC\nnet/mac80211/Kconfig-27-\tdefault y\n--\nnet/mac80211/Kconfig=31=choice\nnet/mac80211/Kconfig-32-\tprompt \"Default rate control algorithm\"\nnet/mac80211/Kconfig:33:\tdepends on MAC80211_HAS_RC\nnet/mac80211/Kconfig:34:\tdefault MAC80211_RC_DEFAULT_MINSTREL\nnet/mac80211/Kconfig-35-\thelp\n--\nnet/mac80211/Kconfig-40-\nnet/mac80211/Kconfig:41:config MAC80211_RC_DEFAULT_MINSTREL\nnet/mac80211/Kconfig-42-\tbool \"Minstrel\"\nnet/mac80211/Kconfig:43:\tdepends on MAC80211_RC_MINSTREL\nnet/mac80211/Kconfig-44-\thelp\n--\nnet/mac80211/Kconfig=48=endchoice\nnet/mac80211/Kconfig-49-\nnet/mac80211/Kconfig:50:config MAC80211_RC_DEFAULT\nnet/mac80211/Kconfig-51-\tstring\nnet/mac80211/Kconfig:52:\tdefault \"minstrel_ht\" if MAC80211_RC_DEFAULT_MINSTREL\nnet/mac80211/Kconfig-53-\tdefault \"\"\n--\nnet/mac80211/Kconfig=57=comment \"Some wireless drivers require a rate control algorithm\"\nnet/mac80211/Kconfig:58:\tdepends on MAC80211 \u0026\u0026 MAC80211_HAS_RC=n\nnet/mac80211/Kconfig-59-\nnet/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\nnet/mac80211/Kconfig:63:\tdepends on MAC80211\nnet/mac80211/Kconfig-64-\tdefault KUNIT_ALL_TESTS\n--\nnet/mac80211/Kconfig-69-\nnet/mac80211/Kconfig:70:config MAC80211_MESH\nnet/mac80211/Kconfig-71-\tbool \"Enable mac80211 mesh networking support\"\nnet/mac80211/Kconfig:72:\tdepends on MAC80211\nnet/mac80211/Kconfig-73-\thelp\n--\nnet/mac80211/Kconfig-78-\nnet/mac80211/Kconfig:79:config MAC80211_LEDS\nnet/mac80211/Kconfig-80-\tbool \"Enable LED triggers\"\nnet/mac80211/Kconfig:81:\tdepends on MAC80211\nnet/mac80211/Kconfig:82:\tdepends on LEDS_CLASS=y || LEDS_CLASS=MAC80211\nnet/mac80211/Kconfig-83-\tselect LEDS_TRIGGERS\n--\nnet/mac80211/Kconfig-87-\nnet/mac80211/Kconfig:88:config MAC80211_DEBUGFS\nnet/mac80211/Kconfig-89-\tbool \"Export mac80211 internals in DebugFS\"\nnet/mac80211/Kconfig:90:\tdepends on MAC80211 \u0026\u0026 CFG80211_DEBUGFS\nnet/mac80211/Kconfig-91-\thelp\n--\nnet/mac80211/Kconfig-96-\nnet/mac80211/Kconfig:97:config MAC80211_MESSAGE_TRACING\nnet/mac80211/Kconfig-98-\tbool \"Trace all mac80211 debug messages\"\nnet/mac80211/Kconfig:99:\tdepends on MAC80211 \u0026\u0026 TRACING\nnet/mac80211/Kconfig-100-\thelp\n--\nnet/mac80211/Kconfig-109-\nnet/mac80211/Kconfig:110:menuconfig MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-111-\tbool \"Select mac80211 debugging features\"\nnet/mac80211/Kconfig:112:\tdepends on MAC80211\nnet/mac80211/Kconfig-113-\thelp\n--\nnet/mac80211/Kconfig-115-\nnet/mac80211/Kconfig:116:config MAC80211_NOINLINE\nnet/mac80211/Kconfig-117-\tbool \"Do not inline TX/RX handlers\"\nnet/mac80211/Kconfig:118:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-119-\thelp\n--\nnet/mac80211/Kconfig-131-\nnet/mac80211/Kconfig:132:config MAC80211_VERBOSE_DEBUG\nnet/mac80211/Kconfig-133-\tbool \"Verbose debugging output\"\nnet/mac80211/Kconfig:134:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-135-\thelp\n--\nnet/mac80211/Kconfig-142-\nnet/mac80211/Kconfig:143:config MAC80211_MLME_DEBUG\nnet/mac80211/Kconfig-144-\tbool \"Verbose managed MLME output\"\nnet/mac80211/Kconfig:145:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-146-\thelp\n--\nnet/mac80211/Kconfig-153-\nnet/mac80211/Kconfig:154:config MAC80211_STA_DEBUG\nnet/mac80211/Kconfig-155-\tbool \"Verbose station debugging\"\nnet/mac80211/Kconfig:156:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-157-\thelp\n--\nnet/mac80211/Kconfig-162-\nnet/mac80211/Kconfig:163:config MAC80211_HT_DEBUG\nnet/mac80211/Kconfig-164-\tbool \"Verbose HT debugging\"\nnet/mac80211/Kconfig:165:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-166-\thelp\n--\nnet/mac80211/Kconfig-174-\nnet/mac80211/Kconfig:175:config MAC80211_OCB_DEBUG\nnet/mac80211/Kconfig-176-\tbool \"Verbose OCB debugging\"\nnet/mac80211/Kconfig:177:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-178-\thelp\n--\nnet/mac80211/Kconfig-185-\nnet/mac80211/Kconfig:186:config MAC80211_IBSS_DEBUG\nnet/mac80211/Kconfig-187-\tbool \"Verbose IBSS debugging\"\nnet/mac80211/Kconfig:188:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-189-\thelp\n--\nnet/mac80211/Kconfig-196-\nnet/mac80211/Kconfig:197:config MAC80211_PS_DEBUG\nnet/mac80211/Kconfig-198-\tbool \"Verbose powersave mode debugging\"\nnet/mac80211/Kconfig:199:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-200-\thelp\n--\nnet/mac80211/Kconfig-208-\nnet/mac80211/Kconfig:209:config MAC80211_MPL_DEBUG\nnet/mac80211/Kconfig-210-\tbool \"Verbose mesh peer link debugging\"\nnet/mac80211/Kconfig:211:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:212:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-213-\thelp\n--\nnet/mac80211/Kconfig-221-\nnet/mac80211/Kconfig:222:config MAC80211_MPATH_DEBUG\nnet/mac80211/Kconfig-223-\tbool \"Verbose mesh path debugging\"\nnet/mac80211/Kconfig:224:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:225:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-226-\thelp\n--\nnet/mac80211/Kconfig-234-\nnet/mac80211/Kconfig:235:config MAC80211_MHWMP_DEBUG\nnet/mac80211/Kconfig-236-\tbool \"Verbose mesh HWMP routing debugging\"\nnet/mac80211/Kconfig:237:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:238:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-239-\thelp\n--\nnet/mac80211/Kconfig-247-\nnet/mac80211/Kconfig:248:config MAC80211_MESH_SYNC_DEBUG\nnet/mac80211/Kconfig-249-\tbool \"Verbose mesh synchronization debugging\"\nnet/mac80211/Kconfig:250:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:251:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-252-\thelp\n--\nnet/mac80211/Kconfig-258-\nnet/mac80211/Kconfig:259:config MAC80211_MESH_CSA_DEBUG\nnet/mac80211/Kconfig-260-\tbool \"Verbose mesh channel switch debugging\"\nnet/mac80211/Kconfig:261:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:262:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-263-\thelp\n--\nnet/mac80211/Kconfig-269-\nnet/mac80211/Kconfig:270:config MAC80211_MESH_PS_DEBUG\nnet/mac80211/Kconfig-271-\tbool \"Verbose mesh powersave debugging\"\nnet/mac80211/Kconfig:272:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:273:\tdepends on MAC80211_MESH\nnet/mac80211/Kconfig-274-\thelp\n--\nnet/mac80211/Kconfig-280-\nnet/mac80211/Kconfig:281:config MAC80211_TDLS_DEBUG\nnet/mac80211/Kconfig-282-\tbool \"Verbose TDLS debugging\"\nnet/mac80211/Kconfig:283:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-284-\thelp\n--\nnet/mac80211/Kconfig-292-\nnet/mac80211/Kconfig:293:config MAC80211_DEBUG_COUNTERS\nnet/mac80211/Kconfig-294-\tbool \"Extra statistics for TX/RX debugging\"\nnet/mac80211/Kconfig:295:\tdepends on MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig:296:\tdepends on MAC80211_DEBUGFS\nnet/mac80211/Kconfig-297-\thelp\n--\nnet/mac80211/Kconfig-307-\nnet/mac80211/Kconfig:308:config MAC80211_STA_HASH_MAX_SIZE\nnet/mac80211/Kconfig:309:\tint \"Station hash table maximum size\" if MAC80211_DEBUG_MENU\nnet/mac80211/Kconfig-310-\tdefault 0\n"
} |
| 9/2 | 2026/08/27 06:41 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 9595 output: 49 thoughts: 396 Thoughts: **Analyzing Potential `FocusSymbols` in mac80211 Beacon Handling** Okay, let's break this down. I'm looking at these caller functions: `ieee80211_tx_pending`, `__ieee80211_beacon_get_ap`, `ieee80211_s1g_short_beacon_get`, and `__ieee80211_beacon_get`. All of these are deep within the mac80211 core, which is where I want to focus. Initially, `ieee80211_s1g_short_beacon_get` looks like a prime candidate for a `FocusSymbol`; it seems specific and relevant. `__ieee80211_beacon_get_ap` and `__ieee80211_beacon_get` are also strong contenders. However, `ieee80211_tx_pending` as a tasklet handler gives me pause. Tasklet handlers can be pretty generic, so I'm a bit hesitant to designate that one as a `FocusSymbol`. It might be too broad. Wait a second, `ieee80211_s1g_short_beacon_get` is explicitly related to S1G, and that's exactly what this patch is touching upon. The patch modifies `ieee80211_s1g_beacon_add_tim_pvb`, which is then called by `__ieee80211_beacon_add_tim`, which is in turn called by `ieee80211_beacon_add_tim`. Now, here's where it gets interesting: `ieee80211_beacon_add_tim` is called by all the original callers I listed: `ieee80211_tx_pending`, `__ieee80211_beacon_get_ap`, `ieee80211_s1g_short_beacon_get`, and `__ieee80211_beacon_get`. Given the patch's scope, I'm going to determine if `ieee80211_s1g_short_beacon_get` is static or not to further narrow down what the true `FocusSymbols` should be. |
| 10/2 | 2026/08/27 06:41 | tool | grepper |
0mArgs:{
"Expression": "ieee80211_s1g_short_beacon_get",
"PathPrefix": "net/mac80211/tx.c"
}Results: {
"Output": "net/mac80211/tx.c=5680=static struct sk_buff *\nnet/mac80211/tx.c:5681:ieee80211_s1g_short_beacon_get(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5682-\t\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c=5713=ieee80211_beacon_get_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c-5727-\nnet/mac80211/tx.c:5728:\treturn ieee80211_s1g_short_beacon_get(hw, vif, link, chanctx_conf,\nnet/mac80211/tx.c-5729-\t\t\t\t\t s1g_sb, is_template);\n"
} |
| 11/2 | 2026/08/27 06:41 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 10076 output: 45 thoughts: 0 |
| 12/2 | 2026/08/27 06:41 | tool | grepper |
0mArgs:{
"Expression": "ieee80211_beacon_get_ap",
"PathPrefix": "net/mac80211/tx.c"
}Results: {
"Output": "net/mac80211/tx.c=5598=static struct sk_buff *\nnet/mac80211/tx.c:5599:__ieee80211_beacon_get_ap(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5600-\t\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c=5712=static struct sk_buff *\nnet/mac80211/tx.c:5713:ieee80211_beacon_get_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,\nnet/mac80211/tx.c-5714-\t\t\tstruct ieee80211_link_data *link,\n--\nnet/mac80211/tx.c-5723-\t ieee80211_s1g_need_long_beacon(sdata, link))\nnet/mac80211/tx.c:5724:\t\treturn __ieee80211_beacon_get_ap(hw, vif, link, offs,\nnet/mac80211/tx.c-5725-\t\t\t\t\t\t is_template, beacon,\n--\nnet/mac80211/tx.c=5732=static struct ieee80211_ema_beacons *\nnet/mac80211/tx.c:5733:ieee80211_beacon_get_ap_ema_list(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5734-\t\t\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c-5750-\t\tema-\u003ebcn[ema-\u003ecnt].skb =\nnet/mac80211/tx.c:5751:\t\t\tieee80211_beacon_get_ap(hw, vif, link,\nnet/mac80211/tx.c-5752-\t\t\t\t\t\t\u0026ema-\u003ebcn[ema-\u003ecnt].offs,\n--\nnet/mac80211/tx.c=5769=__ieee80211_beacon_get(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5813-\t\t\t*ema_beacons =\nnet/mac80211/tx.c:5814:\t\t\t\tieee80211_beacon_get_ap_ema_list(hw, vif, link,\nnet/mac80211/tx.c-5815-\t\t\t\t\t\t\t\t offs,\n--\nnet/mac80211/tx.c-5829-\nnet/mac80211/tx.c:5830:\t\t\tskb = ieee80211_beacon_get_ap(hw, vif, link, offs,\nnet/mac80211/tx.c-5831-\t\t\t\t\t\t is_template, beacon,\n"
} |
| 13/2 | 2026/08/27 06:41 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 10941 output: 44 thoughts: 0 |
| 14/2 | 2026/08/27 06:42 | tool | grepper |
0mArgs:{
"Expression": "__ieee80211_beacon_get",
"PathPrefix": "net/mac80211/tx.c"
}Results: {
"Output": "net/mac80211/tx.c=5598=static struct sk_buff *\nnet/mac80211/tx.c:5599:__ieee80211_beacon_get_ap(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5600-\t\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c=5713=ieee80211_beacon_get_ap(struct ieee80211_hw *hw, struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c-5723-\t ieee80211_s1g_need_long_beacon(sdata, link))\nnet/mac80211/tx.c:5724:\t\treturn __ieee80211_beacon_get_ap(hw, vif, link, offs,\nnet/mac80211/tx.c-5725-\t\t\t\t\t\t is_template, beacon,\n--\nnet/mac80211/tx.c=5768=static struct sk_buff *\nnet/mac80211/tx.c:5769:__ieee80211_beacon_get(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5770-\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c=5917=ieee80211_beacon_get_template(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5921-{\nnet/mac80211/tx.c:5922:\treturn __ieee80211_beacon_get(hw, vif, offs, true, link_id,\nnet/mac80211/tx.c-5923-\t\t\t\t IEEE80211_INCLUDE_ALL_MBSSID_ELEMS, NULL);\n--\nnet/mac80211/tx.c=5928=ieee80211_beacon_get_template_ema_index(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5932-{\nnet/mac80211/tx.c:5933:\treturn __ieee80211_beacon_get(hw, vif, offs, true, link_id, ema_index,\nnet/mac80211/tx.c-5934-\t\t\t\t NULL);\n--\nnet/mac80211/tx.c=5953=ieee80211_beacon_get_template_ema_list(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5958-\nnet/mac80211/tx.c:5959:\tWARN_ON(__ieee80211_beacon_get(hw, vif, NULL, true, link_id, 0,\nnet/mac80211/tx.c-5960-\t\t\t\t \u0026ema_beacons));\n--\nnet/mac80211/tx.c=5966=struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,\n--\nnet/mac80211/tx.c-5971-\tstruct ieee80211_mutable_offsets offs = {};\nnet/mac80211/tx.c:5972:\tstruct sk_buff *bcn = __ieee80211_beacon_get(hw, vif, \u0026offs, false,\nnet/mac80211/tx.c-5973-\t\t\t\t\t\t link_id,\n"
} |
| 15/2 | 2026/08/27 06:42 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12010 output: 42 thoughts: 0 |
| 16/2 | 2026/08/27 06:42 | tool | grepper |
0mArgs:{
"Expression": "ieee80211_beacon_get_tim",
"PathPrefix": "net/mac80211/"
}Results: {
"Output": "net/mac80211/tx.c=5964=EXPORT_SYMBOL(ieee80211_beacon_get_template_ema_list);\nnet/mac80211/tx.c-5965-\nnet/mac80211/tx.c:5966:struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,\nnet/mac80211/tx.c-5967-\t\t\t\t\t struct ieee80211_vif *vif,\n--\nnet/mac80211/tx.c-5999-}\nnet/mac80211/tx.c:6000:EXPORT_SYMBOL(ieee80211_beacon_get_tim);\nnet/mac80211/tx.c-6001-\n"
} |
| 17/2 | 2026/08/27 06:42 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 12287 output: 39 thoughts: 0 |
| 18/2 | 2026/08/27 06:42 | tool | grepper |
0mArgs:{
"Expression": "ieee80211_beacon_get_tim",
"PathPrefix": "drivers/net/wireless/"
}Results: {
"Output": "drivers/net/wireless/ath/carl9170/tx.c=1616=int carl9170_update_beacon(struct ar9170 *ar, const bool submit)\n--\ndrivers/net/wireless/ath/carl9170/tx.c-1629-\ndrivers/net/wireless/ath/carl9170/tx.c:1630:\tskb = ieee80211_beacon_get_tim(ar-\u003ehw, carl9170_get_vif(cvif),\ndrivers/net/wireless/ath/carl9170/tx.c-1631-\t\t\t\t NULL, NULL, 0);\n--\ndrivers/net/wireless/ath/wcn36xx/main.c=799=static void wcn36xx_bss_info_changed(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/ath/wcn36xx/main.c-938-\t\t\t\t\t vif-\u003eaddr, false);\ndrivers/net/wireless/ath/wcn36xx/main.c:939:\t\t\tskb = ieee80211_beacon_get_tim(hw, vif, \u0026tim_off,\ndrivers/net/wireless/ath/wcn36xx/main.c-940-\t\t\t\t\t\t \u0026tim_len, 0);\n--\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c=585=brcms_ops_bss_info_changed(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c-682-\t\tspin_lock_bh(\u0026wl-\u003elock);\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c:683:\t\tbeacon = ieee80211_beacon_get_tim(hw, vif, \u0026tim_offset, NULL, 0);\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c-684-\t\tbrcms_c_set_new_beacon(wl-\u003ewlc, beacon, tim_offset,\n--\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c=944=static int brcms_ops_beacon_set_tim(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c-952-\tif (wl-\u003ewlc-\u003evif)\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c:953:\t\tbeacon = ieee80211_beacon_get_tim(hw, wl-\u003ewlc-\u003evif,\ndrivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c-954-\t\t\t\t\t\t \u0026tim_offset, NULL, 0);\n--\ndrivers/net/wireless/realtek/rtw88/fw.c=1226=static struct sk_buff *rtw_get_rsvd_page_skb(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/realtek/rtw88/fw.c-1251-\tcase RSVD_BEACON:\ndrivers/net/wireless/realtek/rtw88/fw.c:1252:\t\tskb_new = ieee80211_beacon_get_tim(hw, vif, \u0026tim_offset, NULL, 0);\ndrivers/net/wireless/realtek/rtw88/fw.c-1253-\t\trsvd_pkt-\u003etim_offset = tim_offset;\n--\ndrivers/net/wireless/realtek/rtw89/fw.c=4699=int rtw89_fw_h2c_update_beacon(struct rtw89_dev *rtwdev,\n--\ndrivers/net/wireless/realtek/rtw89/fw.c-4723-\ndrivers/net/wireless/realtek/rtw89/fw.c:4724:\tskb_beacon = ieee80211_beacon_get_tim(rtwdev-\u003ehw, vif, \u0026tim_offset,\ndrivers/net/wireless/realtek/rtw89/fw.c-4725-\t\t\t\t\t NULL, 0);\n--\ndrivers/net/wireless/realtek/rtw89/fw.c=4779=int rtw89_fw_h2c_update_beacon_be(struct rtw89_dev *rtwdev,\n--\ndrivers/net/wireless/realtek/rtw89/fw.c-4802-\ndrivers/net/wireless/realtek/rtw89/fw.c:4803:\tskb_beacon = ieee80211_beacon_get_tim(rtwdev-\u003ehw, vif, \u0026tim_offset,\ndrivers/net/wireless/realtek/rtw89/fw.c-4804-\t\t\t\t\t NULL, 0);\n--\ndrivers/net/wireless/rsi/rsi_91x_hal.c=425=int rsi_prepare_beacon(struct rsi_common *common, struct sk_buff *skb)\n--\ndrivers/net/wireless/rsi/rsi_91x_hal.c-446-\t\treturn -EINVAL;\ndrivers/net/wireless/rsi/rsi_91x_hal.c:447:\tmac_bcn = ieee80211_beacon_get_tim(adapter-\u003ehw,\ndrivers/net/wireless/rsi/rsi_91x_hal.c-448-\t\t\t\t\t vif,\n--\ndrivers/net/wireless/silabs/wfx/sta.c=588=static int wfx_update_tim(struct wfx_vif *wvif)\n--\ndrivers/net/wireless/silabs/wfx/sta.c-594-\ndrivers/net/wireless/silabs/wfx/sta.c:595:\tskb = ieee80211_beacon_get_tim(wvif-\u003ewdev-\u003ehw, vif, \u0026tim_offset,\ndrivers/net/wireless/silabs/wfx/sta.c-596-\t\t\t\t \u0026tim_length, 0);\n--\ndrivers/net/wireless/st/cw1200/sta.c=1664=static int cw1200_set_tim_impl(struct cw1200_common *priv, bool aid0_bit_set)\n--\ndrivers/net/wireless/st/cw1200/sta.c-1674-\ndrivers/net/wireless/st/cw1200/sta.c:1675:\tskb = ieee80211_beacon_get_tim(priv-\u003ehw, priv-\u003evif,\ndrivers/net/wireless/st/cw1200/sta.c-1676-\t\t\t\t \u0026tim_offset, \u0026tim_length, 0);\n--\ndrivers/net/wireless/st/cw1200/sta.c=2189=static int cw1200_upload_beacon(struct cw1200_common *priv)\n--\ndrivers/net/wireless/st/cw1200/sta.c-2207-\ndrivers/net/wireless/st/cw1200/sta.c:2208:\tframe.skb = ieee80211_beacon_get_tim(priv-\u003ehw, priv-\u003evif,\ndrivers/net/wireless/st/cw1200/sta.c-2209-\t\t\t\t\t \u0026tim_offset, \u0026tim_len, 0);\n"
} |
| 19/2 | 2026/08/27 06:42 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 14324 output: 274 thoughts: 0 |
| 20/2 | 2026/08/27 06:43 | tool | set-results |
0mArgs:{
"EnableConfigs": [
"MAC80211"
],
"FocusSymbols": [
"ieee80211_beacon_get_tim",
"__ieee80211_beacon_get",
"ieee80211_beacon_get_ap",
"ieee80211_s1g_short_beacon_get"
],
"Reasoning": "The patch modifies `ieee80211_s1g_beacon_add_tim_pvb` and `__ieee80211_beacon_add_tim` in `net/mac80211/tx.c` to conditionally emit a bitmap control or PVB based on unicast and multicast traffic for S1G interfaces. This is a functional change in the core mac80211 stack affecting beacon generation and TIM (Traffic Indication Map) handling. The code is reachable via `ieee80211_beacon_get_tim` and other beacon generation paths which are used by various drivers and the mac80211 stack itself. Therefore, it is worth fuzzing. The relevant config is `MAC80211`.",
"WorthFuzzing": true
}Results: {
"EnableConfigs": [
"MAC80211"
],
"FocusSymbols": [
"ieee80211_beacon_get_tim",
"__ieee80211_beacon_get",
"ieee80211_beacon_get_ap",
"ieee80211_s1g_short_beacon_get"
],
"Reasoning": "The patch modifies `ieee80211_s1g_beacon_add_tim_pvb` and `__ieee80211_beacon_add_tim` in `net/mac80211/tx.c` to conditionally emit a bitmap control or PVB based on unicast and multicast traffic for S1G interfaces. This is a functional change in the core mac80211 stack affecting beacon generation and TIM (Traffic Indication Map) handling. The code is reachable via `ieee80211_beacon_get_tim` and other beacon generation paths which are used by various drivers and the mac80211 stack itself. Therefore, it is worth fuzzing. The relevant config is `MAC80211`.",
"WorthFuzzing": true
} |
| 21/1 | 2026/08/27 06:43 | action | If |
0mArgs:{
"WorthFuzzing": true
}Results: null |
| 22/2 | 2026/08/27 06:43 | agent | kmsan-evaluator |
0mModel:best-expensive Args: null Results: {
"KMSANReasoning": "The patch modifies the logic for constructing the TIM (Traffic Indication Map) element in beacon frames for S1G interfaces. It changes when and how bytes are appended to the socket buffer (`skb`) using `skb_put_u8()`. All appended bytes are fully initialized values (e.g., `mcast_traffic | (31 \u003c\u003c 1)` or `0`). There are no new allocations, no complex structures with padding, and no uninitialized memory being copied to user space or sent over the network. Therefore, there is no risk of uninitialized memory usage or info-leaks that would require KMSAN. Any potential issues like out-of-bounds writes to the `skb` would be caught by KASAN.",
"NeedsKMSAN": false
}Instruction: You are an expert Linux kernel security engineer specializing in kernel memory
error detectors (KASAN and KMSAN). Your job is to review the provided patch series and
determine if the code changes justify spawning a dedicated KMSAN (KernelMemorySanitizer)
fuzzing session in addition to standard KASAN fuzzing.
CRITICAL DISTINCTION BETWEEN KASAN AND KMSAN:
- Standard KASAN kernel builds (upstream-apparmor-kasan.config) already enable
a comprehensive suite of debugging tools and sanitizers, including KASAN
(out-of-bounds accesses, use-after-free, double free, invalid free), LOCKDEP
(locking bugs and deadlocks), UB-sanitizers, and memory corruption checks.
- KMSAN (KernelMemorySanitizer) detects reads of UNINITIALIZED memory (stack, heap,
or page allocations) and kernel-to-user memory info-leaks.
Rule: THERE IS NO SENSE IN RUNNING A KMSAN SESSION IF A BUG CAN BE CAUGHT BY KASAN,
LOCKDEP, OR OTHER STANDARD BUG DETECTORS.
A dedicated KMSAN fuzzing session incurs significant resource costs. You must ONLY
set NeedsKMSAN=true if the code changes introduce or expose UNINITIALIZED MEMORY risks
that are detected ONLY by KMSAN.
Look holistically at the patch series and surrounding code. Even if no direct
uninitialized field accesses or new buffer allocations are added in the diff itself,
a patch may alter control flow, bounds checking, or data length calculations in ways
that change how the rest of the code operates on existing buffers (e.g. allowing
uninitialized stack/heap memory to be read, copied to user space, or used in control
flow). Do not hesitate to use your code access tools to inspect the surrounding code,
called functions, and callers.
Set NeedsKMSAN=true ONLY IF the patch introduces or modifies:
1. Kernel structures sent to user space (via copy_to_user, put_user, netlink skb
attributes, ioctl output arguments, socket options, or BPF buffers) where fields
or structure padding might not be fully initialized/zeroed.
2. Conditional logic or branching that depends on potentially uninitialized variables
or struct fields.
3. Allocation or initialization of complex data structures where uninitialized fields
could be read later in reachable code paths.
4. Bounds checks, lengths, or logic in a way that allows surrounding code to access
uninitialized bytes of existing buffers.
Set NeedsKMSAN=false IF:
- The code changes primarily risk out-of-bounds access, array overflows, NULL pointer
dereferences, locking deadlocks, or use-after-free bugs (these are already caught
by KASAN, LOCKDEP, or standard bug detectors).
- All stack/heap structures touched or introduced by the patch are fully zeroed
or initialized (e.g. using = {0}, memset, kzalloc) before being read or copied.
- The patch does not introduce any risk of uninitialized memory usage or info-leaks.
Use your code access tools to inspect the surrounding code if necessary, then provide
detailed KMSANReasoning contrasting KASAN vs KMSAN applicability for this patch.
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 22467456b5af67f721f2afa7c2ceb5dc858464c2
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Aug 27 06:40:36 2026 +0000
syz-cluster: applied patch under review
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3a1e2c9e1565e..3896c7b2c4e5c 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -5089,10 +5089,18 @@ static void ieee80211_beacon_add_tim_pvb(struct ps_data *ps,
*/
static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,
struct sk_buff *skb,
- bool mcast_traffic)
+ bool mcast_traffic,
+ bool ucast_traffic)
{
int blk;
+ /*
+ * if no unicast and multicast traffic don't emit a bitmap control
+ * or pvb
+ */
+ if (!mcast_traffic && !ucast_traffic)
+ return;
+
/*
* Emit a bitmap control block with a page slice number of 31 and a
* page index of 0 which indicates as per IEEE80211-2024 9.4.2.5.1
@@ -5101,6 +5109,10 @@ static void ieee80211_s1g_beacon_add_tim_pvb(struct ps_data *ps,
*/
skb_put_u8(skb, mcast_traffic | (31 << 1));
+ /* If there's no unicast traffic we don't need to include a PVB. */
+ if (!ucast_traffic)
+ return;
+
/* Emit an encoded block for each non-zero sub-block */
for (blk = 0; blk < IEEE80211_MAX_SUPPORTED_S1G_TIM_BLOCKS; blk++) {
u8 blk_bmap = 0;
@@ -5182,25 +5194,16 @@ static void __ieee80211_beacon_add_tim(struct ieee80211_sub_if_data *sdata,
ps->dtim_bc_mc = mcast_traffic;
- if (have_bits) {
- if (s1g)
- ieee80211_s1g_beacon_add_tim_pvb(ps, skb,
- mcast_traffic);
- else
- ieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);
+ if (s1g) {
+ ieee80211_s1g_beacon_add_tim_pvb(ps, skb, mcast_traffic,
+ have_bits);
+ } else if (have_bits) {
+ ieee80211_beacon_add_tim_pvb(ps, skb, mcast_traffic);
} else {
- /*
- * If there is no buffered unicast traffic for an S1G
- * interface, we can exclude the bitmap control. This is in
- * contrast to other phy types as they do include the bitmap
- * control and pvb even when there is no buffered traffic.
- */
- if (!s1g) {
- /* Bitmap control */
- skb_put_u8(skb, mcast_traffic);
- /* Part Virt Bitmap */
- skb_put_u8(skb, 0);
- }
+ /* Bitmap control */
+ skb_put_u8(skb, mcast_traffic);
+ /* Part Virt Bitmap */
+ skb_put_u8(skb, 0);
}
tim->datalen = skb_tail_pointer(skb) - tim->data;
|
| 23/3 | 2026/08/27 06:43 | llm | kmsan-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 2794 output: 181 thoughts: 561 Thoughts: **My Assessment of the S1G Beacon TIM Patch** Okay, let's break this down. This patch is focused on refining the Traffic Indication Map (TIM) element within beacon frames, specifically for S1G interfaces. The core of the changes lies in `net/mac80211/tx.c`, affecting `ieee80211_s1g_beacon_add_tim_pvb` and `__ieee80211_beacon_add_tim`. It's all about how and when we add bytes to the beacon frame's `skb` (socket buffer). Essentially, the logic now hinges on the presence of multicast (`mcast_traffic`) and unicast (`ucast_traffic`) data. If *neither* are present, we bail out early. If only multicast is there, we add a bitmap control block and return. *Only* if unicast traffic exists do we include the PVB (Privacy Vector Block). The crucial point here is that we're using `skb_put_u8` to add the bytes. Now, my primary concern is always uninitialized memory. I need to be *absolutely* sure there's no risk of sensitive information leaking or crashes. But after a careful look, I can confirm that this patch *doesn't* introduce any uninitialized memory issues. We're *not* allocating new memory, and we're *not* copying any uninitialized struct fields to the user space or the network. I went through the `skb_put_u8` calls specifically: `skb_put_u8(skb, mcast_traffic | (31 << 1));`, `skb_put_u8(skb, mcast_traffic);`, and `skb_put_u8(skb, 0);`. These all write fully initialized values. There are no allocations, no padding issues that are not specified, no complex structures - it is purely a byte append based on known traffic conditions. The changes are entirely logical, determining *which* bytes get appended, not the values themselves (other than those determined by the provided parameters.) Given this analysis, I'm confident we don't have an uninitialized memory risk. The core logic change is the conditional addition of bytes to the beacon frame. `skb_put_u8` ensures those bytes are written with initialized values. Therefore, I'm going to set `NeedsKMSAN=false`. The risk this patch presents is the possibility of out-of-bounds writes to `skb`, which KASAN would easily catch. |
| 24/3 | 2026/08/27 06:43 | tool | set-results |
0mArgs:{
"KMSANReasoning": "The patch modifies the logic for constructing the TIM (Traffic Indication Map) element in beacon frames for S1G interfaces. It changes when and how bytes are appended to the socket buffer (`skb`) using `skb_put_u8()`. All appended bytes are fully initialized values (e.g., `mcast_traffic | (31 \u003c\u003c 1)` or `0`). There are no new allocations, no complex structures with padding, and no uninitialized memory being copied to user space or sent over the network. Therefore, there is no risk of uninitialized memory usage or info-leaks that would require KMSAN. Any potential issues like out-of-bounds writes to the `skb` would be caught by KASAN.",
"NeedsKMSAN": false
}Results: {
"KMSANReasoning": "The patch modifies the logic for constructing the TIM (Traffic Indication Map) element in beacon frames for S1G interfaces. It changes when and how bytes are appended to the socket buffer (`skb`) using `skb_put_u8()`. All appended bytes are fully initialized values (e.g., `mcast_traffic | (31 \u003c\u003c 1)` or `0`). There are no new allocations, no complex structures with padding, and no uninitialized memory being copied to user space or sent over the network. Therefore, there is no risk of uninitialized memory usage or info-leaks that would require KMSAN. Any potential issues like out-of-bounds writes to the `skb` would be caught by KASAN.",
"NeedsKMSAN": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|