AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/09/07 05:04 flow patch-triage
2m Args:
null

Results:
{
  "EnableConfigs": [
    "MM81X",
    "MM81X_USB",
    "WLAN_VENDOR_MORSEMICRO",
    "MAC80211",
    "USB"
  ],
  "FocusSymbols": [
    "mm81x_cmd_resp_process"
  ],
  "KMSANReasoning": "The patch fixes an out-of-bounds memory read in mm81x_cmd_resp_process() by capping the response copy length to skb-\u003elen (preventing memcpy from reading past the end of the received skb buffer if the response header length claims a larger size). This issue is a classic buffer out-of-bounds read which is directly detected by KASAN. The patch does not introduce any uninitialized memory allocations, conditional branches based on uninitialized data, or kernel-to-user info-leaks. Therefore, standard KASAN fuzzing is sufficient and dedicated KMSAN fuzzing is not warranted.",
  "NeedsKMSAN": false,
  "Reasoning": "The patch adds a bounds check against skb-\u003elen in mm81x_cmd_resp_process() to prevent an out-of-bounds read during memcpy when processing command responses in the Morse Micro MM81x wireless driver. This driver supports USB devices and is reachable in fuzzing environments with USB emulation (e.g. Raw Gadget / dummy_hcd).",
  "WorthFuzzing": true
}

1/1 2026/09/07 05:04 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 57905fa7e3651ef93fe896743300a190df039d05\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Mon Sep 7 05:04:31 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/morsemicro/mm81x/command.c b/drivers/net/wireless/morsemicro/mm81x/command.c\nindex afb7ee9bb236f..591e5ba107533 100644\n--- a/drivers/net/wireless/morsemicro/mm81x/command.c\n+++ b/drivers/net/wireless/morsemicro/mm81x/command.c\n@@ -209,6 +209,7 @@ int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\n \t\tlength = min_t(int, length,\n \t\t\t       le16_to_cpu(src_resp-\u003ehdr.len) +\n \t\t\t\t       sizeof(struct host_cmd_header));\n+\t\tlength = min_t(int, length, skb-\u003elen);\n \t\tmemcpy(dest_resp, src_resp, length);\n \t} else {\n \t\tret = le32_to_cpu(src_resp-\u003estatus);\n"
}

2/1 2026/09/07 05:04 agent patch-evaluator
1m Model:
core

Args:
null

Results:
{
  "EnableConfigs": [
    "MM81X",
    "MM81X_USB",
    "WLAN_VENDOR_MORSEMICRO",
    "MAC80211",
    "USB"
  ],
  "FocusSymbols": [
    "mm81x_cmd_resp_process"
  ],
  "Reasoning": "The patch adds a bounds check against skb-\u003elen in mm81x_cmd_resp_process() to prevent an out-of-bounds read during memcpy when processing command responses in the Morse Micro MM81x wireless driver. This driver supports USB devices and is reachable in fuzzing environments with USB emulation (e.g. Raw Gadget / dummy_hcd).",
  "WorthFuzzing": true
}

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 57905fa7e3651ef93fe896743300a190df039d05
Author: syz-cluster <triage@syzkaller.com>
Date:   Mon Sep 7 05:04:31 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/morsemicro/mm81x/command.c b/drivers/net/wireless/morsemicro/mm81x/command.c
index afb7ee9bb236f..591e5ba107533 100644
--- a/drivers/net/wireless/morsemicro/mm81x/command.c
+++ b/drivers/net/wireless/morsemicro/mm81x/command.c
@@ -209,6 +209,7 @@ int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)
 		length = min_t(int, length,
 			       le16_to_cpu(src_resp->hdr.len) +
 				       sizeof(struct host_cmd_header));
+		length = min_t(int, length, skb->len);
 		memcpy(dest_resp, src_resp, length);
 	} else {
 		ret = le32_to_cpu(src_resp->status);

3/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 2930
							output: 33
							thoughts: 124
						

Thoughts:
**Analyzing the Impact of the Code Change**

Okay, first things first, let's dive into this diff. It looks like the change is within `drivers/net/wireless/morsemicro/mm81x/command.c`. Specifically, the affected function is `mm81x_cmd_resp_process`. Right, so this suggests we're dealing with command response processing within the mm81x driver.

Now, I need to understand the architecture of this driver. To get a handle on the underlying interface, I'll quickly check the directory, `drivers/net/wireless/morsemicro/mm81x/`. Is this SPI, SDIO, USB, PCIe, or something else entirely? A quick scan of related files should give me the answer pretty quickly.

To be thorough, let's use `grepper` or `read-file` on `drivers/net/wireless/morsemicro/` or Kconfig to quickly identify if there are any obvious clues to what's going on.



4/2 2026/09/07 05:04 tool grepper
0m Args:
{
  "Expression": "mm81x",
  "PathPrefix": "drivers/net/wireless/morsemicro"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 4847 lines.\nUse more precise expression if possible.\n\ndrivers/net/wireless/morsemicro/Kconfig=13=if WLAN_VENDOR_MORSEMICRO\ndrivers/net/wireless/morsemicro/Kconfig:14:source \"drivers/net/wireless/morsemicro/mm81x/Kconfig\"\ndrivers/net/wireless/morsemicro/Kconfig-15-endif # WLAN_VENDOR_MORSEMICRO\n--\ndrivers/net/wireless/morsemicro/Makefile-1-# SPDX-License-Identifier: GPL-2.0\ndrivers/net/wireless/morsemicro/Makefile:2:obj-$(CONFIG_MM81X) += mm81x/\n--\ndrivers/net/wireless/morsemicro/mm81x/Makefile-2-\ndrivers/net/wireless/morsemicro/mm81x/Makefile:3:obj-$(CONFIG_MM81X) += mm81x_core.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile-4-\ndrivers/net/wireless/morsemicro/mm81x/Makefile:5:mm81x_core-y += core.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:6:mm81x_core-y += mac.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:7:mm81x_core-y += hw.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:8:mm81x_core-y += fw.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:9:mm81x_core-y += command.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:10:mm81x_core-y += ps.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:11:mm81x_core-y += skbq.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:12:mm81x_core-y += yaps_hw.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:13:mm81x_core-y += yaps.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:14:mm81x_core-y += rc.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:15:mm81x_core-y += mmrc.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile-16-\ndrivers/net/wireless/morsemicro/mm81x/Makefile:17:obj-$(CONFIG_MM81X_USB) += mm81x_usb.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:18:mm81x_usb-y += usb.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile-19-\ndrivers/net/wireless/morsemicro/mm81x/Makefile:20:obj-$(CONFIG_MM81X_SDIO) += mm81x_sdio.o\ndrivers/net/wireless/morsemicro/mm81x/Makefile:21:mm81x_sdio-y += sdio.o\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-11-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:12:enum mm81x_bus_type {\ndrivers/net/wireless/morsemicro/mm81x/bus.h-13-\tMM81X_BUS_TYPE_USB,\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-16-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:17:struct mm81x_bus_ops {\ndrivers/net/wireless/morsemicro/mm81x/bus.h:18:\tint (*dm_read)(struct mm81x *mors, u32 addr, u8 *data, int len);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:19:\tint (*dm_write)(struct mm81x *mors, u32 addr, const u8 *data, int len);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:20:\tint (*reg32_read)(struct mm81x *mors, u32 addr, u32 *data);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:21:\tint (*reg32_write)(struct mm81x *mors, u32 addr, u32 data);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:22:\tint (*digital_reset)(struct mm81x *mors);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:23:\tvoid (*set_bus_enable)(struct mm81x *mors, bool enable);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:24:\tvoid (*config_burst_mode)(struct mm81x *mors, bool enable_burst);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:25:\tvoid (*claim)(struct mm81x *mors);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:26:\tvoid (*set_irq)(struct mm81x *mors, bool enable);\ndrivers/net/wireless/morsemicro/mm81x/bus.h:27:\tvoid (*release)(struct mm81x *mors);\ndrivers/net/wireless/morsemicro/mm81x/bus.h-28-\tunsigned int bulk_alignment;\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-36-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:37:/* mm81x_dm_read - len must be rounded up to the nearest 4-byte boundary */\ndrivers/net/wireless/morsemicro/mm81x/bus.h:38:static inline int mm81x_dm_read(struct mm81x *mors, u32 addr, u8 *data, int len)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-39-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-42-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:43:static inline int mm81x_dm_write(struct mm81x *mors, u32 addr, const u8 *data,\ndrivers/net/wireless/morsemicro/mm81x/bus.h-44-\t\t\t\t int len)\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-48-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:49:static inline int mm81x_reg32_read(struct mm81x *mors, u32 addr, u32 *data)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-50-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-53-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:54:static inline int mm81x_reg32_write(struct mm81x *mors, u32 addr, u32 data)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-55-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-58-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:59:static inline int mm81x_bus_digital_reset(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-60-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-66-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:67:static inline void mm81x_set_bus_enable(struct mm81x *mors, bool enable)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-68-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-71-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:72:static inline void mm81x_bus_config_burst_mode(struct mm81x *mors,\ndrivers/net/wireless/morsemicro/mm81x/bus.h-73-\t\t\t\t\t       bool enable_burst)\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-78-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:79:static inline void mm81x_claim_bus(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-80-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-83-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:84:static inline void mm81x_bus_set_irq(struct mm81x *mors, bool enable)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-85-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-88-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:89:static inline void mm81x_release_bus(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-90-{\n--\ndrivers/net/wireless/morsemicro/mm81x/bus.h-93-\ndrivers/net/wireless/morsemicro/mm81x/bus.h:94:static inline unsigned int mm81x_bus_get_alignment(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/bus.h-95-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=27=struct host_cmd_resp_cb {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-32-\ndrivers/net/wireless/morsemicro/mm81x/command.c:33:static int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-34-\t\t\tstruct host_cmd_req *req, u32 length, u32 timeout)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-41-\tstruct sk_buff *skb;\ndrivers/net/wireless/morsemicro/mm81x/command.c:42:\tstruct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors);\ndrivers/net/wireless/morsemicro/mm81x/command.c-43-\tstruct host_cmd_resp_cb *resp_cb;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-57-\ndrivers/net/wireless/morsemicro/mm81x/command.c:58:\tmm81x_ps_disable(mors);\ndrivers/net/wireless/morsemicro/mm81x/command.c-59-\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-62-\ndrivers/net/wireless/morsemicro/mm81x/command.c:63:\t\tskb = mm81x_skbq_alloc_skb(cmd_q, cmd_len);\ndrivers/net/wireless/morsemicro/mm81x/command.c-64-\t\tif (!skb) {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-83-\t\ttimeout = timeout ? timeout : HOST_CMD_DEFAULT_TIMEOUT_MS;\ndrivers/net/wireless/morsemicro/mm81x/command.c:84:\t\tret = mm81x_skbq_skb_tx(cmd_q, \u0026skb, NULL,\ndrivers/net/wireless/morsemicro/mm81x/command.c-85-\t\t\t\t\tMM81X_SKB_CHAN_COMMAND);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-88-\t\tif (ret) {\ndrivers/net/wireless/morsemicro/mm81x/command.c:89:\t\t\tdev_err(mors-\u003edev, \"mm81x_skbq_tx fail: %d\", ret);\ndrivers/net/wireless/morsemicro/mm81x/command.c-90-\t\t\tbreak;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-121-\t\tspin_lock_bh(\u0026cmd_q-\u003elock);\ndrivers/net/wireless/morsemicro/mm81x/command.c:122:\t\tmm81x_skbq_skb_finish(cmd_q, skb, NULL);\ndrivers/net/wireless/morsemicro/mm81x/command.c-123-\t\tspin_unlock_bh(\u0026cmd_q-\u003elock);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-128-\ndrivers/net/wireless/morsemicro/mm81x/command.c:129:\tmm81x_ps_enable(mors);\ndrivers/net/wireless/morsemicro/mm81x/command.c-130-\tmutex_unlock(\u0026mors-\u003ecmd_wait);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-145-\ndrivers/net/wireless/morsemicro/mm81x/command.c:146:int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\ndrivers/net/wireless/morsemicro/mm81x/command.c-147-{\ndrivers/net/wireless/morsemicro/mm81x/command.c-148-\tint length, ret = -ESRCH; /* No such process */\ndrivers/net/wireless/morsemicro/mm81x/command.c:149:\tstruct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors);\ndrivers/net/wireless/morsemicro/mm81x/command.c-150-\tstruct host_cmd_resp *src_resp = (struct host_cmd_resp *)(skb-\u003edata);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-163-\tif (!HOST_CMD_IS_RESP(src_resp)) {\ndrivers/net/wireless/morsemicro/mm81x/command.c:164:\t\tret = mm81x_mac_event_recv(mors, skb);\ndrivers/net/wireless/morsemicro/mm81x/command.c-165-\t\tgoto exit_free;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-169-\ndrivers/net/wireless/morsemicro/mm81x/command.c:170:\tcmd_skb = mm81x_skbq_tx_pending(cmd_q);\ndrivers/net/wireless/morsemicro/mm81x/command.c-171-\tif (cmd_skb) {\ndrivers/net/wireless/morsemicro/mm81x/command.c:172:\t\tmm81x_skbq_pull_hdr_post_tx(cmd_skb);\ndrivers/net/wireless/morsemicro/mm81x/command.c-173-\t\treq = (struct host_cmd_req *)cmd_skb-\u003edata;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-232-\ndrivers/net/wireless/morsemicro/mm81x/command.c:233:int mm81x_cmd_sta_state(struct mm81x *mors, struct mm81x_vif *mors_vif, u16 aid,\ndrivers/net/wireless/morsemicro/mm81x/command.c-234-\t\t\tstruct ieee80211_sta *sta,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-246-\ndrivers/net/wireless/morsemicro/mm81x/command.c:247:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-248-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-249-\ndrivers/net/wireless/morsemicro/mm81x/command.c:250:int mm81x_cmd_add_if(struct mm81x *mors, u16 *vif_id, const u8 *addr,\ndrivers/net/wireless/morsemicro/mm81x/command.c-251-\t\t     enum nl80211_iftype type)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-271-\ndrivers/net/wireless/morsemicro/mm81x/command.c:272:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-273-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-279-\ndrivers/net/wireless/morsemicro/mm81x/command.c:280:int mm81x_cmd_get_capabilities(struct mm81x *mors, u16 vif_id,\ndrivers/net/wireless/morsemicro/mm81x/command.c:281:\t\t\t       struct mm81x_fw_caps *capabilities)\ndrivers/net/wireless/morsemicro/mm81x/command.c-282-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-289-\ndrivers/net/wireless/morsemicro/mm81x/command.c:290:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026rsp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-291-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(rsp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-295-\tcapabilities-\u003eampdu_mss = rsp.capabilities.ampdu_mss;\ndrivers/net/wireless/morsemicro/mm81x/command.c:296:\tcapabilities-\u003emm81x_mmss_offset = rsp.morse_mmss_offset;\ndrivers/net/wireless/morsemicro/mm81x/command.c-297-\tcapabilities-\u003ebeamformee_sts_capability =\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-308-\ndrivers/net/wireless/morsemicro/mm81x/command.c:309:int mm81x_cmd_get_max_txpower(struct mm81x *mors, s32 *out_power_mbm)\ndrivers/net/wireless/morsemicro/mm81x/command.c-310-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-316-\ndrivers/net/wireless/morsemicro/mm81x/command.c:317:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-318-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-324-\ndrivers/net/wireless/morsemicro/mm81x/command.c:325:int mm81x_cmd_hw_scan(struct mm81x *mors, struct mm81x_hw_scan_params *params,\ndrivers/net/wireless/morsemicro/mm81x/command.c-326-\t\t      bool store)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-333-\ndrivers/net/wireless/morsemicro/mm81x/command.c:334:\tcmd_size = mm81x_hw_scan_h_get_cmd_size(params);\ndrivers/net/wireless/morsemicro/mm81x/command.c-335-\tcmd_size = ROUND_BYTES_TO_WORD(cmd_size);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-353-\t\treq-\u003edwell_time_ms = cpu_to_le32(params-\u003edwell_time_ms);\ndrivers/net/wireless/morsemicro/mm81x/command.c:354:\t\tbuf = mm81x_hw_scan_h_insert_tlvs(params, buf);\ndrivers/net/wireless/morsemicro/mm81x/command.c-355-\t}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-359-\treq-\u003ehdr.len = cpu_to_le16((u16)((buf - (u8 *)req) - sizeof(req-\u003ehdr)));\ndrivers/net/wireless/morsemicro/mm81x/command.c:360:\tret = mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-361-\tkfree(req);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-365-\ndrivers/net/wireless/morsemicro/mm81x/command.c:366:int mm81x_cmd_set_txpower(struct mm81x *mors, s32 *out_power_mbm,\ndrivers/net/wireless/morsemicro/mm81x/command.c-367-\t\t\t  int txpower_mbm)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-375-\ndrivers/net/wireless/morsemicro/mm81x/command.c:376:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-377-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-383-\ndrivers/net/wireless/morsemicro/mm81x/command.c:384:int mm81x_cmd_set_channel(struct mm81x *mors, u32 op_chan_freq_hz,\ndrivers/net/wireless/morsemicro/mm81x/command.c-385-\t\t\t  u8 pri_1mhz_chan_idx, u8 op_bw_mhz, u8 pri_bw_mhz,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-398-\ndrivers/net/wireless/morsemicro/mm81x/command.c:399:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-400-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-406-\ndrivers/net/wireless/morsemicro/mm81x/command.c:407:int mm81x_cmd_disable_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.c-408-\t\t\t  u16 aid, struct ieee80211_key_conf *key)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-419-\ndrivers/net/wireless/morsemicro/mm81x/command.c:420:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-421-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-422-\ndrivers/net/wireless/morsemicro/mm81x/command.c:423:int mm81x_cmd_install_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.c-424-\t\t\t  u16 aid, struct ieee80211_key_conf *key,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-446-\ndrivers/net/wireless/morsemicro/mm81x/command.c:447:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-448-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-457-\ndrivers/net/wireless/morsemicro/mm81x/command.c:458:int mm81x_cmd_cfg_multicast_filter(struct mm81x *mors,\ndrivers/net/wireless/morsemicro/mm81x/command.c:459:\t\t\t\t   struct mm81x_vif *mors_vif)\ndrivers/net/wireless/morsemicro/mm81x/command.c-460-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-475-\ndrivers/net/wireless/morsemicro/mm81x/command.c:476:\tret = mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-477-\tkfree(req);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-480-\ndrivers/net/wireless/morsemicro/mm81x/command.c:481:int mm81x_cmd_cfg_bss(struct mm81x *mors, u16 vif_id, u16 beacon_int,\ndrivers/net/wireless/morsemicro/mm81x/command.c-482-\t\t      u16 dtim_period, u32 cssid)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-490-\ndrivers/net/wireless/morsemicro/mm81x/command.c:491:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-492-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-493-\ndrivers/net/wireless/morsemicro/mm81x/command.c:494:int mm81x_cmd_config_beacon_timer(struct mm81x *mors, void *mm81x_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.c-495-\t\t\t\t  bool enabled)\ndrivers/net/wireless/morsemicro/mm81x/command.c-496-{\ndrivers/net/wireless/morsemicro/mm81x/command.c:497:\tstruct mm81x_vif *vif = mm81x_vif;\ndrivers/net/wireless/morsemicro/mm81x/command.c-498-\tstruct host_cmd_req_bss_beacon_config req = {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-503-\ndrivers/net/wireless/morsemicro/mm81x/command.c:504:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-505-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-506-\ndrivers/net/wireless/morsemicro/mm81x/command.c:507:int mm81x_cmd_set_ps(struct mm81x *mors, bool enabled)\ndrivers/net/wireless/morsemicro/mm81x/command.c-508-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-513-\ndrivers/net/wireless/morsemicro/mm81x/command.c:514:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0,\ndrivers/net/wireless/morsemicro/mm81x/command.c-515-\t\t\t    HOST_CMD_POWERSAVE_TIMEOUT_MS);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-517-\ndrivers/net/wireless/morsemicro/mm81x/command.c:518:int mm81x_cmd_cfg_qos(struct mm81x *mors, struct mm81x_queue_params *params)\ndrivers/net/wireless/morsemicro/mm81x/command.c-519-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-529-\ndrivers/net/wireless/morsemicro/mm81x/command.c:530:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-531-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-532-\ndrivers/net/wireless/morsemicro/mm81x/command.c:533:int mm81x_cmd_rm_if(struct mm81x *mors, u16 vif_id)\ndrivers/net/wireless/morsemicro/mm81x/command.c-534-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-538-\ndrivers/net/wireless/morsemicro/mm81x/command.c:539:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-540-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-541-\ndrivers/net/wireless/morsemicro/mm81x/command.c:542:int mm81x_cmd_set_frag_threshold(struct mm81x *mors, u32 frag_threshold)\ndrivers/net/wireless/morsemicro/mm81x/command.c-543-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-550-\ndrivers/net/wireless/morsemicro/mm81x/command.c:551:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-552-}\ndrivers/net/wireless/morsemicro/mm81x/command.c-553-\ndrivers/net/wireless/morsemicro/mm81x/command.c:554:int mm81x_cmd_get_disabled_channels(\ndrivers/net/wireless/morsemicro/mm81x/command.c:555:\tstruct mm81x *mors, struct host_cmd_resp_get_disabled_channels *resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-556-\tuint resp_len)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-561-\ndrivers/net/wireless/morsemicro/mm81x/command.c:562:\treturn mm81x_cmd_tx(mors, (struct host_cmd_resp *)resp, \u0026req, resp_len,\ndrivers/net/wireless/morsemicro/mm81x/command.c-563-\t\t\t    0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h-18-\ndrivers/net/wireless/morsemicro/mm81x/command.h:19:struct mm81x_queue_params;\ndrivers/net/wireless/morsemicro/mm81x/command.h-20-\ndrivers/net/wireless/morsemicro/mm81x/command.h:21:enum mm81x_cmd_return_code {\ndrivers/net/wireless/morsemicro/mm81x/command.h-22-\tMM81X_RET_SUCCESS = 0,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h=44=struct host_cmd_event {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h-48-\ndrivers/net/wireless/morsemicro/mm81x/command.h:49:int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb);\ndrivers/net/wireless/morsemicro/mm81x/command.h:50:int mm81x_cmd_add_if(struct mm81x *mors, u16 *vif_id, const u8 *addr,\ndrivers/net/wireless/morsemicro/mm81x/command.h-51-\t\t     enum nl80211_iftype type);\ndrivers/net/wireless/morsemicro/mm81x/command.h:52:int mm81x_cmd_get_capabilities(struct mm81x *mors, u16 vif_id,\ndrivers/net/wireless/morsemicro/mm81x/command.h:53:\t\t\t       struct mm81x_fw_caps *capabilities);\ndrivers/net/wireless/morsemicro/mm81x/command.h:54:int mm81x_cmd_cfg_qos(struct mm81x *mors, struct mm81x_queue_params *params);\ndrivers/net/wireless/morsemicro/mm81x/command.h:55:int mm81x_cmd_config_beacon_timer(struct mm81x *mors, void *mm81x_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.h-56-\t\t\t\t  bool enabled);\ndrivers/net/wireless/morsemicro/mm81x/command.h:57:int mm81x_cmd_cfg_bss(struct mm81x *mors, u16 vif_id, u16 beacon_int,\ndrivers/net/wireless/morsemicro/mm81x/command.h-58-\t\t      u16 dtim_period, u32 cssid);\ndrivers/net/wireless/morsemicro/mm81x/command.h:59:int mm81x_cmd_set_channel(struct mm81x *mors, u32 op_chan_freq_hz,\ndrivers/net/wireless/morsemicro/mm81x/command.h-60-\t\t\t  u8 pri_1mhz_chan_idx, u8 op_bw_mhz, u8 pri_bw_mhz,\ndrivers/net/wireless/morsemicro/mm81x/command.h-61-\t\t\t  s32 *power_mbm);\ndrivers/net/wireless/morsemicro/mm81x/command.h:62:int mm81x_cmd_get_max_txpower(struct mm81x *mors, s32 *out_power_mbm);\ndrivers/net/wireless/morsemicro/mm81x/command.h:63:int mm81x_cmd_set_txpower(struct mm81x *mors, s32 *out_power_mbm,\ndrivers/net/wireless/morsemicro/mm81x/command.h-64-\t\t\t  int txpower_mbm);\ndrivers/net/wireless/morsemicro/mm81x/command.h:65:int mm81x_cmd_hw_scan(struct mm81x *mors, struct mm81x_hw_scan_params *params,\ndrivers/net/wireless/morsemicro/mm81x/command.h-66-\t\t      bool store);\ndrivers/net/wireless/morsemicro/mm81x/command.h:67:int mm81x_cmd_set_ps(struct mm81x *mors, bool enabled);\ndrivers/net/wireless/morsemicro/mm81x/command.h:68:int mm81x_cmd_cfg_multicast_filter(struct mm81x *mors,\ndrivers/net/wireless/morsemicro/mm81x/command.h:69:\t\t\t\t   struct mm81x_vif *mors_vif);\ndrivers/net/wireless/morsemicro/mm81x/command.h:70:int mm81x_cmd_sta_state(struct mm81x *mors, struct mm81x_vif *mors_vif, u16 aid,\ndrivers/net/wireless/morsemicro/mm81x/command.h-71-\t\t\tstruct ieee80211_sta *sta,\ndrivers/net/wireless/morsemicro/mm81x/command.h-72-\t\t\tenum ieee80211_sta_state state);\ndrivers/net/wireless/morsemicro/mm81x/command.h:73:int mm81x_cmd_install_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.h-74-\t\t\t  u16 aid, struct ieee80211_key_conf *key,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h-76-\t\t\t  enum host_cmd_aes_key_len length);\ndrivers/net/wireless/morsemicro/mm81x/command.h:77:int mm81x_cmd_disable_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\ndrivers/net/wireless/morsemicro/mm81x/command.h-78-\t\t\t  u16 aid, struct ieee80211_key_conf *key);\ndrivers/net/wireless/morsemicro/mm81x/command.h:79:int mm81x_cmd_rm_if(struct mm81x *mors, u16 vif_id);\ndrivers/net/wireless/morsemicro/mm81x/command.h:80:int mm81x_cmd_set_frag_threshold(struct mm81x *mors, u32 frag_threshold);\ndrivers/net/wireless/morsemicro/mm81x/command.h:81:int mm81x_cmd_get_disabled_channels(\ndrivers/net/wireless/morsemicro/mm81x/command.h:82:\tstruct mm81x *mors, struct host_cmd_resp_get_disabled_channels *resp,\ndrivers/net/wireless/morsemicro/mm81x/command.h-83-\tuint resp_len);\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-10-\ndrivers/net/wireless/morsemicro/mm81x/core.c:11:static int mm81x_core_attach_regs(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-12-{\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-14-\ndrivers/net/wireless/morsemicro/mm81x/core.c:15:\tmm81x_claim_bus(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c:16:\tret = mm81x_reg32_read(mors, MM8108_REG_CHIP_ID, \u0026mors-\u003echip_id);\ndrivers/net/wireless/morsemicro/mm81x/core.c:17:\tmm81x_release_bus(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-18-\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-26-\t\tmors-\u003eregs = \u0026mm8108_regs;\ndrivers/net/wireless/morsemicro/mm81x/core.c:27:\t\tmors-\u003ehif.ops = \u0026mm81x_yaps_ops;\ndrivers/net/wireless/morsemicro/mm81x/core.c-28-\t\tbreak;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-35-\ndrivers/net/wireless/morsemicro/mm81x/core.c:36:static void mm81x_core_init_mac_addr(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-37-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:38:\tint ret = mm81x_hw_otp_get_mac_addr(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-39-\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-43-\ndrivers/net/wireless/morsemicro/mm81x/core.c:44:char *mm81x_core_get_fw_path(u32 chip_id, u32 fw_ver)\ndrivers/net/wireless/morsemicro/mm81x/core.c-45-{\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-58-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:59:EXPORT_SYMBOL_GPL(mm81x_core_get_fw_path);\ndrivers/net/wireless/morsemicro/mm81x/core.c-60-\ndrivers/net/wireless/morsemicro/mm81x/core.c:61:struct mm81x *mm81x_core_alloc(size_t priv_size, struct device *dev)\ndrivers/net/wireless/morsemicro/mm81x/core.c-62-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:63:\treturn mm81x_mac_alloc(priv_size, dev);\ndrivers/net/wireless/morsemicro/mm81x/core.c-64-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:65:EXPORT_SYMBOL_GPL(mm81x_core_alloc);\ndrivers/net/wireless/morsemicro/mm81x/core.c-66-\ndrivers/net/wireless/morsemicro/mm81x/core.c:67:int mm81x_core_init(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-68-{\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-73-\ndrivers/net/wireless/morsemicro/mm81x/core.c:74:\tmm81x_core_init_mac_addr(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-75-\ndrivers/net/wireless/morsemicro/mm81x/core.c:76:\tret = mm81x_core_attach_regs(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-77-\tif (ret)\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-89-\ndrivers/net/wireless/morsemicro/mm81x/core.c:90:\tret = mm81x_hif_init(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-91-\tif (ret)\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-105-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:106:EXPORT_SYMBOL_GPL(mm81x_core_init);\ndrivers/net/wireless/morsemicro/mm81x/core.c-107-\ndrivers/net/wireless/morsemicro/mm81x/core.c:108:int mm81x_core_register(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-109-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:110:\treturn mm81x_mac_register(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-111-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:112:EXPORT_SYMBOL_GPL(mm81x_core_register);\ndrivers/net/wireless/morsemicro/mm81x/core.c-113-\ndrivers/net/wireless/morsemicro/mm81x/core.c:114:void mm81x_core_unregister(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-115-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:116:\tmm81x_mac_unregister(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-117-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:118:EXPORT_SYMBOL_GPL(mm81x_core_unregister);\ndrivers/net/wireless/morsemicro/mm81x/core.c-119-\ndrivers/net/wireless/morsemicro/mm81x/core.c:120:void mm81x_core_deinit(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-121-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:122:\tmm81x_hif_finish(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-123-\tflush_workqueue(mors-\u003enet_wq);\n--\ndrivers/net/wireless/morsemicro/mm81x/core.c-127-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:128:EXPORT_SYMBOL_GPL(mm81x_core_deinit);\ndrivers/net/wireless/morsemicro/mm81x/core.c-129-\ndrivers/net/wireless/morsemicro/mm81x/core.c:130:void mm81x_core_free(struct mm81x *mors)\ndrivers/net/wireless/morsemicro/mm81x/core.c-131-{\ndrivers/net/wireless/morsemicro/mm81x/core.c:132:\tmm81x_mac_free(mors);\ndrivers/net/wireless/morsemicro/mm81x/core.c-133-}\ndrivers/net/wireless/morsemicro/mm81x/core.c:134:EXPORT_SYMBOL_GPL(mm81x_core_free);\ndrivers/net/wireless/morsemicro/mm81x/core.c-135-\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-54-\ndrivers/net/wireless/morsemicro/mm81x/core.h:55:struct mm81x_bus_ops;\ndrivers/net/wireless/morsemicro/mm81x/core.h:56:struct mm81x_hif_ops;\ndrivers/net/wireless/morsemicro/mm81x/core.h-57-\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-62-\ndrivers/net/wireless/morsemicro/mm81x/core.h:63:enum mm81x_caps_flags {\ndrivers/net/wireless/morsemicro/mm81x/core.h-64-\tMM81X_CAPS_FW_START = 0,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-131-\ndrivers/net/wireless/morsemicro/mm81x/core.h:132:struct mm81x_fw_caps {\ndrivers/net/wireless/morsemicro/mm81x/core.h-133-\tu32 flags[FW_CAPABILITIES_FLAGS_WIDTH];\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-137-\tu8 maximum_ampdu_length_exponent;\ndrivers/net/wireless/morsemicro/mm81x/core.h:138:\tu8 mm81x_mmss_offset;\ndrivers/net/wireless/morsemicro/mm81x/core.h-139-};\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-141-#define MM81X_FW_SUPP(MM81X_CAPS, CAPABILITY) \\\ndrivers/net/wireless/morsemicro/mm81x/core.h:142:\tmm81x_caps_supported(MM81X_CAPS, MM81X_CAPS_##CAPABILITY)\ndrivers/net/wireless/morsemicro/mm81x/core.h-143-\ndrivers/net/wireless/morsemicro/mm81x/core.h:144:static inline bool mm81x_caps_supported(struct mm81x_fw_caps *caps,\ndrivers/net/wireless/morsemicro/mm81x/core.h:145:\t\t\t\t\tenum mm81x_caps_flags flag)\ndrivers/net/wireless/morsemicro/mm81x/core.h-146-{\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-151-\ndrivers/net/wireless/morsemicro/mm81x/core.h:152:struct mm81x_ps {\ndrivers/net/wireless/morsemicro/mm81x/core.h-153-\tu32 wakers;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-160-\ndrivers/net/wireless/morsemicro/mm81x/core.h:161:enum mm81x_page_aci {\ndrivers/net/wireless/morsemicro/mm81x/core.h-162-\tMM81X_ACI_BE = 0,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-167-\ndrivers/net/wireless/morsemicro/mm81x/core.h:168:enum mm81x_qos_tid_up_index {\ndrivers/net/wireless/morsemicro/mm81x/core.h-169-\tMM81X_QOS_TID_UP_BK = 1,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-181-\ndrivers/net/wireless/morsemicro/mm81x/core.h:182:struct mm81x_sw_version {\ndrivers/net/wireless/morsemicro/mm81x/core.h-183-\tu8 major;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-187-\ndrivers/net/wireless/morsemicro/mm81x/core.h:188:struct mm81x_sta {\ndrivers/net/wireless/morsemicro/mm81x/core.h-189-\tconst struct ieee80211_vif *vif;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-195-\tint max_bw_mhz;\ndrivers/net/wireless/morsemicro/mm81x/core.h:196:\tstruct mm81x_rc_sta rc;\ndrivers/net/wireless/morsemicro/mm81x/core.h-197-\tstruct mmrc_rate last_sta_tx_rate;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-201-\ndrivers/net/wireless/morsemicro/mm81x/core.h:202:struct mm81x_vif {\ndrivers/net/wireless/morsemicro/mm81x/core.h:203:\tstruct mm81x *mors;\ndrivers/net/wireless/morsemicro/mm81x/core.h-204-\tu16 id;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-216-\ndrivers/net/wireless/morsemicro/mm81x/core.h:217:struct mm81x_stale_tx_status {\ndrivers/net/wireless/morsemicro/mm81x/core.h-218-\t/* Stale Tx lock */\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h=223=struct mcast_filter {\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-232-\ndrivers/net/wireless/morsemicro/mm81x/core.h:233:enum mm81x_hw_scan_op {\ndrivers/net/wireless/morsemicro/mm81x/core.h-234-\tMM81X_HW_SCAN_OP_START,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-237-\ndrivers/net/wireless/morsemicro/mm81x/core.h:238:struct mm81x_hw_scan_params {\ndrivers/net/wireless/morsemicro/mm81x/core.h-239-\tstruct ieee80211_hw *hw;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-245-\tu32 dwell_on_home_ms;\ndrivers/net/wireless/morsemicro/mm81x/core.h:246:\tenum mm81x_hw_scan_op operation;\ndrivers/net/wireless/morsemicro/mm81x/core.h-247-\tbool store;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-261-\ndrivers/net/wireless/morsemicro/mm81x/core.h:262:enum mm81x_hw_scan_state {\ndrivers/net/wireless/morsemicro/mm81x/core.h-263-\tHW_SCAN_STATE_IDLE,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-267-\ndrivers/net/wireless/morsemicro/mm81x/core.h:268:struct mm81x_hw_scan {\ndrivers/net/wireless/morsemicro/mm81x/core.h:269:\tenum mm81x_hw_scan_state state;\ndrivers/net/wireless/morsemicro/mm81x/core.h-270-\tstruct completion scan_done;\ndrivers/net/wireless/morsemicro/mm81x/core.h:271:\tstruct mm81x_hw_scan_params *params;\ndrivers/net/wireless/morsemicro/mm81x/core.h-272-\tstruct delayed_work timeout;\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-275-\ndrivers/net/wireless/morsemicro/mm81x/core.h:276:enum mm81x_hif_event_flags {\ndrivers/net/wireless/morsemicro/mm81x/core.h-277-\tMM81X_HIF_EVT_RX_PEND,\n--\ndrivers/net/wireless/morsemicro/mm81x/core.h-288-\ndrivers/net/wireless/morsemicro/mm81x/core.h:289:enum mm81x_state_flags {\ndrivers/net/wireless/morsemicro/mm81x/core.h-290-\tMM81X_STATE_CHIP_UNRESPONSIVE,\n--\n\n"
}

5/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 18084
							output: 43
							thoughts: 26
						

Thoughts:
Okay, let's dive into this. Here's my thought process on this:

**Analyzing the mm81x USB Driver**

Alright, before I get too deep into this, I need to get a handle on the bigger picture. I should start with the Kconfig files for the mm81x platform, particularly the relevant USB settings. I want to see what options are available, what's enabled by default, and how the driver's configuration is controlled at compile time. This will give me a base understanding of the possible build configurations and constraints. Then, I need to open up usb.c, the core driver file. I need to get into the nitty-gritty and trace the probe function to see the hardware detection process. I'll need to know: how are the USB devices identified? What resources does it allocate? Does it handle power management appropriately? What's the interrupt handling like? Basically, I need to follow the driver's execution path from device discovery through initialization to ensure everything is working as expected. And, where are the important data structures defined? Is it doing all the right checks and error handling?



6/2 2026/09/07 05:04 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/Kconfig",
  "FirstLine": 1,
  "LineCount": 60
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0\n   2:\t\n   3:\tconfig MM81X\n   4:\t\ttristate \"Morse Micro MM81x wireless devices\" if COMPILE_TEST\n   5:\t\tdepends on MAC80211\n   6:\t\tselect FW_LOADER\n   7:\t\tselect CRC7\n   8:\t\thelp\n   9:\t\t  This module adds support for wireless devices based\n  10:\t\t  on Morse Micro MM81xx chipsets.\n  11:\t\n  12:\tconfig MM81X_USB\n  13:\t\ttristate \"Morse Micro MM81x USB support\"\n  14:\t\tdepends on MAC80211 \u0026\u0026 USB\n  15:\t\tselect MM81X\n  16:\t\thelp\n  17:\t\t  This module adds support for the USB interface of\n  18:\t\t  devices using the Morse Micro MM81x chipset.\n  19:\t\n  20:\tconfig MM81X_SDIO\n  21:\t\ttristate \"Morse Micro MM81x SDIO support\"\n  22:\t\tdepends on MAC80211 \u0026\u0026 MMC\n  23:\t\tselect MM81X\n  24:\t\thelp\n  25:\t\t  This module adds support for the SDIO interface of\n  26:\t\t  devices using the Morse Micro MM81x chipset.\n"
}

7/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 18742
							output: 45
							thoughts: 103
						

Thoughts:
**Initial Assessment & Investigative Path**

Okay, here's what I'm seeing: MM81X has MM81X_USB, interesting. My immediate thought is, can we fuzz this thing via USB? I'm thinking tools like syzkaller, or maybe even leveraging Raw Gadget or a dummy HCD setup for emulation. Before I go too deep, I need to check the USB code and probe routines. Let's see... I'll dive into `usb.c` and then dig into the specifics of the MM81X implementation. That'll be in `drivers/net/wireless/morsemicro/mm81x/usb.c` and `drivers/net/wireless/morsemicro/mm81x/command.c`. Those are the logical places to start. Gotta get a feel for how they're handling USB communication and commands.



8/2 2026/09/07 05:04 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/usb.c",
  "FirstLine": 1,
  "LineCount": 100
}

Results:
{
  "Contents": "   1:\t// SPDX-License-Identifier: GPL-2.0-only\n   2:\t/*\n   3:\t * Copyright (c) 2017-2026 Morse Micro\n   4:\t */\n   5:\t#include \u003clinux/jiffies.h\u003e\n   6:\t#include \u003clinux/module.h\u003e\n   7:\t#include \u003clinux/usb.h\u003e\n   8:\t#include \"hif.h\"\n   9:\t#include \"bus.h\"\n  10:\t#include \"mac.h\"\n  11:\t#include \"core.h\"\n  12:\t\n  13:\t/*\n  14:\t * URB timeout in milliseconds. If an URB does not complete within this\n  15:\t * time, it will be killed. This timeout needs to account for USB suspendand\n  16:\t * resume occurring before the URB can be transferred, and it also needs to\n  17:\t * account for transferring USB_MAX_TRANSFER_SIZE bytes over a potentially\n  18:\t * slow, congested USB Full Speed link.\n  19:\t */\n  20:\t#define URB_TIMEOUT_MS 250\n  21:\t\n  22:\t/* High speed USB 2^(4-1) * 125usec = 1msec */\n  23:\t#define MM81X_USB_INTERRUPT_INTERVAL 4\n  24:\t\n  25:\t/* Max bytes per USB read/write */\n  26:\t#define USB_MAX_TRANSFER_SIZE (16 * 1024)\n  27:\t\n  28:\t/* INT EP buffer size */\n  29:\t#define MM81X_EP_INT_BUFFER_SIZE 8\n  30:\t\n  31:\t/* Morse vendor IDs*/\n  32:\t#define MM81X_VENDOR_ID 0x325b\n  33:\t#define MM81X_MM810X_PRODUCT_ID 0x8100\n  34:\t\n  35:\t/* Power management runtime auto-suspend delay value in milliseconds */\n  36:\t#define PM_RUNTIME_AUTOSUSPEND_DELAY_MS 100\n  37:\t\n  38:\tenum mm81x_usb_endpoints {\n  39:\t\tMM81X_EP_CMD = 0,\n  40:\t\tMM81X_EP_INT,\n  41:\t\tMM81X_EP_MEM_RD,\n  42:\t\tMM81X_EP_MEM_WR,\n  43:\t\tMM81X_EP_REG_RD,\n  44:\t\tMM81X_EP_REG_WR,\n  45:\t\tMM81X_EP_EP_MAX,\n  46:\t};\n  47:\t\n  48:\tstruct mm81x_usb_endpoint {\n  49:\t\tunsigned char *buffer;\n  50:\t\tstruct urb *urb;\n  51:\t\t__u8 addr;\n  52:\t\tint size;\n  53:\t};\n  54:\t\n  55:\tenum mm81x_usb_flags { MM81X_USB_FLAG_ATTACHED, MM81X_USB_FLAG_SUSPENDED };\n  56:\t\n  57:\tstruct mm81x_usb {\n  58:\t\tstruct usb_device *udev;\n  59:\t\tstruct usb_interface *interface;\n  60:\t\tstruct mm81x_usb_endpoint endpoints[MM81X_EP_EP_MAX];\n  61:\t\tint errors;\n  62:\t\n  63:\t\t/* serialise USB device struct */\n  64:\t\tstruct mutex lock;\n  65:\t\n  66:\t\t/* serialise USB bus access */\n  67:\t\tstruct mutex bus_lock;\n  68:\t\n  69:\t\tbool ongoing_cmd;\n  70:\t\tbool ongoing_rw;\n  71:\t\twait_queue_head_t rw_in_wait;\n  72:\t\tunsigned long flags;\n  73:\t};\n  74:\t\n  75:\tenum mm81x_usb_command_direction {\n  76:\t\tMM81X_USB_WRITE = 0x00,\n  77:\t\tMM81X_USB_READ = 0x80,\n  78:\t\tMM81X_USB_RESET = 0x02,\n  79:\t};\n  80:\t\n  81:\tstruct mm81x_usb_command {\n  82:\t\t__le32 dir; /* Next BULK direction */\n  83:\t\t__le32 address; /* Next BULK address */\n  84:\t\t__le32 length; /* Next BULK size */\n  85:\t};\n  86:\t\n  87:\tstatic const struct usb_device_id mm81x_usb_table[] = {\n  88:\t\t{ USB_DEVICE(MM81X_VENDOR_ID, MM81X_MM810X_PRODUCT_ID) },\n  89:\t\t{} /* Terminating entry */\n  90:\t};\n  91:\t\n  92:\tMODULE_DEVICE_TABLE(usb, mm81x_usb_table);\n  93:\t\n  94:\tstatic void mm81x_usb_irq_work(struct work_struct *work)\n  95:\t{\n  96:\t\tstruct mm81x *mors = container_of(work, struct mm81x, usb_irq_work);\n  97:\t\n  98:\t\tmm81x_claim_bus(mors);\n  99:\t\tmm81x_hw_irq_handle(mors);\n 100:\t\tmm81x_release_bus(mors);\n"
}

9/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 20544
							output: 46
							thoughts: 65
						

Thoughts:
**Diving into Morse Micro Code**

Okay, so I'm taking a look at the Morse Micro code, specifically the USB driver and command handling. I need to get a better handle on how the communication is set up. Let's start by looking at `drivers/net/wireless/morsemicro/mm81x/usb.c` and `command.c`. I'm going to start with `command.c`, specifically around line 200. I want to see how commands are being built and processed. This area probably holds the key to the USB-specific interactions.



10/2 2026/09/07 05:04 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/command.c",
  "FirstLine": 145,
  "LineCount": 90
}

Results:
{
  "Contents": " 145:\t\n 146:\tint mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\n 147:\t{\n 148:\t\tint length, ret = -ESRCH; /* No such process */\n 149:\t\tstruct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors);\n 150:\t\tstruct host_cmd_resp *src_resp = (struct host_cmd_resp *)(skb-\u003edata);\n 151:\t\tstruct sk_buff *cmd_skb = NULL;\n 152:\t\tstruct host_cmd_resp_cb *resp_cb;\n 153:\t\tstruct host_cmd_resp *dest_resp;\n 154:\t\tstruct host_cmd_req *req;\n 155:\t\tu16 message_id = 0;\n 156:\t\tu16 host_id = 0;\n 157:\t\tu16 resp_message_id = le16_to_cpu(src_resp-\u003ehdr.message_id);\n 158:\t\tu16 resp_host_id = le16_to_cpu(src_resp-\u003ehdr.host_id);\n 159:\t\tbool is_late_response = false;\n 160:\t\n 161:\t\tdev_dbg(mors-\u003edev, \"EVT 0x%04x:0x%04x\", resp_message_id, resp_host_id);\n 162:\t\n 163:\t\tif (!HOST_CMD_IS_RESP(src_resp)) {\n 164:\t\t\tret = mm81x_mac_event_recv(mors, skb);\n 165:\t\t\tgoto exit_free;\n 166:\t\t}\n 167:\t\n 168:\t\tmutex_lock(\u0026mors-\u003ecmd_lock);\n 169:\t\n 170:\t\tcmd_skb = mm81x_skbq_tx_pending(cmd_q);\n 171:\t\tif (cmd_skb) {\n 172:\t\t\tmm81x_skbq_pull_hdr_post_tx(cmd_skb);\n 173:\t\t\treq = (struct host_cmd_req *)cmd_skb-\u003edata;\n 174:\t\t\tmessage_id = le16_to_cpu(req-\u003ehdr.message_id);\n 175:\t\t\thost_id = le16_to_cpu(req-\u003ehdr.host_id);\n 176:\t\t}\n 177:\t\n 178:\t\t/*\n 179:\t\t * If there is no pending command or the sequence ID does not match,\n 180:\t\t * this is a late response for a timed out command which has been\n 181:\t\t * cleaned up, so just free up the response. If a command was retried,\n 182:\t\t * the response may be from the retry or from the original command\n 183:\t\t * (late response) but not from both because the firmware will silently\n 184:\t\t * drop a retry if it received the initial request. So a mismatched\n 185:\t\t * retry counter is treated as a matched command and response.\n 186:\t\t */\n 187:\t\tif (!cmd_skb || message_id != resp_message_id ||\n 188:\t\t    (host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK) !=\n 189:\t\t\t    (resp_host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK)) {\n 190:\t\t\tdev_err(mors-\u003edev,\n 191:\t\t\t\t\"Late response for timed out req 0x%04x:%04x have 0x%04x:%04x 0x%04x\",\n 192:\t\t\t\tresp_message_id, resp_host_id, message_id, host_id,\n 193:\t\t\t\tmors-\u003ecmd_seq);\n 194:\t\t\tis_late_response = true;\n 195:\t\t\tgoto exit;\n 196:\t\t}\n 197:\t\tif ((host_id \u0026 HOST_CMD_HOST_ID_RETRY_MASK) !=\n 198:\t\t    (resp_host_id \u0026 HOST_CMD_HOST_ID_RETRY_MASK))\n 199:\t\t\tdev_dbg(mors-\u003edev,\n 200:\t\t\t\t\"Command retry mismatch 0x%04x:%04x 0x%04x:%04x\",\n 201:\t\t\t\tmessage_id, host_id, resp_message_id, resp_host_id);\n 202:\t\n 203:\t\tresp_cb = (struct host_cmd_resp_cb *)IEEE80211_SKB_CB(cmd_skb)\n 204:\t\t\t\t  -\u003edriver_data;\n 205:\t\tlength = resp_cb-\u003elength;\n 206:\t\tdest_resp = resp_cb-\u003edest_resp;\n 207:\t\tif (length \u003e= sizeof(struct host_cmd_resp) \u0026\u0026 dest_resp) {\n 208:\t\t\tret = 0;\n 209:\t\t\tlength = min_t(int, length,\n 210:\t\t\t\t       le16_to_cpu(src_resp-\u003ehdr.len) +\n 211:\t\t\t\t\t       sizeof(struct host_cmd_header));\n 212:\t\t\tlength = min_t(int, length, skb-\u003elen);\n 213:\t\t\tmemcpy(dest_resp, src_resp, length);\n 214:\t\t} else {\n 215:\t\t\tret = le32_to_cpu(src_resp-\u003estatus);\n 216:\t\t}\n 217:\t\n 218:\t\tresp_cb-\u003eret = ret;\n 219:\t\n 220:\texit:\n 221:\t\tif (cmd_skb \u0026\u0026 !is_late_response) {\n 222:\t\t\t/* Complete if not already timed out */\n 223:\t\t\tif (mors-\u003ecmd_comp)\n 224:\t\t\t\tcomplete(mors-\u003ecmd_comp);\n 225:\t\t}\n 226:\t\n 227:\t\tmutex_unlock(\u0026mors-\u003ecmd_lock);\n 228:\texit_free:\n 229:\t\tdev_kfree_skb(skb);\n 230:\t\treturn 0;\n 231:\t}\n 232:\t\n 233:\tint mm81x_cmd_sta_state(struct mm81x *mors, struct mm81x_vif *mors_vif, u16 aid,\n 234:\t\t\t\tstruct ieee80211_sta *sta,\n"
}

11/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 22496
							output: 39
							thoughts: 123
						

Thoughts:
**Analyzing the Patch and Reachability**

Okay, let's dive into this. The task at hand is to understand this patch. It looks like we're dealing with a modification to the `mm81x_cmd_resp_process` function, which resides within `drivers/net/wireless/morsemicro/mm81x/command.c`. Specifically, they've introduced a line: `length = min_t(int, length, skb->len);` right before the `memcpy`. My initial thought is, this is likely a safety check related to buffer overflows, but let's be sure.

The critical next step is determining the impact and if this is the only spot this change is needed. I need to understand where `mm81x_cmd_resp_process` is called from. I need to trace the call paths to get a handle on reachability, identify the context. Finding the callers gives me the bigger picture.



12/2 2026/09/07 05:04 tool grepper
0m Args:
{
  "Expression": "mm81x_cmd_resp_process",
  "PathPrefix": "drivers/net/wireless/morsemicro"
}

Results:
{
  "Output": "drivers/net/wireless/morsemicro/mm81x/command.c=33=static int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-145-\ndrivers/net/wireless/morsemicro/mm81x/command.c:146:int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\ndrivers/net/wireless/morsemicro/mm81x/command.c-147-{\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h=44=struct host_cmd_event {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.h-48-\ndrivers/net/wireless/morsemicro/mm81x/command.h:49:int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb);\ndrivers/net/wireless/morsemicro/mm81x/command.h-50-int mm81x_cmd_add_if(struct mm81x *mors, u16 *vif_id, const u8 *addr,\n--\ndrivers/net/wireless/morsemicro/mm81x/skbq.c=348=static void mm81x_skbq_dispatch_work(struct work_struct *dispatch_work)\n--\ndrivers/net/wireless/morsemicro/mm81x/skbq.c-371-\t\tcase MM81X_SKB_CHAN_COMMAND:\ndrivers/net/wireless/morsemicro/mm81x/skbq.c:372:\t\t\tmm81x_cmd_resp_process(mors, pfirst);\ndrivers/net/wireless/morsemicro/mm81x/skbq.c-373-\t\t\tbreak;\n"
}

13/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 23358
							output: 37
							thoughts: 77
						

Thoughts:
Here's my analysis of how the USB probe and RX packet processing are likely functioning, based on the file paths provided.

**Dissecting the USB & RX Flow**

Alright, let's break this down. The core of the USB interface is probably handled within `drivers/net/wireless/morsemicro/mm81x/usb.c`. This is where the initial interaction with the USB bus is defined. I'd expect to see the USB probe function in here, handling device detection, initialization, and driver attachment. I'll need to confirm that's the entry point.

Now, the interesting bit – RX packet processing. The module `drivers/net/wireless/morsemicro/mm81x/yaps.c` looks immediately promising. The name "yaps" probably stands for something like "Yet Another Packet System" or "Your Application Packet System," indicating a custom protocol or frame handling layer that is specific to the mm81x hardware. I will carefully investigate it.

Within `yaps.c`, and potentially related files like `yaps_hw.c` or `skbq.c`, I'm anticipating finding the meat of the RX path. That's likely where the USB data from the device is marshaled, likely including hardware specific descriptors, then either decoded, de-framed, or passed to a generic networking stack. Perhaps there is some offloading happening here. These files should contain the logic for:

*   **USB Data Reception:** How the data streams from the USB device are received and interpreted.
*   **Packet Construction:** How received data is assembled into complete, usable packets.
*   **Protocol Decoding:** Any custom or hardware-specific decoding of data.
*   **Buffer Management:** The use of `skb` structures, likely managed by `skbq.c`, to store and handle the packets. This could be where the DMA buffers are handled.
*   **Packet Filtering & Demuxing:** Whether there is any hardware-level filtering or demultiplexing before the packets reach the network stack.

I expect to encounter a fair amount of device-specific register manipulation and perhaps direct memory access (DMA) involved in the `yaps_hw.c` file. Given the likely proprietary nature of this chipset, the code likely contains optimizations and idiosyncrasies that necessitate close scrutiny. I will be looking for hardware interrupts and associated ISRs here, which are critical for receiving those packets.

Basically, I need to see how the data flows from the USB endpoint through these various layers to get to the networking stack. I'm especially keen to see how the driver handles potential buffer overflows, error conditions, and the interaction with the USB driver itself. I'm also anticipating that the overall design includes efficient use of DMA for the RX path, especially as this is a wireless interface.



14/2 2026/09/07 05:04 tool grepper
0m Args:
{
  "Expression": "mm81x_usb_probe",
  "PathPrefix": "drivers/net/wireless/morsemicro"
}

Results:
{
  "Output": "drivers/net/wireless/morsemicro/mm81x/usb.c=716=static void mm81x_urb_cleanup(struct mm81x *mors)\n--\ndrivers/net/wireless/morsemicro/mm81x/usb.c-744-\ndrivers/net/wireless/morsemicro/mm81x/usb.c:745:static int mm81x_usb_probe(struct usb_interface *interface,\ndrivers/net/wireless/morsemicro/mm81x/usb.c-746-\t\t\t   const struct usb_device_id *id)\n--\ndrivers/net/wireless/morsemicro/mm81x/usb.c=925=static struct usb_driver mm81x_usb_driver = {\ndrivers/net/wireless/morsemicro/mm81x/usb.c-926-\t.name = \"mm81x_usb\",\ndrivers/net/wireless/morsemicro/mm81x/usb.c:927:\t.probe = mm81x_usb_probe,\ndrivers/net/wireless/morsemicro/mm81x/usb.c-928-\t.disconnect = mm81x_usb_disconnect,\n"
}

15/2 2026/09/07 05:04 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 24380
							output: 47
							thoughts: 35
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Diving into the mm81x USB Driver**

Alright, time to dig into this `mm81x` driver. I need to get a handle on what's going on with this USB interface. Specifically, I'm going to start with the `mm81x_usb_probe` function. That's the entry point, the first thing that gets called when the USB device is connected, right? It's likely going to be the central point for initializing the device, setting up endpoints, and probably registering it with the rest of the wireless subsystem. Let's see what secrets it holds in `drivers/net/wireless/morsemicro/mm81x/usb.c`. I expect to find the core device-specific USB handling there.



16/2 2026/09/07 05:05 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/usb.c",
  "FirstLine": 745,
  "LineCount": 100
}

Results:
{
  "Contents": " 745:\tstatic int mm81x_usb_probe(struct usb_interface *interface,\n 746:\t\t\t\t   const struct usb_device_id *id)\n 747:\t{\n 748:\t\tint ret;\n 749:\t\tstruct mm81x *mors;\n 750:\t\tstruct mm81x_usb *musb;\n 751:\t\n 752:\t\tmors = mm81x_core_alloc(sizeof(*musb), \u0026interface-\u003edev);\n 753:\t\tif (!mors)\n 754:\t\t\treturn -ENOMEM;\n 755:\t\n 756:\t\tmors-\u003ebus_ops = \u0026mm81x_usb_ops;\n 757:\t\tmors-\u003ebus_type = MM81X_BUS_TYPE_USB;\n 758:\t\n 759:\t\tmusb = (struct mm81x_usb *)mors-\u003edrv_priv;\n 760:\t\tmusb-\u003eudev = usb_get_dev(interface_to_usbdev(interface));\n 761:\t\tmusb-\u003einterface = usb_get_intf(interface);\n 762:\t\n 763:\t\tmutex_init(\u0026musb-\u003elock);\n 764:\t\tmutex_init(\u0026musb-\u003ebus_lock);\n 765:\t\tinit_waitqueue_head(\u0026musb-\u003erw_in_wait);\n 766:\t\tusb_set_intfdata(interface, mors);\n 767:\t\n 768:\t\tret = mm81x_usb_detect_endpoints(mors, interface);\n 769:\t\tif (ret \u003c 0)\n 770:\t\t\tgoto err_core_free;\n 771:\t\n 772:\t\tset_bit(MM81X_USB_FLAG_ATTACHED, \u0026musb-\u003eflags);\n 773:\t\n 774:\t\tret = mm81x_core_init(mors);\n 775:\t\tif (ret)\n 776:\t\t\tgoto err_urb_cleanup;\n 777:\t\n 778:\t\tINIT_WORK(\u0026mors-\u003eusb_irq_work, mm81x_usb_irq_work);\n 779:\t\n 780:\t\tret = mm81x_usb_int_enable(mors);\n 781:\t\tif (ret)\n 782:\t\t\tgoto err_core_deinit;\n 783:\t\n 784:\t\tret = mm81x_core_register(mors);\n 785:\t\tif (ret)\n 786:\t\t\tgoto err_usb_int_stop;\n 787:\t\n 788:\t\t/* USB requires remote wakeup functionality for suspend */\n 789:\t\tclear_bit(MM81X_USB_FLAG_SUSPENDED, \u0026musb-\u003eflags);\n 790:\t\tmusb-\u003einterface-\u003eneeds_remote_wakeup = 1;\n 791:\t\tusb_enable_autosuspend(musb-\u003eudev);\n 792:\t\tpm_runtime_set_autosuspend_delay(\u0026musb-\u003eudev-\u003edev,\n 793:\t\t\t\t\t\t PM_RUNTIME_AUTOSUSPEND_DELAY_MS);\n 794:\t\n 795:\t\tusb_autopm_get_interface(interface);\n 796:\t\treturn 0;\n 797:\t\n 798:\terr_usb_int_stop:\n 799:\t\tmm81x_usb_int_stop(mors);\n 800:\terr_core_deinit:\n 801:\t\tmm81x_core_deinit(mors);\n 802:\terr_urb_cleanup:\n 803:\t\tmm81x_urb_cleanup(mors);\n 804:\terr_core_free:\n 805:\t\tmm81x_core_free(mors);\n 806:\t\tusb_put_intf(interface);\n 807:\t\tusb_put_dev(interface_to_usbdev(interface));\n 808:\t\treturn ret;\n 809:\t}\n 810:\t\n 811:\tstatic void mm81x_usb_disconnect(struct usb_interface *interface)\n 812:\t{\n 813:\t\tstruct mm81x *mors = usb_get_intfdata(interface);\n 814:\t\tstruct mm81x_usb *musb = (struct mm81x_usb *)mors-\u003edrv_priv;\n 815:\t\tint minor = interface-\u003eminor;\n 816:\t\tstruct usb_device *udev = interface_to_usbdev(interface);\n 817:\t\n 818:\t\tif (udev-\u003estate == USB_STATE_NOTATTACHED) {\n 819:\t\t\tclear_bit(MM81X_USB_FLAG_ATTACHED, \u0026musb-\u003eflags);\n 820:\t\t\tset_bit(MM81X_STATE_CHIP_UNRESPONSIVE, \u0026mors-\u003estate_flags);\n 821:\t\t\tdev_dbg(mors-\u003edev, \"USB suddenly unplugged\");\n 822:\t\t}\n 823:\t\n 824:\t\tusb_disable_autosuspend(udev);\n 825:\t\n 826:\t\tif (test_bit(MM81X_USB_FLAG_SUSPENDED, \u0026musb-\u003eflags)) {\n 827:\t\t\tdev_dbg(mors-\u003edev, \"USB was suspended: release locks\");\n 828:\t\t\tmm81x_usb_release_bus(mors);\n 829:\t\t\tmutex_unlock(\u0026musb-\u003elock);\n 830:\t\t}\n 831:\t\n 832:\t\tclear_bit(MM81X_USB_FLAG_SUSPENDED, \u0026musb-\u003eflags);\n 833:\t\n 834:\t\tmm81x_core_unregister(mors);\n 835:\t\tmm81x_usb_int_stop(mors);\n 836:\t\tmm81x_core_deinit(mors);\n 837:\t\tmm81x_urb_cleanup(mors);\n 838:\t\tmm81x_core_free(mors);\n 839:\t\n 840:\t\tusb_autopm_put_interface(interface);\n 841:\t\tusb_set_intfdata(interface, NULL);\n 842:\t\tdev_info(\u0026interface-\u003edev, \"USB Morse #%d now disconnected\", minor);\n 843:\t\tusb_put_intf(interface);\n 844:\t\tusb_put_dev(udev);\n"
}

17/2 2026/09/07 05:05 llm patch-evaluator
1m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 26334
							output: 45
							thoughts: 166
						

Thoughts:
**My Initial Assessment of the MM81x USB Driver**

Okay, so I'm looking at `mm81x_usb_probe`. My immediate thought is, this is the entry point for the USB interface. It's going to probe the device, presumably identify it, and then likely register the mac80211 device using `mm81x_core_register`. After that, I would expect it to handle communication, likely through USB endpoints. Standard stuff.

Now, the interesting bit. We have USB emulation via the syzkaller USB Raw Gadget, and it seems like it's designed to emulate a device with the vendor and product IDs 0x325b and 0x8100, which correspond to `MM81X_VENDOR_ID` and `MM81X_MM810X_PRODUCT_ID`. So, the million-dollar question: *can* we initialize this driver using that emulation? Or, does it have some specific hardware dependencies that we need to account for? I need to figure that out.

To do that, I'll go straight to `mm81x_core_init` in `drivers/net/wireless/morsemicro/mm81x/core.c`. That's where the core initialization logic should reside, and that should be the place to start drilling down into any potential hardware dependencies.



18/2 2026/09/07 05:06 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/core.c",
  "FirstLine": 60,
  "LineCount": 50
}

Results:
{
  "Contents": "  60:\t\n  61:\tstruct mm81x *mm81x_core_alloc(size_t priv_size, struct device *dev)\n  62:\t{\n  63:\t\treturn mm81x_mac_alloc(priv_size, dev);\n  64:\t}\n  65:\tEXPORT_SYMBOL_GPL(mm81x_core_alloc);\n  66:\t\n  67:\tint mm81x_core_init(struct mm81x *mors)\n  68:\t{\n  69:\t\tint ret;\n  70:\t\n  71:\t\tset_bit(MM81X_STATE_CHIP_UNRESPONSIVE, \u0026mors-\u003estate_flags);\n  72:\t\tset_bit(MM81X_STATE_RELOAD_FW_AFTER_START, \u0026mors-\u003estate_flags);\n  73:\t\n  74:\t\tmm81x_core_init_mac_addr(mors);\n  75:\t\n  76:\t\tret = mm81x_core_attach_regs(mors);\n  77:\t\tif (ret)\n  78:\t\t\treturn ret;\n  79:\t\n  80:\t\tmors-\u003echip_wq = create_singlethread_workqueue(\"chip_wq\");\n  81:\t\tif (!mors-\u003echip_wq)\n  82:\t\t\treturn -ENOMEM;\n  83:\t\n  84:\t\tmors-\u003enet_wq = create_singlethread_workqueue(\"net_wq\");\n  85:\t\tif (!mors-\u003enet_wq) {\n  86:\t\t\tret = -ENOMEM;\n  87:\t\t\tgoto err_chip_wq;\n  88:\t\t}\n  89:\t\n  90:\t\tret = mm81x_hif_init(mors);\n  91:\t\tif (ret)\n  92:\t\t\tgoto err_wqs;\n  93:\t\n  94:\t\treturn 0;\n  95:\t\n  96:\terr_wqs:\n  97:\t\tflush_workqueue(mors-\u003enet_wq);\n  98:\t\tdestroy_workqueue(mors-\u003enet_wq);\n  99:\t\n 100:\terr_chip_wq:\n 101:\t\tflush_workqueue(mors-\u003echip_wq);\n 102:\t\tdestroy_workqueue(mors-\u003echip_wq);\n 103:\t\n 104:\t\treturn ret;\n 105:\t}\n 106:\tEXPORT_SYMBOL_GPL(mm81x_core_init);\n 107:\t\n 108:\tint mm81x_core_register(struct mm81x *mors)\n 109:\t{\n"
}

19/2 2026/09/07 05:06 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 27551
							output: 38
							thoughts: 186
						

Thoughts:
**Analyzing the Potential for Fuzzing the MM81X USB Wireless Driver**

Okay, let's break this down. First, I need to look at cases 2 and 3, focusing on when we *should* return `WorthFuzzing=false` and `WorthFuzzing=true`, respectively. My goal is to determine if fuzzing this driver is even feasible. I need to understand if the driver is reachable.

Right, so we're talking about drivers that are accessible through virtual buses. Thinking specifically about this MM81X driver, I need to consider all the various bus types that syzkaller supports - virtio, USB gadget, loopback, netlink, binder, sockets, etc. The good news is that USB wireless drivers *are* reachable through syzkaller's USB fuzzing capabilities, especially with the Raw Gadget or dummy_hcd setups. That's a good starting point.

Now, the important part: configuration dependencies. I need to determine what kernel configurations are absolutely required for this driver to be built and, more importantly, *active*. I'm diving into the Kconfig files, starting with `drivers/net/wireless/morsemicro/mm81x/Kconfig`. This is where the core logic lies. Bingo, `MM81X_USB` depends on `MAC80211 && USB` and selects `MM81X`. This means we need the MAC80211 wireless stack and USB support enabled in the kernel config for this MM81X USB driver to even be compiled. Excellent. I also see `WLAN_VENDOR_MORSEMICRO` in `drivers/net/wireless/morsemicro/Kconfig`, so I need to check it, too. This is the crucial information for making informed decisions.



20/2 2026/09/07 05:06 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/Kconfig",
  "FirstLine": 1,
  "LineCount": 20
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig WLAN_VENDOR_MORSEMICRO\n   3:\t\tbool \"Morse Micro devices\"\n   4:\t\tdefault y\n   5:\t\thelp\n   6:\t\t  If you have a wireless card belonging to this class, say Y.\n   7:\t\n   8:\t\t  Note that the answer to this question doesn't directly affect the\n   9:\t\t  kernel: saying N will just cause the configurator to skip all the\n  10:\t\t  questions about these cards. If you say Y, you will be asked for\n  11:\t\t  your specific card in the following questions.\n  12:\t\n  13:\tif WLAN_VENDOR_MORSEMICRO\n  14:\tsource \"drivers/net/wireless/morsemicro/mm81x/Kconfig\"\n  15:\tendif # WLAN_VENDOR_MORSEMICRO\n"
}

21/2 2026/09/07 05:06 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28394
							output: 34
							thoughts: 29
						

Thoughts:
Okay, here's my interpretation of that thought process, as if it were my own:

**Investigating a Potential Dependency**

Alright, I need to understand the dependencies related to `WLAN_VENDOR_MORSEMICRO`. To get a clear picture of its configuration options, I should probably check the `drivers/net/wireless/Kconfig` file. That's usually the place where these sorts of things are defined and where I'll find its associated dependencies, if any. I want to see if this particular vendor option has any specific requirements on other kernel modules or features. Understanding the dependencies is critical for properly configuring this for a build, or troubleshooting any potential conflicts down the line. Let's see what `Kconfig` reveals...



22/2 2026/09/07 05:06 tool grepper
0m Args:
{
  "Expression": "WLAN_VENDOR_MORSEMICRO",
  "PathPrefix": "drivers/net/wireless"
}

Results:
{
  "Output": "drivers/net/wireless/Makefile=14=obj-$(CONFIG_WLAN_VENDOR_MICROCHIP) += microchip/\ndrivers/net/wireless/Makefile:15:obj-$(CONFIG_WLAN_VENDOR_MORSEMICRO) += morsemicro/\ndrivers/net/wireless/Makefile-16-obj-$(CONFIG_WLAN_VENDOR_NXP) += nxp/\n--\ndrivers/net/wireless/morsemicro/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/wireless/morsemicro/Kconfig:2:config WLAN_VENDOR_MORSEMICRO\ndrivers/net/wireless/morsemicro/Kconfig-3-\tbool \"Morse Micro devices\"\n--\ndrivers/net/wireless/morsemicro/Kconfig-12-\ndrivers/net/wireless/morsemicro/Kconfig:13:if WLAN_VENDOR_MORSEMICRO\ndrivers/net/wireless/morsemicro/Kconfig-14-source \"drivers/net/wireless/morsemicro/mm81x/Kconfig\"\ndrivers/net/wireless/morsemicro/Kconfig:15:endif # WLAN_VENDOR_MORSEMICRO\n"
}

23/2 2026/09/07 05:06 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28904
							output: 28
							thoughts: 34
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach this task, as if these were my internal thoughts:

**Investigating Wireless Networking Configuration**

Alright, I need to get a handle on the overall wireless networking configuration within this system. My immediate thought is to start with the Kconfig file for wireless drivers. Specifically, I'll navigate to `drivers/net/wireless/Kconfig`. That's where I would expect to find the core definitions and dependencies for wireless functionality. I'm especially interested in identifying the *parent* configurations. This is critical for understanding the larger picture: Are there parent configs like `WLAN`, `NETDEVICES`, or something similar that conditionally enable or disable broader networking features and, in turn, affect the wireless components? Tracing those parent dependencies is often the most direct path to figuring out how wireless is integrated into the system as a whole and what the implications are of any changes I'm considering. This will give me a proper starting point for any deeper analysis.



24/2 2026/09/07 05:06 tool grepper
0m Args:
{
  "Expression": "morsemicro",
  "PathPrefix": "drivers/net/wireless"
}

Results:
{
  "Output": "drivers/net/wireless/Kconfig=29=source \"drivers/net/wireless/microchip/Kconfig\"\ndrivers/net/wireless/Kconfig:30:source \"drivers/net/wireless/morsemicro/Kconfig\"\ndrivers/net/wireless/Kconfig-31-source \"drivers/net/wireless/nxp/Kconfig\"\n--\ndrivers/net/wireless/Makefile=14=obj-$(CONFIG_WLAN_VENDOR_MICROCHIP) += microchip/\ndrivers/net/wireless/Makefile:15:obj-$(CONFIG_WLAN_VENDOR_MORSEMICRO) += morsemicro/\ndrivers/net/wireless/Makefile-16-obj-$(CONFIG_WLAN_VENDOR_NXP) += nxp/\n--\ndrivers/net/wireless/morsemicro/Kconfig=13=if WLAN_VENDOR_MORSEMICRO\ndrivers/net/wireless/morsemicro/Kconfig:14:source \"drivers/net/wireless/morsemicro/mm81x/Kconfig\"\ndrivers/net/wireless/morsemicro/Kconfig-15-endif # WLAN_VENDOR_MORSEMICRO\n--\ndrivers/net/wireless/morsemicro/mm81x/fw.h-15-#define BCF_DATABASE_SIZE (1024)\ndrivers/net/wireless/morsemicro/mm81x/fw.h:16:#define MM81X_FW_DIR \"morsemicro/mm81x\"\ndrivers/net/wireless/morsemicro/mm81x/fw.h-17-#define MM81X_FW_EXT \".bin\"\n"
}

25/2 2026/09/07 05:06 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 29573
							output: 161
							thoughts: 671
						

Thoughts:
**My Analysis of the `mm81x_cmd_resp_process` Patch**

Okay, let's break this down. First, I need to confirm the relevant Kconfig options. I need to make sure `WLAN`, `MAC80211`, `USB_SUPPORT`, and `USB` are enabled, as well as `WLAN_VENDOR_MORSEMICRO`. The presence of `MM81X_USB` mandates `MM81X` and potentially `MM81X_SDIO` depending on SDIO enablement.

Now, the core of the matter: what function is actually being modified?  Ah, yes, `mm81x_cmd_resp_process`. This looks like a solid candidate for a `FocusSymbol` since it's the specific, non-ubiquitous function being targeted.  Let's make sure nothing else is touched in this patch. Right, just `mm81x_cmd_resp_process`, that's it.

Let's quickly double-check the diff to confirm this. Here we have it: a single modification within `drivers/net/wireless/morsemicro/mm81x/command.c`.  The change involves an additional `min_t` call to ensure the length copied doesn't exceed `skb->len`. Excellent.

Now, a quick check of the Git log or a simple grepper confirms that this is a single-commit change. No other files are affected.

Okay, let's summarize:

*   **Target Architecture:** amd64.
*   **WorthFuzzing:** Yes, as this is reachable via USB emulation or Raw Gadget.
*   **EnableConfigs:** `MM81X`, `MM81X_USB`, `WLAN_VENDOR_MORSEMICRO`, `MAC80211`, and `USB`.
*   **FocusSymbols:** `mm81x_cmd_resp_process`.  This is ideal as it is the non-ubiquitous function we are modifying.
*   **Reasoning:** Concise and clear, as required.

Time to invoke `set-results`. I'm confident in this analysis.



26/2 2026/09/07 05:06 tool set-results
0m Args:
{
  "EnableConfigs": [
    "MM81X",
    "MM81X_USB",
    "WLAN_VENDOR_MORSEMICRO",
    "MAC80211",
    "USB"
  ],
  "FocusSymbols": [
    "mm81x_cmd_resp_process"
  ],
  "Reasoning": "The patch adds a bounds check against skb-\u003elen in mm81x_cmd_resp_process() to prevent an out-of-bounds read during memcpy when processing command responses in the Morse Micro MM81x wireless driver. This driver supports USB devices and is reachable in fuzzing environments with USB emulation (e.g. Raw Gadget / dummy_hcd).",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": [
    "MM81X",
    "MM81X_USB",
    "WLAN_VENDOR_MORSEMICRO",
    "MAC80211",
    "USB"
  ],
  "FocusSymbols": [
    "mm81x_cmd_resp_process"
  ],
  "Reasoning": "The patch adds a bounds check against skb-\u003elen in mm81x_cmd_resp_process() to prevent an out-of-bounds read during memcpy when processing command responses in the Morse Micro MM81x wireless driver. This driver supports USB devices and is reachable in fuzzing environments with USB emulation (e.g. Raw Gadget / dummy_hcd).",
  "WorthFuzzing": true
}

27/1 2026/09/07 05:06 action If
0m Args:
{
  "WorthFuzzing": true
}

Results:
null

28/2 2026/09/07 05:06 agent kmsan-evaluator
0m Model:
core

Args:
null

Results:
{
  "KMSANReasoning": "The patch fixes an out-of-bounds memory read in mm81x_cmd_resp_process() by capping the response copy length to skb-\u003elen (preventing memcpy from reading past the end of the received skb buffer if the response header length claims a larger size). This issue is a classic buffer out-of-bounds read which is directly detected by KASAN. The patch does not introduce any uninitialized memory allocations, conditional branches based on uninitialized data, or kernel-to-user info-leaks. Therefore, standard KASAN fuzzing is sufficient and dedicated KMSAN fuzzing is not warranted.",
  "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:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 57905fa7e3651ef93fe896743300a190df039d05
Author: syz-cluster <triage@syzkaller.com>
Date:   Mon Sep 7 05:04:31 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/morsemicro/mm81x/command.c b/drivers/net/wireless/morsemicro/mm81x/command.c
index afb7ee9bb236f..591e5ba107533 100644
--- a/drivers/net/wireless/morsemicro/mm81x/command.c
+++ b/drivers/net/wireless/morsemicro/mm81x/command.c
@@ -209,6 +209,7 @@ int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)
 		length = min_t(int, length,
 			       le16_to_cpu(src_resp->hdr.len) +
 				       sizeof(struct host_cmd_header));
+		length = min_t(int, length, skb->len);
 		memcpy(dest_resp, src_resp, length);
 	} else {
 		ret = le32_to_cpu(src_resp->status);

29/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 2142
							output: 46
							thoughts: 79
						

Thoughts:
Here's my analysis of the situation:

**Initial Assessment of the Code Change**

Okay, so we have a patch to review. My first step is to zero in on the modified file, `drivers/net/wireless/morsemicro/mm81x/command.c`. That's where the action is. Immediately, I'm thinking about the implications of changes within that specific driver. My experience tells me that it's likely a command handling module of some kind. Now, let's get a closer look at the actual code. My next logical step is to pinpoint the exact location. Line 209 is mentioned, which is a perfect starting point. I can quickly jump to that line using `read-file` or `grepper` and see what's happening in context, a few lines above and below.



30/3 2026/09/07 05:06 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/command.c",
  "FirstLine": 180,
  "LineCount": 70
}

Results:
{
  "Contents": " 180:\t\t * this is a late response for a timed out command which has been\n 181:\t\t * cleaned up, so just free up the response. If a command was retried,\n 182:\t\t * the response may be from the retry or from the original command\n 183:\t\t * (late response) but not from both because the firmware will silently\n 184:\t\t * drop a retry if it received the initial request. So a mismatched\n 185:\t\t * retry counter is treated as a matched command and response.\n 186:\t\t */\n 187:\t\tif (!cmd_skb || message_id != resp_message_id ||\n 188:\t\t    (host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK) !=\n 189:\t\t\t    (resp_host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK)) {\n 190:\t\t\tdev_err(mors-\u003edev,\n 191:\t\t\t\t\"Late response for timed out req 0x%04x:%04x have 0x%04x:%04x 0x%04x\",\n 192:\t\t\t\tresp_message_id, resp_host_id, message_id, host_id,\n 193:\t\t\t\tmors-\u003ecmd_seq);\n 194:\t\t\tis_late_response = true;\n 195:\t\t\tgoto exit;\n 196:\t\t}\n 197:\t\tif ((host_id \u0026 HOST_CMD_HOST_ID_RETRY_MASK) !=\n 198:\t\t    (resp_host_id \u0026 HOST_CMD_HOST_ID_RETRY_MASK))\n 199:\t\t\tdev_dbg(mors-\u003edev,\n 200:\t\t\t\t\"Command retry mismatch 0x%04x:%04x 0x%04x:%04x\",\n 201:\t\t\t\tmessage_id, host_id, resp_message_id, resp_host_id);\n 202:\t\n 203:\t\tresp_cb = (struct host_cmd_resp_cb *)IEEE80211_SKB_CB(cmd_skb)\n 204:\t\t\t\t  -\u003edriver_data;\n 205:\t\tlength = resp_cb-\u003elength;\n 206:\t\tdest_resp = resp_cb-\u003edest_resp;\n 207:\t\tif (length \u003e= sizeof(struct host_cmd_resp) \u0026\u0026 dest_resp) {\n 208:\t\t\tret = 0;\n 209:\t\t\tlength = min_t(int, length,\n 210:\t\t\t\t       le16_to_cpu(src_resp-\u003ehdr.len) +\n 211:\t\t\t\t\t       sizeof(struct host_cmd_header));\n 212:\t\t\tlength = min_t(int, length, skb-\u003elen);\n 213:\t\t\tmemcpy(dest_resp, src_resp, length);\n 214:\t\t} else {\n 215:\t\t\tret = le32_to_cpu(src_resp-\u003estatus);\n 216:\t\t}\n 217:\t\n 218:\t\tresp_cb-\u003eret = ret;\n 219:\t\n 220:\texit:\n 221:\t\tif (cmd_skb \u0026\u0026 !is_late_response) {\n 222:\t\t\t/* Complete if not already timed out */\n 223:\t\t\tif (mors-\u003ecmd_comp)\n 224:\t\t\t\tcomplete(mors-\u003ecmd_comp);\n 225:\t\t}\n 226:\t\n 227:\t\tmutex_unlock(\u0026mors-\u003ecmd_lock);\n 228:\texit_free:\n 229:\t\tdev_kfree_skb(skb);\n 230:\t\treturn 0;\n 231:\t}\n 232:\t\n 233:\tint mm81x_cmd_sta_state(struct mm81x *mors, struct mm81x_vif *mors_vif, u16 aid,\n 234:\t\t\t\tstruct ieee80211_sta *sta,\n 235:\t\t\t\tenum ieee80211_sta_state state)\n 236:\t{\n 237:\t\tstruct host_cmd_req_set_sta_state req = {\n 238:\t\t\t.hdr = INIT_CMD_HDR(req, HOST_CMD_ID_SET_STA_STATE,\n 239:\t\t\t\t\t    mors_vif-\u003eid),\n 240:\t\t\t.aid = cpu_to_le16(aid),\n 241:\t\t\t.state = cpu_to_le16(state),\n 242:\t\t\t.uapsd_queues = sta-\u003euapsd_queues,\n 243:\t\t};\n 244:\t\n 245:\t\tmemcpy(req.sta_addr, sta-\u003eaddr, sizeof(req.sta_addr));\n 246:\t\n 247:\t\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\n 248:\t}\n 249:\t\n"
}

31/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 3734
							output: 46
							thoughts: 25
						

Thoughts:
Okay, here's my summary, presented as a stream of thought:

**Diving Deeper into `mm81x_cmd_resp_process`**

Right, so I'm trying to get the full picture here, and it's clear I need to understand the *entire* context of `mm81x_cmd_resp_process`. I've looked at the entry point and the likely calling functions, but now I'm thinking I can't build my argument without exploring the rest of that function's implementation. What are all the potential paths of execution? Where are the critical data dependencies? I'm going to need to trace through it line by line, look at the conditional branches and data dependencies to see what's really happening. I need to know what happens in every scenario this function handles. I'm going to dig in now and get my head fully around the entire routine before I go any further in my analysis. This should provide me with the comprehensive context I need to move forward confidently.



32/3 2026/09/07 05:06 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/command.c",
  "FirstLine": 140,
  "LineCount": 50
}

Results:
{
  "Contents": " 140:\t\t\t\tle16_to_cpu(req-\u003ehdr.host_id), ret, ret);\n 141:\t\t}\n 142:\t\n 143:\t\treturn ret;\n 144:\t}\n 145:\t\n 146:\tint mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\n 147:\t{\n 148:\t\tint length, ret = -ESRCH; /* No such process */\n 149:\t\tstruct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors);\n 150:\t\tstruct host_cmd_resp *src_resp = (struct host_cmd_resp *)(skb-\u003edata);\n 151:\t\tstruct sk_buff *cmd_skb = NULL;\n 152:\t\tstruct host_cmd_resp_cb *resp_cb;\n 153:\t\tstruct host_cmd_resp *dest_resp;\n 154:\t\tstruct host_cmd_req *req;\n 155:\t\tu16 message_id = 0;\n 156:\t\tu16 host_id = 0;\n 157:\t\tu16 resp_message_id = le16_to_cpu(src_resp-\u003ehdr.message_id);\n 158:\t\tu16 resp_host_id = le16_to_cpu(src_resp-\u003ehdr.host_id);\n 159:\t\tbool is_late_response = false;\n 160:\t\n 161:\t\tdev_dbg(mors-\u003edev, \"EVT 0x%04x:0x%04x\", resp_message_id, resp_host_id);\n 162:\t\n 163:\t\tif (!HOST_CMD_IS_RESP(src_resp)) {\n 164:\t\t\tret = mm81x_mac_event_recv(mors, skb);\n 165:\t\t\tgoto exit_free;\n 166:\t\t}\n 167:\t\n 168:\t\tmutex_lock(\u0026mors-\u003ecmd_lock);\n 169:\t\n 170:\t\tcmd_skb = mm81x_skbq_tx_pending(cmd_q);\n 171:\t\tif (cmd_skb) {\n 172:\t\t\tmm81x_skbq_pull_hdr_post_tx(cmd_skb);\n 173:\t\t\treq = (struct host_cmd_req *)cmd_skb-\u003edata;\n 174:\t\t\tmessage_id = le16_to_cpu(req-\u003ehdr.message_id);\n 175:\t\t\thost_id = le16_to_cpu(req-\u003ehdr.host_id);\n 176:\t\t}\n 177:\t\n 178:\t\t/*\n 179:\t\t * If there is no pending command or the sequence ID does not match,\n 180:\t\t * this is a late response for a timed out command which has been\n 181:\t\t * cleaned up, so just free up the response. If a command was retried,\n 182:\t\t * the response may be from the retry or from the original command\n 183:\t\t * (late response) but not from both because the firmware will silently\n 184:\t\t * drop a retry if it received the initial request. So a mismatched\n 185:\t\t * retry counter is treated as a matched command and response.\n 186:\t\t */\n 187:\t\tif (!cmd_skb || message_id != resp_message_id ||\n 188:\t\t    (host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK) !=\n 189:\t\t\t    (resp_host_id \u0026 HOST_CMD_HOST_ID_SEQ_MASK)) {\n"
}

33/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 4995
							output: 17
							thoughts: 229
						

Thoughts:
**Analyzing a Recent Patch**

Okay, let's break this down. This patch seems straightforward at first glance. It's adding a crucial `length = min_t(int, length, skb->len);` line right before a `memcpy`. The key is what it *replaces*. Previously, the length calculation relied on `le16_to_cpu(src_resp->hdr.len) + sizeof(struct host_cmd_header)`.

The penny drops. Before this fix, if the incoming `skb` (the network buffer) had a length (`skb->len`) smaller than what the code *thought* it should be (`src_resp->hdr.len + sizeof(...)`), that `memcpy` was going to read *past* the end of the data allocated to the `skb`. That's an immediate red flag – an out-of-bounds read on the `skb`'s buffer, probably a classic slab or page out-of-bounds read, and KASAN (the Kernel Address SANitizer) would be having a field day with it. Classic!

Now, to fully understand the impact, I need to check the context. Where is `dest_resp` coming from? And where is this `host_cmd_resp_cb` function being used? Time to grab the grep and do some digging to see where these variables are defined and used. Gotta check where `dest_resp` lives and how it's handled to make sure there are no other potential issues downstream.



34/3 2026/09/07 05:06 tool grepper
0m Args:
{
  "Expression": "dest_resp"
}

Results:
{
  "Output": "drivers/net/wireless/morsemicro/mm81x/command.c=27=struct host_cmd_resp_cb {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-29-\tu32 length;\ndrivers/net/wireless/morsemicro/mm81x/command.c:30:\tstruct host_cmd_resp *dest_resp;\ndrivers/net/wireless/morsemicro/mm81x/command.c-31-};\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=33=static int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-72-\t\tresp_cb-\u003elength = length;\ndrivers/net/wireless/morsemicro/mm81x/command.c:73:\t\tresp_cb-\u003edest_resp = resp;\ndrivers/net/wireless/morsemicro/mm81x/command.c-74-\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=146=int mm81x_cmd_resp_process(struct mm81x *mors, struct sk_buff *skb)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-152-\tstruct host_cmd_resp_cb *resp_cb;\ndrivers/net/wireless/morsemicro/mm81x/command.c:153:\tstruct host_cmd_resp *dest_resp;\ndrivers/net/wireless/morsemicro/mm81x/command.c-154-\tstruct host_cmd_req *req;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-205-\tlength = resp_cb-\u003elength;\ndrivers/net/wireless/morsemicro/mm81x/command.c:206:\tdest_resp = resp_cb-\u003edest_resp;\ndrivers/net/wireless/morsemicro/mm81x/command.c:207:\tif (length \u003e= sizeof(struct host_cmd_resp) \u0026\u0026 dest_resp) {\ndrivers/net/wireless/morsemicro/mm81x/command.c-208-\t\tret = 0;\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-212-\t\tlength = min_t(int, length, skb-\u003elen);\ndrivers/net/wireless/morsemicro/mm81x/command.c:213:\t\tmemcpy(dest_resp, src_resp, length);\ndrivers/net/wireless/morsemicro/mm81x/command.c-214-\t} else {\n"
}

35/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 6262
							output: 45
							thoughts: 25
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Analyzing the Response Handling in mm81x_cmd_tx**

Okay, time to dig into `mm81x_cmd_tx`. I need to understand exactly how the `resp` variable is allocated and passed around within this function. The details of response handling are crucial, particularly in this subsystem, and a potential bug could be lurking here. I'll need to trace the allocation, any modifications or copies, and ultimately, how it's handled on return. This level of scrutiny is key to ensuring robust command transmission and reception within the driver. Let's see how they've implemented it...



36/3 2026/09/07 05:06 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/morsemicro/mm81x/command.c",
  "FirstLine": 33,
  "LineCount": 55
}

Results:
{
  "Contents": "  33:\tstatic int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp,\n  34:\t\t\t\tstruct host_cmd_req *req, u32 length, u32 timeout)\n  35:\t{\n  36:\t\tint cmd_len;\n  37:\t\tint ret = 0;\n  38:\t\tu16 host_id;\n  39:\t\tint retry = 0;\n  40:\t\tunsigned long wait_ret = 0;\n  41:\t\tstruct sk_buff *skb;\n  42:\t\tstruct mm81x_skbq *cmd_q = mm81x_hif_get_tx_cmd_queue(mors);\n  43:\t\tstruct host_cmd_resp_cb *resp_cb;\n  44:\t\tDECLARE_COMPLETION_ONSTACK(cmd_comp);\n  45:\t\n  46:\t\tBUILD_BUG_ON(sizeof(struct host_cmd_resp_cb) \u003e\n  47:\t\t\t     IEEE80211_TX_INFO_DRIVER_DATA_SIZE);\n  48:\t\n  49:\t\tcmd_len = sizeof(*req) + le16_to_cpu(req-\u003ehdr.len);\n  50:\t\treq-\u003ehdr.flags = cpu_to_le16(HOST_CMD_TYPE_REQ);\n  51:\t\n  52:\t\tmutex_lock(\u0026mors-\u003ecmd_wait);\n  53:\t\tmors-\u003ecmd_seq++;\n  54:\t\tif (mors-\u003ecmd_seq \u003e HOST_CMD_HOST_ID_SEQ_MAX)\n  55:\t\t\tmors-\u003ecmd_seq = 1;\n  56:\t\thost_id = mors-\u003ecmd_seq \u003c\u003c HOST_CMD_HOST_ID_SEQ_SHIFT;\n  57:\t\n  58:\t\tmm81x_ps_disable(mors);\n  59:\t\n  60:\t\tdo {\n  61:\t\t\treq-\u003ehdr.host_id = cpu_to_le16(host_id | retry);\n  62:\t\n  63:\t\t\tskb = mm81x_skbq_alloc_skb(cmd_q, cmd_len);\n  64:\t\t\tif (!skb) {\n  65:\t\t\t\tret = -ENOMEM;\n  66:\t\t\t\tbreak;\n  67:\t\t\t}\n  68:\t\n  69:\t\t\tmemcpy(skb-\u003edata, req, cmd_len);\n  70:\t\t\tresp_cb = (struct host_cmd_resp_cb *)IEEE80211_SKB_CB(skb)\n  71:\t\t\t\t\t  -\u003edriver_data;\n  72:\t\t\tresp_cb-\u003elength = length;\n  73:\t\t\tresp_cb-\u003edest_resp = resp;\n  74:\t\n  75:\t\t\tdev_dbg(mors-\u003edev, \"CMD 0x%04x:%04x\",\n  76:\t\t\t\tle16_to_cpu(req-\u003ehdr.message_id),\n  77:\t\t\t\tle16_to_cpu(req-\u003ehdr.host_id));\n  78:\t\n  79:\t\t\tmutex_lock(\u0026mors-\u003ecmd_lock);\n  80:\t\t\tmors-\u003ecmd_comp = \u0026cmd_comp;\n  81:\t\t\tif (retry \u003e 0)\n  82:\t\t\t\treinit_completion(\u0026cmd_comp);\n  83:\t\t\ttimeout = timeout ? timeout : HOST_CMD_DEFAULT_TIMEOUT_MS;\n  84:\t\t\tret = mm81x_skbq_skb_tx(cmd_q, \u0026skb, NULL,\n  85:\t\t\t\t\t\tMM81X_SKB_CHAN_COMMAND);\n  86:\t\t\tmutex_unlock(\u0026mors-\u003ecmd_lock);\n  87:\t\n"
}

37/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 7418
							output: 22
							thoughts: 41
						

Thoughts:
Here's my thought process, as if I were analyzing this code:

**Analyzing the `mm81x_cmd_tx` Function**

Okay, so I'm looking at how this `mm81x_cmd_tx` function is being used. The important piece here is that callers are passing a `resp` argument. That's immediately interesting; that `resp` probably holds some sort of response data or error information, and it's being *passed* in, which suggests it might be modified by the function, or might be used to retrieve data from the call. Now, I need to understand the calling contexts. A `grep` for `mm81x_cmd_tx` will quickly reveal all the places in the codebase where this function is being invoked. That'll show me the different scenarios where it's used, the data it's working with, and the roles its playing. That will inform a better understanding of the code in action.



38/3 2026/09/07 05:06 tool grepper
0m Args:
{
  "Expression": "mm81x_cmd_tx"
}

Results:
{
  "Output": "drivers/net/wireless/morsemicro/mm81x/command.c=27=struct host_cmd_resp_cb {\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-32-\ndrivers/net/wireless/morsemicro/mm81x/command.c:33:static int mm81x_cmd_tx(struct mm81x *mors, struct host_cmd_resp *resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-34-\t\t\tstruct host_cmd_req *req, u32 length, u32 timeout)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=233=int mm81x_cmd_sta_state(struct mm81x *mors, struct mm81x_vif *mors_vif, u16 aid,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-246-\ndrivers/net/wireless/morsemicro/mm81x/command.c:247:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-248-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=250=int mm81x_cmd_add_if(struct mm81x *mors, u16 *vif_id, const u8 *addr,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-271-\ndrivers/net/wireless/morsemicro/mm81x/command.c:272:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-273-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=280=int mm81x_cmd_get_capabilities(struct mm81x *mors, u16 vif_id,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-289-\ndrivers/net/wireless/morsemicro/mm81x/command.c:290:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026rsp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-291-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(rsp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=309=int mm81x_cmd_get_max_txpower(struct mm81x *mors, s32 *out_power_mbm)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-316-\ndrivers/net/wireless/morsemicro/mm81x/command.c:317:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-318-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=325=int mm81x_cmd_hw_scan(struct mm81x *mors, struct mm81x_hw_scan_params *params,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-359-\treq-\u003ehdr.len = cpu_to_le16((u16)((buf - (u8 *)req) - sizeof(req-\u003ehdr)));\ndrivers/net/wireless/morsemicro/mm81x/command.c:360:\tret = mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-361-\tkfree(req);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=366=int mm81x_cmd_set_txpower(struct mm81x *mors, s32 *out_power_mbm,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-375-\ndrivers/net/wireless/morsemicro/mm81x/command.c:376:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-377-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=384=int mm81x_cmd_set_channel(struct mm81x *mors, u32 op_chan_freq_hz,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-398-\ndrivers/net/wireless/morsemicro/mm81x/command.c:399:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-400-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=407=int mm81x_cmd_disable_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-419-\ndrivers/net/wireless/morsemicro/mm81x/command.c:420:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-421-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=423=int mm81x_cmd_install_key(struct mm81x *mors, struct mm81x_vif *mors_vif,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-446-\ndrivers/net/wireless/morsemicro/mm81x/command.c:447:\tret = mm81x_cmd_tx(mors, (struct host_cmd_resp *)\u0026resp,\ndrivers/net/wireless/morsemicro/mm81x/command.c-448-\t\t\t   (struct host_cmd_req *)\u0026req, sizeof(resp), 0);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=458=int mm81x_cmd_cfg_multicast_filter(struct mm81x *mors,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-475-\ndrivers/net/wireless/morsemicro/mm81x/command.c:476:\tret = mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-477-\tkfree(req);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=481=int mm81x_cmd_cfg_bss(struct mm81x *mors, u16 vif_id, u16 beacon_int,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-490-\ndrivers/net/wireless/morsemicro/mm81x/command.c:491:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-492-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=494=int mm81x_cmd_config_beacon_timer(struct mm81x *mors, void *mm81x_vif,\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-503-\ndrivers/net/wireless/morsemicro/mm81x/command.c:504:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-505-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=507=int mm81x_cmd_set_ps(struct mm81x *mors, bool enabled)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-513-\ndrivers/net/wireless/morsemicro/mm81x/command.c:514:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0,\ndrivers/net/wireless/morsemicro/mm81x/command.c-515-\t\t\t    HOST_CMD_POWERSAVE_TIMEOUT_MS);\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=518=int mm81x_cmd_cfg_qos(struct mm81x *mors, struct mm81x_queue_params *params)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-529-\ndrivers/net/wireless/morsemicro/mm81x/command.c:530:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-531-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=533=int mm81x_cmd_rm_if(struct mm81x *mors, u16 vif_id)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-538-\ndrivers/net/wireless/morsemicro/mm81x/command.c:539:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-540-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=542=int mm81x_cmd_set_frag_threshold(struct mm81x *mors, u32 frag_threshold)\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-550-\ndrivers/net/wireless/morsemicro/mm81x/command.c:551:\treturn mm81x_cmd_tx(mors, NULL, (struct host_cmd_req *)\u0026req, 0, 0);\ndrivers/net/wireless/morsemicro/mm81x/command.c-552-}\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c=554=int mm81x_cmd_get_disabled_channels(\n--\ndrivers/net/wireless/morsemicro/mm81x/command.c-561-\ndrivers/net/wireless/morsemicro/mm81x/command.c:562:\treturn mm81x_cmd_tx(mors, (struct host_cmd_resp *)resp, \u0026req, resp_len,\ndrivers/net/wireless/morsemicro/mm81x/command.c-563-\t\t\t    0);\n"
}

39/3 2026/09/07 05:06 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 10762
							output: 156
							thoughts: 656
						

Thoughts:
**Analyzing a Potential Out-of-Bounds Read in `mm81x_cmd_resp_process`**

Okay, let's break this down. My concern here is a potential out-of-bounds read vulnerability within the `mm81x_cmd_resp_process` function. Specifically, when a response SKB (socket buffer) comes in from the hardware/firmware, the code casts the SKB's data to a `host_cmd_resp` structure. The potential problem arises if the claimed length (`src_resp->hdr.len`) in that response structure exceeds the actual size of the SKB's data (`skb->len`). Without a check like `length = min_t(int, length, skb->len);`, the `memcpy` operation would attempt to read past the end of the SKB's allocated buffer, leading to an out-of-bounds read. This is *definitely* an out-of-bounds read bug on an SKB buffer.

Now, let's think about KMSAN (Kernel Memory Sanitizer). Does this change introduce any uninitialized memory risks? I need to be thorough.

*   **Uninitialized memory:** No, this patch actually *prevents* reading past the bounds of the SKB. It reduces the copy length to respect the buffer's size. No new uninitialized memory is introduced.
*   **User space exposure:** This is an internal command response handling path within the kernel. The copied data isn't being directly sent to user space. It is only passed between kernel command structures. No user space exposure here.
*   **Uninitialized variables:** No, the fix doesn't depend on uninitialized variables.
*   **Exposed uninitialized fields/padding:** Definitely not. This patch prevents reads of uninitialized memory, it does not create any.

Alright, let's methodically check the NeedsKMSAN criteria:

1.  **Kernel structures to user space:** Not applicable.
2.  **Conditional logic on uninitialized variables:** Not applicable.
3.  **Complex data structures with uninitialized fields:** Not applicable.
4.  **Bounds checks exposing uninitialized bytes:** Not applicable, it *prevents* out-of-bounds reads, which are a different thing.

Given all of that, this bug falls squarely within the capabilities of KASAN (Kernel Address Sanitizer). KASAN detects out-of-bounds accesses. KMSAN's purpose, detecting uninitialized memory reads, is not directly relevant here. KMSAN is focused on things like data leakage to user space, which isn't the issue. KASAN is the tool for this particular job, therefore NeedsKMSAN should be false.

Let's do a sanity check on the KMSANReasoning. I'll contrast KMSAN's and KASAN's applicability:

*   **KASAN:** Out-of-bounds memory accesses and buffer overflows. This bug is an out-of-bounds read from the SKB data.
*   **KMSAN:** Uninitialized memory reads and information leaks to user space. This patch doesn't introduce any new uninitialized memory vulnerabilities.

So, I'm confident. KASAN is the appropriate tool here. No need for KMSAN fuzzing. Let's invoke `set-results`.



40/3 2026/09/07 05:06 tool set-results
0m Args:
{
  "KMSANReasoning": "The patch fixes an out-of-bounds memory read in mm81x_cmd_resp_process() by capping the response copy length to skb-\u003elen (preventing memcpy from reading past the end of the received skb buffer if the response header length claims a larger size). This issue is a classic buffer out-of-bounds read which is directly detected by KASAN. The patch does not introduce any uninitialized memory allocations, conditional branches based on uninitialized data, or kernel-to-user info-leaks. Therefore, standard KASAN fuzzing is sufficient and dedicated KMSAN fuzzing is not warranted.",
  "NeedsKMSAN": false
}

Results:
{
  "KMSANReasoning": "The patch fixes an out-of-bounds memory read in mm81x_cmd_resp_process() by capping the response copy length to skb-\u003elen (preventing memcpy from reading past the end of the received skb buffer if the response header length claims a larger size). This issue is a classic buffer out-of-bounds read which is directly detected by KASAN. The patch does not introduce any uninitialized memory allocations, conditional branches based on uninitialized data, or kernel-to-user info-leaks. Therefore, standard KASAN fuzzing is sufficient and dedicated KMSAN fuzzing is not warranted.",
  "NeedsKMSAN": false
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)