| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/10/23 22:36 | flow | patch-triage |
1mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The changes in this patch series exclusively modify internal RX DMA buffer unmapping helpers within the Qualcomm Wi-Fi 7 (ath12k) driver. ath12k requires physical Qualcomm PCIe or AHB hardware (such as WCN7850 or QCN9274) which is not emulated in standard QEMU/GCE virtualized fuzzing environments, making the modified code structurally unreachable.",
"WorthFuzzing": false
} |
| 1/1 | 2026/10/23 22:36 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 6e4bffeb6cafa4e576fd2808bad54b1d07ba2eb4\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Fri Oct 23 22:36:29 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c\nindex f9b37d75956d3..bca719b302819 100644\n--- a/drivers/net/wireless/ath/ath12k/dp.c\n+++ b/drivers/net/wireless/ath/ath12k/dp.c\n@@ -5,6 +5,7 @@\n */\n \n #include \"core.h\"\n+#include \"dp_rx.h\"\n #include \"dp_tx.h\"\n #include \"hif.h\"\n #include \"hal.h\"\n@@ -998,10 +999,7 @@ static void ath12k_dp_cc_cleanup(struct ath12k_base *ab)\n \t\t\t\tif (!skb)\n \t\t\t\t\tcontinue;\n \n-\t\t\t\tdma_unmap_single(ab-\u003edev,\n-\t\t\t\t\t\t ATH12K_SKB_RXCB(skb)-\u003epaddr,\n-\t\t\t\t\t\t skb-\u003elen + skb_tailroom(skb),\n-\t\t\t\t\t\t DMA_FROM_DEVICE);\n+\t\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\n \t\t\t\tdev_kfree_skb_any(skb);\n \t\t\t}\n \ndiff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c\nindex 7d5be77b081f8..8fca50b0f2360 100644\n--- a/drivers/net/wireless/ath/ath12k/dp_mon.c\n+++ b/drivers/net/wireless/ath/ath12k/dp_mon.c\n@@ -5,6 +5,7 @@\n */\n \n #include \"dp_mon.h\"\n+#include \"dp_rx.h\"\n #include \"debug.h\"\n #include \"dp_tx.h\"\n #include \"peer.h\"\n@@ -561,9 +562,7 @@ ath12k_dp_mon_parse_status_buf(struct ath12k_pdev_dp *dp_pdev,\n \t\treturn 0;\n \t}\n \n-\tdma_unmap_single(ab-\u003edev, ATH12K_SKB_RXCB(msdu)-\u003epaddr,\n-\t\t\t msdu-\u003elen + skb_tailroom(msdu),\n-\t\t\t DMA_FROM_DEVICE);\n+\tath12k_dp_unmap_rx_buf(dp, msdu);\n \n \toffset = packet_info-\u003edma_length + ATH12K_MON_RX_DOT11_OFFSET;\n \tif (ath12k_dp_pkt_set_pktlen(msdu, offset)) {\ndiff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c\nindex 8fa0e90b45316..ac489d9bfb559 100644\n--- a/drivers/net/wireless/ath/ath12k/dp_rx.c\n+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c\n@@ -185,8 +185,7 @@ static int ath12k_dp_rxdma_mon_buf_ring_free(struct ath12k_base *ab,\n \t\t/* TODO: Understand where internal driver does this dma_unmap\n \t\t * of rxdma_buffer.\n \t\t */\n-\t\tdma_unmap_single(ab-\u003edev, ATH12K_SKB_RXCB(skb)-\u003epaddr,\n-\t\t\t\t skb-\u003elen + skb_tailroom(skb), DMA_FROM_DEVICE);\n+\t\tath12k_dp_unmap_rx_buf(ath12k_ab_to_dp(ab), skb);\n \t\tdev_kfree_skb_any(skb);\n \t}\n \ndiff --git a/drivers/net/wireless/ath/ath12k/dp_rx.h b/drivers/net/wireless/ath/ath12k/dp_rx.h\nindex 0660db070e921..f6eda3a0f45bb 100644\n--- a/drivers/net/wireless/ath/ath12k/dp_rx.h\n+++ b/drivers/net/wireless/ath/ath12k/dp_rx.h\n@@ -187,6 +187,17 @@ void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,\n \thal-\u003eops-\u003eextract_rx_desc_data(rx_info, rx_desc, ldesc);\n }\n \n+static inline void ath12k_dp_unmap_rx_buf(struct ath12k_dp *dp,\n+\t\t\t\t\t struct sk_buff *skb)\n+{\n+\tstruct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(skb);\n+\tenum dma_data_direction dir;\n+\n+\tdir = rxcb-\u003eis_frag ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;\n+\tdma_unmap_single(dp-\u003edev, rxcb-\u003epaddr, skb-\u003elen + skb_tailroom(skb),\n+\t\t\t dir);\n+}\n+\n void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\n \t\t\t enum hal_encrypt_type enctype,\n \t\t\t bool decrypted,\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c\nindex 016b0c38e51e2..1e0e089bc1b4d 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c\n@@ -2721,10 +2721,7 @@ ath12k_wifi7_dp_rx_mon_mpdu_pop(struct ath12k *ar, int mac_id,\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tif (!rxcb-\u003eunmapped) {\n-\t\t\t\tdma_unmap_single(ar-\u003eab-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t\t\t msdu-\u003elen +\n-\t\t\t\t\t\t skb_tailroom(msdu),\n-\t\t\t\t\t\t DMA_FROM_DEVICE);\n+\t\t\t\tath12k_dp_unmap_rx_buf(dp, msdu);\n \t\t\t\trxcb-\u003eunmapped = 1;\n \t\t\t}\n \t\t\tif (drop_mpdu) {\n@@ -3137,9 +3134,7 @@ ath12k_wifi7_dp_rx_reap_mon_status_ring(struct ath12k_base *ab, int mac_id,\n \t\t\t\tidr_remove(\u0026rx_ring-\u003ebufs_idr, buf_id);\n \t\t\t\tspin_unlock_bh(\u0026rx_ring-\u003eidr_lock);\n \n-\t\t\t\tdma_unmap_single(ab-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t\t\t skb-\u003elen + skb_tailroom(skb),\n-\t\t\t\t\t\t DMA_FROM_DEVICE);\n+\t\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\n \n \t\t\t\tdev_kfree_skb_any(skb);\n \t\t\t\tpmon-\u003ebuf_state = DP_MON_STATUS_REPLINISH;\n@@ -3150,9 +3145,7 @@ ath12k_wifi7_dp_rx_reap_mon_status_ring(struct ath12k_base *ab, int mac_id,\n \t\t\tidr_remove(\u0026rx_ring-\u003ebufs_idr, buf_id);\n \t\t\tspin_unlock_bh(\u0026rx_ring-\u003eidr_lock);\n \n-\t\t\tdma_unmap_single(ab-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t\t skb-\u003elen + skb_tailroom(skb),\n-\t\t\t\t\t DMA_FROM_DEVICE);\n+\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\n \n \t\t\tif (ath12k_dp_pkt_set_pktlen(skb, RX_MON_STATUS_BUF_SIZE)) {\n \t\t\t\tdev_kfree_skb_any(skb);\n@@ -3289,9 +3282,7 @@ ath12k_wifi7_dp_mon_srng_process(struct ath12k_pdev_dp *pdev_dp, int *budget,\n \t\t}\n \n \t\trxcb = ATH12K_SKB_RXCB(skb);\n-\t\tdma_unmap_single(ab-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t skb-\u003elen + skb_tailroom(skb),\n-\t\t\t\t DMA_FROM_DEVICE);\n+\t\tath12k_dp_unmap_rx_buf(dp, skb);\n \n \t\tend_reason = u32_get_bits(info0, HAL_MON_DEST_INFO0_END_REASON);\n \ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\nindex 95d87dd67872f..7fcf31aadf492 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\n@@ -729,11 +729,7 @@ int ath12k_wifi7_dp_rx_process(struct ath12k_dp *dp, int ring_id,\n \n \t\tlist_add_tail(\u0026desc_info-\u003elist, \u0026rx_desc_used_list[device_id]);\n \n-\t\trxcb = ATH12K_SKB_RXCB(msdu);\n-\t\tdma_unmap_single(partner_dp-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t msdu-\u003elen + skb_tailroom(msdu),\n-\t\t\t\t DMA_FROM_DEVICE);\n-\n+\t\tath12k_dp_unmap_rx_buf(partner_dp, msdu);\n \t\tnum_buffs_reaped[device_id]++;\n \t\tdp-\u003edevice_stats.reo_rx[ring_id][dp-\u003edevice_id]++;\n \n@@ -749,6 +745,7 @@ int ath12k_wifi7_dp_rx_process(struct ath12k_dp *dp, int ring_id,\n \t\tmsdu_info = \u0026desc-\u003erx_msdu_info;\n \t\tmpdu_info = \u0026desc-\u003erx_mpdu_info;\n \n+\t\trxcb = ATH12K_SKB_RXCB(msdu);\n \t\trxcb-\u003eis_first_msdu = !!(le32_to_cpu(msdu_info-\u003einfo0) \u0026\n \t\t\t\t\t RX_MSDU_DESC_INFO0_FIRST_MSDU_IN_MPDU);\n \t\trxcb-\u003eis_last_msdu = !!(le32_to_cpu(msdu_info-\u003einfo0) \u0026\n@@ -894,7 +891,7 @@ static int ath12k_wifi7_dp_rx_h_defrag_reo_reinject(struct ath12k_dp *dp,\n \n \tbuf_paddr = dma_map_single(dp-\u003edev, defrag_skb-\u003edata,\n \t\t\t\t defrag_skb-\u003elen + skb_tailroom(defrag_skb),\n-\t\t\t\t DMA_TO_DEVICE);\n+\t\t\t\t DMA_BIDIRECTIONAL);\n \tif (dma_mapping_error(dp-\u003edev, buf_paddr))\n \t\treturn -ENOMEM;\n \n@@ -983,8 +980,8 @@ static int ath12k_wifi7_dp_rx_h_defrag_reo_reinject(struct ath12k_dp *dp,\n \tlist_add_tail(\u0026desc_info-\u003elist, \u0026dp-\u003erx_desc_free_list);\n \tspin_unlock_bh(\u0026dp-\u003erx_desc_lock);\n err_unmap_dma:\n-\tdma_unmap_single(dp-\u003edev, buf_paddr, defrag_skb-\u003elen + skb_tailroom(defrag_skb),\n-\t\t\t DMA_TO_DEVICE);\n+\tath12k_dp_unmap_rx_buf(dp, defrag_skb);\n+\n \treturn ret;\n }\n \n@@ -1286,7 +1283,6 @@ ath12k_wifi7_dp_process_rx_err_buf(struct ath12k_pdev_dp *dp_pdev,\n \tstruct ath12k_dp *dp = dp_pdev-\u003edp;\n \tstruct ath12k_hal *hal = dp-\u003ehal;\n \tstruct sk_buff *msdu;\n-\tstruct ath12k_skb_rxcb *rxcb;\n \tstruct hal_rx_desc_data rx_info;\n \tstruct hal_rx_desc *rx_desc;\n \tu16 msdu_len;\n@@ -1316,11 +1312,7 @@ ath12k_wifi7_dp_process_rx_err_buf(struct ath12k_pdev_dp *dp_pdev,\n \tdesc_info-\u003eskb = NULL;\n \n \tlist_add_tail(\u0026desc_info-\u003elist, used_list);\n-\n-\trxcb = ATH12K_SKB_RXCB(msdu);\n-\tdma_unmap_single(dp-\u003edev, rxcb-\u003epaddr,\n-\t\t\t msdu-\u003elen + skb_tailroom(msdu),\n-\t\t\t DMA_FROM_DEVICE);\n+\tath12k_dp_unmap_rx_buf(dp, msdu);\n \n \tif (drop) {\n \t\tdev_kfree_skb_any(msdu);\n@@ -1367,7 +1359,6 @@ static int ath12k_dp_h_msdu_buffer_type(struct ath12k_dp *dp,\n \t\t\t\t\tstruct hal_reo_dest_ring *desc)\n {\n \tstruct ath12k_rx_desc_info *desc_info;\n-\tstruct ath12k_skb_rxcb *rxcb;\n \tstruct sk_buff *msdu;\n \tu64 desc_va;\n \n@@ -1398,9 +1389,7 @@ static int ath12k_dp_h_msdu_buffer_type(struct ath12k_dp *dp,\n \tmsdu = desc_info-\u003eskb;\n \tdesc_info-\u003eskb = NULL;\n \tlist_add_tail(\u0026desc_info-\u003elist, list);\n-\trxcb = ATH12K_SKB_RXCB(msdu);\n-\tdma_unmap_single(dp-\u003edev, rxcb-\u003epaddr, msdu-\u003elen + skb_tailroom(msdu),\n-\t\t\t DMA_FROM_DEVICE);\n+\tath12k_dp_unmap_rx_buf(dp, msdu);\n \tdev_kfree_skb_any(msdu);\n \n \treturn 0;\n@@ -1971,12 +1960,7 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,\n \t\t}\n \n \t\tlist_add_tail(\u0026desc_info-\u003elist, \u0026rx_desc_used_list[device_id]);\n-\n-\t\trxcb = ATH12K_SKB_RXCB(msdu);\n-\t\tdma_unmap_single(partner_dp-\u003edev, rxcb-\u003epaddr,\n-\t\t\t\t msdu-\u003elen + skb_tailroom(msdu),\n-\t\t\t\t DMA_FROM_DEVICE);\n-\n+\t\tath12k_dp_unmap_rx_buf(partner_dp, msdu);\n \t\tnum_buffs_reaped[device_id]++;\n \t\ttotal_num_buffs_reaped++;\n \n@@ -1990,6 +1974,7 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,\n \t\t}\n \n \t\tmsdu_data = (struct hal_rx_desc *)msdu-\u003edata;\n+\t\trxcb = ATH12K_SKB_RXCB(msdu);\n \t\trxcb-\u003eerr_rel_src = err_info.err_rel_src;\n \t\trxcb-\u003eerr_code = err_info.err_code;\n \t\trxcb-\u003eis_first_msdu = err_info.first_msdu;\n"
} |
| 2/1 | 2026/10/23 22:36 | agent | patch-evaluator |
1mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The changes in this patch series exclusively modify internal RX DMA buffer unmapping helpers within the Qualcomm Wi-Fi 7 (ath12k) driver. ath12k requires physical Qualcomm PCIe or AHB hardware (such as WCN7850 or QCN9274) which is not emulated in standard QEMU/GCE virtualized fuzzing environments, making the modified code structurally unreachable.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.
IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.
================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.
- REACHABILITY IS THE PRIMARY GATE:
Fuzzing can only discover bugs in code that can actually execute in standard virtualized
environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
regardless of whether it adds assertions or complex logic.
- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
Patch authors routinely label changes as "cleanups", "refactorings", or state
"No functional change intended". Do NOT take these claims at face value.
Code refactorings that rearrange logic, introduce helper functions, or alter state management
in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
If reachable executable code is modified or refactored, it MUST be fuzzed.
- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
Even if the author believes the invariant always holds, fuzzing is essential to verify whether
an unusual sequence of operations can violate it.
================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:
- Non-kernel and non-executable changes:
* Modifications to Documentation/, comments, or spelling fixes.
* User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
that do not affect the compiled kernel image (vmlinux) or kernel modules.
* Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
that do not alter control flow or data structures.
* Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
* Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
* Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
physical PCI hot-unplug or manual sysfs driver unbinding.
* Code paths exclusive to architectures other than the target architecture.
================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
* Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
* Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
* Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
* Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).
================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:
- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
Do NOT list generic, ubiquitous functions called by almost every program in the corpus
(including, but not limited to: general memory allocators and deallocators, page fault
and trap handlers, or core synchronization primitives; this is not an exhaustive list).
Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
which severely dilutes fuzzing effort away from the actual changes.
- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
List functions that specifically implement the logic being added or altered, or direct API entrypoints
for the subsystem feature under review.
- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).
================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.
Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.
Prompt: Target architecture: amd64
For your convenience, here is the diff of the changes:
commit 6e4bffeb6cafa4e576fd2808bad54b1d07ba2eb4
Author: syz-cluster <triage@syzkaller.com>
Date: Fri Oct 23 22:36:29 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c
index f9b37d75956d3..bca719b302819 100644
--- a/drivers/net/wireless/ath/ath12k/dp.c
+++ b/drivers/net/wireless/ath/ath12k/dp.c
@@ -5,6 +5,7 @@
*/
#include "core.h"
+#include "dp_rx.h"
#include "dp_tx.h"
#include "hif.h"
#include "hal.h"
@@ -998,10 +999,7 @@ static void ath12k_dp_cc_cleanup(struct ath12k_base *ab)
if (!skb)
continue;
- dma_unmap_single(ab->dev,
- ATH12K_SKB_RXCB(skb)->paddr,
- skb->len + skb_tailroom(skb),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, skb);
dev_kfree_skb_any(skb);
}
diff --git a/drivers/net/wireless/ath/ath12k/dp_mon.c b/drivers/net/wireless/ath/ath12k/dp_mon.c
index 7d5be77b081f8..8fca50b0f2360 100644
--- a/drivers/net/wireless/ath/ath12k/dp_mon.c
+++ b/drivers/net/wireless/ath/ath12k/dp_mon.c
@@ -5,6 +5,7 @@
*/
#include "dp_mon.h"
+#include "dp_rx.h"
#include "debug.h"
#include "dp_tx.h"
#include "peer.h"
@@ -561,9 +562,7 @@ ath12k_dp_mon_parse_status_buf(struct ath12k_pdev_dp *dp_pdev,
return 0;
}
- dma_unmap_single(ab->dev, ATH12K_SKB_RXCB(msdu)->paddr,
- msdu->len + skb_tailroom(msdu),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, msdu);
offset = packet_info->dma_length + ATH12K_MON_RX_DOT11_OFFSET;
if (ath12k_dp_pkt_set_pktlen(msdu, offset)) {
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index 8fa0e90b45316..ac489d9bfb559 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -185,8 +185,7 @@ static int ath12k_dp_rxdma_mon_buf_ring_free(struct ath12k_base *ab,
/* TODO: Understand where internal driver does this dma_unmap
* of rxdma_buffer.
*/
- dma_unmap_single(ab->dev, ATH12K_SKB_RXCB(skb)->paddr,
- skb->len + skb_tailroom(skb), DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(ath12k_ab_to_dp(ab), skb);
dev_kfree_skb_any(skb);
}
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.h b/drivers/net/wireless/ath/ath12k/dp_rx.h
index 0660db070e921..f6eda3a0f45bb 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.h
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.h
@@ -187,6 +187,17 @@ void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,
hal->ops->extract_rx_desc_data(rx_info, rx_desc, ldesc);
}
+static inline void ath12k_dp_unmap_rx_buf(struct ath12k_dp *dp,
+ struct sk_buff *skb)
+{
+ struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(skb);
+ enum dma_data_direction dir;
+
+ dir = rxcb->is_frag ? DMA_BIDIRECTIONAL : DMA_FROM_DEVICE;
+ dma_unmap_single(dp->dev, rxcb->paddr, skb->len + skb_tailroom(skb),
+ dir);
+}
+
void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,
enum hal_encrypt_type enctype,
bool decrypted,
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c
index 016b0c38e51e2..1e0e089bc1b4d 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_mon.c
@@ -2721,10 +2721,7 @@ ath12k_wifi7_dp_rx_mon_mpdu_pop(struct ath12k *ar, int mac_id,
continue;
}
if (!rxcb->unmapped) {
- dma_unmap_single(ar->ab->dev, rxcb->paddr,
- msdu->len +
- skb_tailroom(msdu),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, msdu);
rxcb->unmapped = 1;
}
if (drop_mpdu) {
@@ -3137,9 +3134,7 @@ ath12k_wifi7_dp_rx_reap_mon_status_ring(struct ath12k_base *ab, int mac_id,
idr_remove(&rx_ring->bufs_idr, buf_id);
spin_unlock_bh(&rx_ring->idr_lock);
- dma_unmap_single(ab->dev, rxcb->paddr,
- skb->len + skb_tailroom(skb),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, skb);
dev_kfree_skb_any(skb);
pmon->buf_state = DP_MON_STATUS_REPLINISH;
@@ -3150,9 +3145,7 @@ ath12k_wifi7_dp_rx_reap_mon_status_ring(struct ath12k_base *ab, int mac_id,
idr_remove(&rx_ring->bufs_idr, buf_id);
spin_unlock_bh(&rx_ring->idr_lock);
- dma_unmap_single(ab->dev, rxcb->paddr,
- skb->len + skb_tailroom(skb),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, skb);
if (ath12k_dp_pkt_set_pktlen(skb, RX_MON_STATUS_BUF_SIZE)) {
dev_kfree_skb_any(skb);
@@ -3289,9 +3282,7 @@ ath12k_wifi7_dp_mon_srng_process(struct ath12k_pdev_dp *pdev_dp, int *budget,
}
rxcb = ATH12K_SKB_RXCB(skb);
- dma_unmap_single(ab->dev, rxcb->paddr,
- skb->len + skb_tailroom(skb),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, skb);
end_reason = u32_get_bits(info0, HAL_MON_DEST_INFO0_END_REASON);
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
index 95d87dd67872f..7fcf31aadf492 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
@@ -729,11 +729,7 @@ int ath12k_wifi7_dp_rx_process(struct ath12k_dp *dp, int ring_id,
list_add_tail(&desc_info->list, &rx_desc_used_list[device_id]);
- rxcb = ATH12K_SKB_RXCB(msdu);
- dma_unmap_single(partner_dp->dev, rxcb->paddr,
- msdu->len + skb_tailroom(msdu),
- DMA_FROM_DEVICE);
-
+ ath12k_dp_unmap_rx_buf(partner_dp, msdu);
num_buffs_reaped[device_id]++;
dp->device_stats.reo_rx[ring_id][dp->device_id]++;
@@ -749,6 +745,7 @@ int ath12k_wifi7_dp_rx_process(struct ath12k_dp *dp, int ring_id,
msdu_info = &desc->rx_msdu_info;
mpdu_info = &desc->rx_mpdu_info;
+ rxcb = ATH12K_SKB_RXCB(msdu);
rxcb->is_first_msdu = !!(le32_to_cpu(msdu_info->info0) &
RX_MSDU_DESC_INFO0_FIRST_MSDU_IN_MPDU);
rxcb->is_last_msdu = !!(le32_to_cpu(msdu_info->info0) &
@@ -894,7 +891,7 @@ static int ath12k_wifi7_dp_rx_h_defrag_reo_reinject(struct ath12k_dp *dp,
buf_paddr = dma_map_single(dp->dev, defrag_skb->data,
defrag_skb->len + skb_tailroom(defrag_skb),
- DMA_TO_DEVICE);
+ DMA_BIDIRECTIONAL);
if (dma_mapping_error(dp->dev, buf_paddr))
return -ENOMEM;
@@ -983,8 +980,8 @@ static int ath12k_wifi7_dp_rx_h_defrag_reo_reinject(struct ath12k_dp *dp,
list_add_tail(&desc_info->list, &dp->rx_desc_free_list);
spin_unlock_bh(&dp->rx_desc_lock);
err_unmap_dma:
- dma_unmap_single(dp->dev, buf_paddr, defrag_skb->len + skb_tailroom(defrag_skb),
- DMA_TO_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, defrag_skb);
+
return ret;
}
@@ -1286,7 +1283,6 @@ ath12k_wifi7_dp_process_rx_err_buf(struct ath12k_pdev_dp *dp_pdev,
struct ath12k_dp *dp = dp_pdev->dp;
struct ath12k_hal *hal = dp->hal;
struct sk_buff *msdu;
- struct ath12k_skb_rxcb *rxcb;
struct hal_rx_desc_data rx_info;
struct hal_rx_desc *rx_desc;
u16 msdu_len;
@@ -1316,11 +1312,7 @@ ath12k_wifi7_dp_process_rx_err_buf(struct ath12k_pdev_dp *dp_pdev,
desc_info->skb = NULL;
list_add_tail(&desc_info->list, used_list);
-
- rxcb = ATH12K_SKB_RXCB(msdu);
- dma_unmap_single(dp->dev, rxcb->paddr,
- msdu->len + skb_tailroom(msdu),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, msdu);
if (drop) {
dev_kfree_skb_any(msdu);
@@ -1367,7 +1359,6 @@ static int ath12k_dp_h_msdu_buffer_type(struct ath12k_dp *dp,
struct hal_reo_dest_ring *desc)
{
struct ath12k_rx_desc_info *desc_info;
- struct ath12k_skb_rxcb *rxcb;
struct sk_buff *msdu;
u64 desc_va;
@@ -1398,9 +1389,7 @@ static int ath12k_dp_h_msdu_buffer_type(struct ath12k_dp *dp,
msdu = desc_info->skb;
desc_info->skb = NULL;
list_add_tail(&desc_info->list, list);
- rxcb = ATH12K_SKB_RXCB(msdu);
- dma_unmap_single(dp->dev, rxcb->paddr, msdu->len + skb_tailroom(msdu),
- DMA_FROM_DEVICE);
+ ath12k_dp_unmap_rx_buf(dp, msdu);
dev_kfree_skb_any(msdu);
return 0;
@@ -1971,12 +1960,7 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,
}
list_add_tail(&desc_info->list, &rx_desc_used_list[device_id]);
-
- rxcb = ATH12K_SKB_RXCB(msdu);
- dma_unmap_single(partner_dp->dev, rxcb->paddr,
- msdu->len + skb_tailroom(msdu),
- DMA_FROM_DEVICE);
-
+ ath12k_dp_unmap_rx_buf(partner_dp, msdu);
num_buffs_reaped[device_id]++;
total_num_buffs_reaped++;
@@ -1990,6 +1974,7 @@ int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,
}
msdu_data = (struct hal_rx_desc *)msdu->data;
+ rxcb = ATH12K_SKB_RXCB(msdu);
rxcb->err_rel_src = err_info.err_rel_src;
rxcb->err_code = err_info.err_code;
rxcb->is_first_msdu = err_info.first_msdu;
|
| 3/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 7091 output: 46 thoughts: 279 Thoughts: **Analyzing a Linux Kernel Patch for ath12k** Alright, let's take a look at this patch. My immediate interest is to get a handle on the changes. Okay, the diff is touching files specifically within the `drivers/net/wireless/ath/ath12k/` directory. That narrows things down – we're dealing with the Qualcomm Wi-Fi 7/802.11be driver, the `ath12k`. Knowing this is Qualcomm-specific is a good starting point for my understanding. Now, before diving into the code itself, I need to understand the deployment context. Can I easily get an ath12k device provisioned in a standard virtualized environment like Google Compute Engine (GCE) or through QEMU? This dictates how easily I can test this patch. I'll need to figure out what type of bus interface this driver is using – is it PCI, AHB, USB, or perhaps something virtual? That'll directly impact my testing plan. I'll search the codebase to identify how ath12k devices attach. This information will inform whether I need a specific hardware setup or whether I can simulate this within my usual testing environment. Understanding the bus type also gives me an initial sense of the architectural context of the changes and how they fit into the larger system. |
| 4/2 | 2026/10/23 22:36 | tool | grepper |
0mArgs:{
"Expression": "module_pci_driver|pci_register_driver",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/pci.c=1804=static const struct dev_pm_ops __maybe_unused ath12k_pci_pm_ops = {\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1810-\ndrivers/net/wireless/ath/ath12k/pci.c:1811:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.c-1812-\t\t\t struct ath12k_pci_driver *driver)\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1837-\ndrivers/net/wireless/ath/ath12k/pci.c:1838:\treturn pci_register_driver(pci_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1839-}\ndrivers/net/wireless/ath/ath12k/pci.c:1840:EXPORT_SYMBOL(ath12k_pci_register_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1841-\n--\ndrivers/net/wireless/ath/ath12k/pci.h=176=void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);\ndrivers/net/wireless/ath/ath12k/pci.h:177:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.h-178-\t\t\t struct ath12k_pci_driver *driver);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=197=int ath12k_wifi7_pci_init(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-200-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:201:\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-202-\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\n"
} |
| 5/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 8333 output: 42 thoughts: 21 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience: **Investigating ath12k Bus Interface Options** Alright, let's dig into the specifics of what the ath12k driver is capable of. My immediate focus is on the underlying bus architecture. I need to clarify whether we're dealing with a PCI-Express (PCIe) implementation or an AHB (Advanced High-performance Bus) interface. This is crucial for understanding performance bottlenecks, power considerations, and integration complexities. The bus choice drastically impacts things like DMA capabilities, interrupt latency, and the overall system design. Getting this base-level detail ironed out is the foundation for any further investigation of its features. |
| 6/2 | 2026/10/23 22:36 | tool | grepper |
0mArgs:{
"Expression": "ath12k_.*register_driver",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/ahb.c=1299=static void ath12k_ahb_remove(struct platform_device *pdev)\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1314-\ndrivers/net/wireless/ath/ath12k/ahb.c:1315:int ath12k_ahb_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/ahb.c-1316-\t\t\t struct ath12k_ahb_driver *driver)\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1341-}\ndrivers/net/wireless/ath/ath12k/ahb.c:1342:EXPORT_SYMBOL(ath12k_ahb_register_driver);\ndrivers/net/wireless/ath/ath12k/ahb.c-1343-\ndrivers/net/wireless/ath/ath12k/ahb.c:1344:void ath12k_ahb_unregister_driver(const enum ath12k_device_family device_id)\ndrivers/net/wireless/ath/ath12k/ahb.c-1345-{\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-1357-}\ndrivers/net/wireless/ath/ath12k/ahb.c:1358:EXPORT_SYMBOL(ath12k_ahb_unregister_driver);\n--\ndrivers/net/wireless/ath/ath12k/ahb.h=107=static inline struct ath12k_ahb *ath12k_ab_to_ahb(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/ahb.h-111-\ndrivers/net/wireless/ath/ath12k/ahb.h:112:int ath12k_ahb_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/ahb.h-113-\t\t\t struct ath12k_ahb_driver *driver);\ndrivers/net/wireless/ath/ath12k/ahb.h:114:void ath12k_ahb_unregister_driver(const enum ath12k_device_family device_id);\ndrivers/net/wireless/ath/ath12k/ahb.h-115-\n--\ndrivers/net/wireless/ath/ath12k/pci.c=1804=static const struct dev_pm_ops __maybe_unused ath12k_pci_pm_ops = {\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1810-\ndrivers/net/wireless/ath/ath12k/pci.c:1811:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.c-1812-\t\t\t struct ath12k_pci_driver *driver)\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1839-}\ndrivers/net/wireless/ath/ath12k/pci.c:1840:EXPORT_SYMBOL(ath12k_pci_register_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1841-\ndrivers/net/wireless/ath/ath12k/pci.c:1842:void ath12k_pci_unregister_driver(const enum ath12k_device_family device_id)\ndrivers/net/wireless/ath/ath12k/pci.c-1843-{\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1850-}\ndrivers/net/wireless/ath/ath12k/pci.c:1851:EXPORT_SYMBOL(ath12k_pci_unregister_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1852-\n--\ndrivers/net/wireless/ath/ath12k/pci.h=176=void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);\ndrivers/net/wireless/ath/ath12k/pci.h:177:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.h-178-\t\t\t struct ath12k_pci_driver *driver);\ndrivers/net/wireless/ath/ath12k/pci.h:179:void ath12k_pci_unregister_driver(const enum ath12k_device_family device_id);\ndrivers/net/wireless/ath/ath12k/pci.h-180-#endif /* ATH12K_PCI_H */\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c=81=int ath12k_wifi7_ahb_init(void)\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-82-{\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c:83:\treturn ath12k_ahb_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-84-\t\t\t\t\t \u0026ath12k_wifi7_ahb_driver);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c=87=void ath12k_wifi7_ahb_exit(void)\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-88-{\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c:89:\tath12k_ahb_unregister_driver(ATH12K_DEVICE_FAMILY_WIFI7);\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-90-}\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=197=int ath12k_wifi7_pci_init(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-200-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:201:\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-202-\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=212=void ath12k_wifi7_pci_exit(void)\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-213-{\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:214:\tath12k_pci_unregister_driver(ATH12K_DEVICE_FAMILY_WIFI7);\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-215-}\n"
} |
| 7/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 10459 output: 41 thoughts: 55 Thoughts: Okay, here's my take on those thoughts, framed as my own: **Investigating ath12k Driver Capabilities** Right, so I'm trying to get a handle on the ath12k driver. I recall that, at least historically, ath12k has been pretty tied to PCI and the AHB platform device. It's often the case that these newer, more sophisticated wireless drivers are primarily focused on the hardware they were originally designed for. But, I need to confirm something: does ath12k have *any* support whatsoever for USB or any kind of virtual or emulated interfaces? It seems unlikely given its history, but it's worth double-checking before I make any assumptions. The best way to confirm this quickly is to dive right into the Kconfig file for the ath12k driver. Specifically, I'll go straight to `drivers/net/wireless/ath/ath12k/Kconfig`. That should give me a solid overview of all the configuration options and features baked into that driver. From there, I can determine, definitively, if there is a compile-time option to enable support for those other bus types or virtual devices. |
| 8/2 | 2026/10/23 22:36 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath12k/Kconfig",
"FirstLine": 1,
"LineCount": 80
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: BSD-3-Clause-Clear\n 2:\tconfig ATH12K\n 3:\t\ttristate \"Qualcomm Wi-Fi 7 support (ath12k)\"\n 4:\t\tdepends on MAC80211 \u0026\u0026 HAS_DMA \u0026\u0026 PCI\n 5:\t\tselect QCOM_QMI_HELPERS\n 6:\t\tselect MHI_BUS\n 7:\t\tselect QRTR\n 8:\t\tselect QRTR_MHI\n 9:\t\tselect PCI_PWRCTRL_PWRSEQ if HAVE_PWRCTRL\n 10:\t\thelp\n 11:\t\t Enable support for Qualcomm Technologies Wi-Fi 7 (IEEE\n 12:\t\t 802.11be) family of chipsets, for example WCN7850 and\n 13:\t\t QCN9274.\n 14:\t\n 15:\t\t If you choose to build a module, it'll be called ath12k.\n 16:\t\n 17:\tconfig ATH12K_AHB\n 18:\t\tbool \"Qualcomm ath12k AHB support\"\n 19:\t\tdepends on ATH12K \u0026\u0026 REMOTEPROC\n 20:\t\tselect QCOM_MDT_LOADER\n 21:\t\tselect QCOM_PAS\n 22:\t\thelp\n 23:\t\t Enable support for Ath12k AHB bus chipsets, example IPQ5332.\n 24:\t\n 25:\tconfig ATH12K_DEBUG\n 26:\t\tbool \"ath12k debugging\"\n 27:\t\tdepends on ATH12K\n 28:\t\thelp\n 29:\t\t Enable debug support, for example debug messages which must\n 30:\t\t be enabled separately using the debug_mask module parameter.\n 31:\t\n 32:\t\t If unsure, say Y to make it easier to debug problems. But if\n 33:\t\t you want optimal performance choose N.\n 34:\t\n 35:\tconfig ATH12K_DEBUGFS\n 36:\t\tbool \"Qualcomm ath12k debugfs support\"\n 37:\t\tdepends on ATH12K \u0026\u0026 MAC80211_DEBUGFS\n 38:\t\thelp\n 39:\t\t Enable ath12k debugfs support\n 40:\t\n 41:\t\t If unsure, say Y to make it easier to debug problems. But if\n 42:\t\t you want optimal performance choose N.\n 43:\t\n 44:\tconfig ATH12K_TRACING\n 45:\t\tbool \"ath12k tracing support\"\n 46:\t\tdepends on ATH12K \u0026\u0026 EVENT_TRACING\n 47:\t\thelp\n 48:\t\t Enable ath12k tracing infrastructure.\n 49:\t\n 50:\t\t If unsure, say Y to make it easier to debug problems. But if\n 51:\t\t you want optimal performance choose N.\n 52:\t\n 53:\tconfig ATH12K_COREDUMP\n 54:\t\tbool \"ath12k coredump\"\n 55:\t\tdepends on ATH12K\n 56:\t\tselect WANT_DEV_COREDUMP\n 57:\t\thelp\n 58:\t\t Enable ath12k coredump collection\n 59:\t\n 60:\t\t If unsure, say Y to make it easier to debug problems. But if\n 61:\t\t dump collection not required choose N.\n"
} |
| 9/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 11658 output: 40 thoughts: 300 Thoughts: **My Analysis of the Unreachable Hardware Problem** Okay, let's dive into Section 2 of this prompt. It's about "Structurally unreachable hardware," specifically vendor-specific PCIe switches, SmartNICs, GPU drivers – the usual suspects. I see they list things like mlxsw, pds_core, qed, ionic, and amdgpu, which all make sense as requiring physical ASICs or PCIe cards not emulated in standard QEMU. But wait a minute… what about wireless NICs? That’s where things get interesting. I'm thinking about the distinction between mac80211 and vendor-specific drivers. The crucial question is, can standard QEMU handle emulation of something like a Qualcomm WCN7850 or QCN9274, or even an IPQ5332? Probably not. QEMU is notoriously bad at these more specialized hardware targets. Specifically, QEMU won't emulate those Qualcomm ath12k PCI cards or the IPQ5332 platform. Okay, then can mac80211 itself be fuzzed? Well, mac80211 does have mac80211_hwsim, a software-simulated mac80211, which could be a starting point. But does that apply to ath12k? No, that won't work. ath12k is a specific driver designed for Qualcomm's Wi-Fi 7 hardware, whether it’s PCI or AHB-based. So, ath12k uses the hardware. So, the real question is, can ath12k even be loaded or probed without the hardware? Is there some virtual bus or mock device I can leverage? I need to search for some evidence of virtio or another emulated device within the ath12k code itself. That’s the next logical step. |
| 10/2 | 2026/10/23 22:36 | tool | grepper |
0mArgs:{
"Expression": "virtio|hwsim|dummy",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/ahb.c=581=static int ath12k_ahb_config_ext_irq(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/ahb.c-595-\ndrivers/net/wireless/ath/ath12k/ahb.c:596:\t\tirq_grp-\u003enapi_ndev = alloc_netdev_dummy(0);\ndrivers/net/wireless/ath/ath12k/ahb.c-597-\t\tif (!irq_grp-\u003enapi_ndev)\n--\ndrivers/net/wireless/ath/ath12k/core.c=105=static int ath12k_core_continue_suspend_resume(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/core.c-112-\t/* so far single_pdev_only chips have supports_suspend as true\ndrivers/net/wireless/ath/ath12k/core.c:113:\t * so pass 0 as a dummy pdev_id here.\ndrivers/net/wireless/ath/ath12k/core.c-114-\t */\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c=884=ath12k_htt_print_hw_stats_whal_tx_tlv(const void *tag_buf, u16 tag_len,\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c-904-\t\t\t le32_to_cpu(htt_stats_buf-\u003ehwsch_unpause_wait_tqm_write));\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:905:\tlen += scnprintf(buf + len, buf_len - len, \"hwsch_dummy_tlv_skipped = %u\\n\",\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:906:\t\t\t le32_to_cpu(htt_stats_buf-\u003ehwsch_dummy_tlv_skipped));\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c-907-\tlen += scnprintf(buf + len, buf_len - len,\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c=1535=ath12k_htt_print_tx_de_compl_stats_tlv(const void *tag_buf, u16 tag_len,\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c-1546-\tlen += scnprintf(buf + len, buf_len - len, \"HTT_TX_DE_COMPL_STATS_TLV:\\n\");\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:1547:\tlen += scnprintf(buf + len, buf_len - len, \"tcl_dummy_frame = %u\\n\",\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:1548:\t\t\t le32_to_cpu(htt_stats_buf-\u003etcl_dummy_frame));\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:1549:\tlen += scnprintf(buf + len, buf_len - len, \"tqm_dummy_frame = %u\\n\",\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c:1550:\t\t\t le32_to_cpu(htt_stats_buf-\u003etqm_dummy_frame));\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.c-1551-\tlen += scnprintf(buf + len, buf_len - len, \"tqm_notify_frame = %u\\n\",\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h=754=struct ath12k_htt_hw_stats_whal_tx_tlv {\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h-757-\t__le32 hwsch_unpause_wait_tqm_write;\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h:758:\t__le32 hwsch_dummy_tlv_skipped;\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h-759-\t__le32 hwsch_misaligned_offset_received;\n--\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h=978=struct ath12k_htt_tx_de_compl_stats_tlv {\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h:979:\t__le32 tcl_dummy_frame;\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h:980:\t__le32 tqm_dummy_frame;\ndrivers/net/wireless/ath/ath12k/debugfs_htt_stats.h-981-\t__le32 tqm_notify_frame;\n--\ndrivers/net/wireless/ath/ath12k/htc.c=558=int ath12k_htc_connect_service(struct ath12k_htc *htc,\n--\ndrivers/net/wireless/ath/ath12k/htc.c-563-\tstruct ath12k_htc_conn_svc *req_msg;\ndrivers/net/wireless/ath/ath12k/htc.c:564:\tstruct ath12k_htc_conn_svc_resp resp_msg_dummy;\ndrivers/net/wireless/ath/ath12k/htc.c:565:\tstruct ath12k_htc_conn_svc_resp *resp_msg = \u0026resp_msg_dummy;\ndrivers/net/wireless/ath/ath12k/htc.c-566-\tenum ath12k_htc_ep_id assigned_eid = ATH12K_HTC_EP_COUNT;\n--\ndrivers/net/wireless/ath/ath12k/htc.c-580-\t\tmax_msg_size = ATH12K_HTC_MAX_CTRL_MSG_LEN;\ndrivers/net/wireless/ath/ath12k/htc.c:581:\t\tmemset(\u0026resp_msg_dummy, 0, sizeof(resp_msg_dummy));\ndrivers/net/wireless/ath/ath12k/htc.c-582-\t\tgoto setup;\n--\ndrivers/net/wireless/ath/ath12k/mac.c=12639=int ath12k_mac_op_set_frag_threshold(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/ath/ath12k/mac.c-12647-\t *\ndrivers/net/wireless/ath/ath12k/mac.c:12648:\t * Hence implement a dummy callback just to say fragmentation isn't\ndrivers/net/wireless/ath/ath12k/mac.c-12649-\t * supported. This effectively prevents mac80211 from doing frame\n--\ndrivers/net/wireless/ath/ath12k/pci.c=540=static int ath12k_pci_ext_irq_config(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/pci.c-566-\t\tirq_grp-\u003egrp_id = i;\ndrivers/net/wireless/ath/ath12k/pci.c:567:\t\tirq_grp-\u003enapi_ndev = alloc_netdev_dummy(0);\ndrivers/net/wireless/ath/ath12k/pci.c-568-\t\tif (!irq_grp-\u003enapi_ndev) {\n--\ndrivers/net/wireless/ath/ath12k/pci.c=1531=static int ath12k_pci_probe(struct pci_dev *pdev,\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1631-\ndrivers/net/wireless/ath/ath12k/pci.c:1632:\t/* kernel may allocate a dummy vector before request_irq and\ndrivers/net/wireless/ath/ath12k/pci.c-1633-\t * then allocate a real vector when request_irq is called.\n"
} |
| 11/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 14581 output: 44 thoughts: 13 Thoughts: Here's my attempt at summarizing the thought process, tailored for an expert audience: **Investigating ath12k PCI ID Support** Alright, let's dive in. My immediate thought is, "Okay, let's get a handle on the PCI IDs that the ath12k driver, specifically, is designed to handle." This isn't just a casual curiosity; it's fundamental to understanding its scope and compatibility. I need to know which hardware revisions, which specific Qualcomm Atheros chipsets, are actually *supported* by this driver. Understanding the PCI IDs gives me that vital first-level triage. Knowing these IDs allows me to quickly determine if a specific hardware device is even *supposed* to function with this driver, or if it might require alternative drivers or modifications. I'm thinking, "I need this list to form a base line, an initial reference point for any further investigation or troubleshooting." It is the starting point for any deeper dive. |
| 12/2 | 2026/10/23 22:36 | tool | grepper |
0mError:no matches Args: {
"Expression": "ath12k_pci_id_table",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"error": "no matches"
} |
| 13/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 14854 output: 38 thoughts: 15 Thoughts: Okay, here's my attempt at summarizing that thought process, keeping in mind the user is an expert: **Finding the Ath12k PCI Driver** Alright, so the task at hand is to locate the `pci_driver` within the `ath12k` driver code. This isn't usually something I'd have to explicitly *think* about, more a mental navigation I'd undertake, but let's break it down. First, I'm going to start by considering the established structure I know from similar wireless drivers, thinking about PCI drivers, and how they tend to be registered. I immediately start to consider things like the expected file structure within the `ath12k` directory. Where are the likely entry points? Is there a clearly defined `pci.c` or similar file? Or perhaps the PCI driver registration is interleaved with the overall module initialization? Then I'd focus in on `pci_driver` structures themselves. I know the standard API, the expected members: the name, the probe function, the remove function, etc. I'd mentally start sketching out the typical pattern of registration: `pci_register_driver()`, probably within some initialization function. Or, if it's a more modern design, it might be using the driver core's automatic probing based on device ID tables. I'd also need to think about potential quirks. Is `ath12k` employing any custom PCI device matching logic? Are there any specific bus-specific or chip-specific driver initialization routines that might obfuscate the standard `pci_driver` registration? Time to recall some of the unusual techniques I've encountered in similar scenarios. Finally, I would start reading the code. I would expect to find it pretty quickly, but there are always cases where I have to search for the driver to find it! |
| 14/2 | 2026/10/23 22:36 | tool | grepper |
0mArgs:{
"Expression": "struct pci_driver",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/pci.c=1811=int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1813-{\ndrivers/net/wireless/ath/ath12k/pci.c:1814:\tstruct pci_driver *pci_driver;\ndrivers/net/wireless/ath/ath12k/pci.c-1815-\n--\ndrivers/net/wireless/ath/ath12k/pci.h=142=struct ath12k_pci_driver {\n--\ndrivers/net/wireless/ath/ath12k/pci.h-145-\tstruct ath12k_pci_device_family_ops ops;\ndrivers/net/wireless/ath/ath12k/pci.h:146:\tstruct pci_driver driver;\ndrivers/net/wireless/ath/ath12k/pci.h-147-\tconst struct ath12k_pci_reg_base *reg_base;\n"
} |
| 15/2 | 2026/10/23 22:36 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 15598 output: 45 thoughts: 26 Thoughts: Okay, here's my take on those thoughts, tailored for an expert audience: **Diving into the Atheros WiFi 7 PCI Driver** Alright, time to dig in. Let's get right to the heart of the matter. I need to understand the PCI-specific implementation for the ath12k WiFi 7 driver. Specifically, I need to get into the `drivers/net/wireless/ath/ath12k/wifi7/pci.c` file. This is where the rubber meets the road, so to speak, in interfacing the hardware with the rest of the kernel. I'll need to examine how the PCI bus is initialized, how interrupts are handled, and how DMA transfers are set up. I'm expecting to see the low-level interactions that map the ath12k's internal architecture onto the PCI bus. From the register reads and writes to the memory mapping, this is where it all comes together. Understanding this code is critical to debugging performance issues or, more generally, optimizing the hardware interaction. I'll be looking for any hints on how the hardware is architected from a software perspective. |
| 16/2 | 2026/10/23 22:37 | tool | grepper |
0mArgs:{
"Expression": "ath12k_wifi7_pci_driver",
"PathPrefixes": [
"drivers/net/wireless/ath/ath12k"
]
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/wifi7/pci.c=183=static const struct ath12k_pci_reg_base ath12k_wifi7_reg_base = {\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-187-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:188:static struct ath12k_pci_driver ath12k_wifi7_pci_driver = {\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-189-\t.name = \"ath12k_wifi7_pci\",\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=197=int ath12k_wifi7_pci_init(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-201-\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:202:\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-203-\tif (ret) {\n"
} |
| 17/2 | 2026/10/23 22:37 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 16267 output: 48 thoughts: 33 Thoughts: Here's a summary of my thinking, expressed as first-person thoughts, assuming I am deeply familiar with wireless networking and the Atheros chipsets: **Delving into the Ath12k PCI Driver** Okay, so I'm thinking about the Ath12k driver, specifically the PCI variant, and I'm directing my focus to around line 180 within `drivers/net/wireless/ath/ath12k/wifi7/pci.c`. My mind's probably starting to wander in that vicinity because I suspect there's a specific function call or data structure defined in that area that is relevant to a problem I am working on. The goal is likely to understand how a certain feature or configuration option, perhaps related to WiFi 7 features, is handled or initialized at the PCI level. I might be tracing a specific interrupt, trying to understand an error condition, or perhaps looking at how DMA is set up for data transfers. Knowing the rough location by line number should narrow down the exact code block I'm interested in, based on my existing familiarity with the driver's architecture. I am likely preparing to dive deeper to get into the details of the problem I'm investigating. |
| 18/2 | 2026/10/23 22:37 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath12k/wifi7/pci.c",
"FirstLine": 150,
"LineCount": 55
}Results: {
"Contents": " 150:\t\t\t\tbreak;\n 151:\t\t\tdefault:\n 152:\t\t\t\tdev_err(\u0026pdev-\u003edev,\n 153:\t\t\t\t\t\"Unknown hardware version found for WCN7850: 0x%x\\n\",\n 154:\t\t\t\t\tsoc_hw_version_major);\n 155:\t\t\t\treturn -EOPNOTSUPP;\n 156:\t\t\t}\n 157:\t\t\tbreak;\n 158:\t\tcase QCC2072_DEVICE_ID:\n 159:\t\t\tab-\u003eid.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;\n 160:\t\t\tab_pci-\u003emsi_config = \u0026ath12k_wifi7_msi_config[0];\n 161:\t\t\tab-\u003estatic_window_map = false;\n 162:\t\t\tab_pci-\u003epci_ops = \u0026ath12k_wifi7_pci_ops_wcn7850;\n 163:\t\t\tab_pci-\u003ewindow_reg_addr = WINDOW_REG_ADDRESS_QCC2072;\n 164:\t\t\tab-\u003etarget_mem_mode = ATH12K_QMI_MEMORY_MODE_DEFAULT;\n 165:\t\t\t/* there is only one version till now */\n 166:\t\t\tab-\u003ehw_rev = ATH12K_HW_QCC2072_HW10;\n 167:\t\t\tbreak;\n 168:\t\tdefault:\n 169:\t\t\tdev_err(\u0026pdev-\u003edev, \"Unknown Wi-Fi 7 PCI device found: 0x%x\\n\",\n 170:\t\t\t\tpci_dev-\u003edevice);\n 171:\t\t\treturn -EOPNOTSUPP;\n 172:\t\t}\n 173:\t\n 174:\t\tret = ath12k_wifi7_hw_init(ab);\n 175:\t\tif (ret) {\n 176:\t\t\tdev_err(\u0026pdev-\u003edev, \"WiFi-7 hw_init for PCI failed: %d\\n\", ret);\n 177:\t\t\treturn ret;\n 178:\t\t}\n 179:\t\n 180:\t\treturn 0;\n 181:\t}\n 182:\t\n 183:\tstatic const struct ath12k_pci_reg_base ath12k_wifi7_reg_base = {\n 184:\t\t.umac_base = HAL_SEQ_WCSS_UMAC_OFFSET,\n 185:\t\t.ce_reg_base = HAL_CE_WFSS_CE_REG_BASE,\n 186:\t};\n 187:\t\n 188:\tstatic struct ath12k_pci_driver ath12k_wifi7_pci_driver = {\n 189:\t\t.name = \"ath12k_wifi7_pci\",\n 190:\t\t.id_table = ath12k_wifi7_pci_id_table,\n 191:\t\t.ops.probe = ath12k_wifi7_pci_probe,\n 192:\t\t.reg_base = \u0026ath12k_wifi7_reg_base,\n 193:\t\t.ops.arch_init = ath12k_wifi7_arch_init,\n 194:\t\t.ops.arch_deinit = ath12k_wifi7_arch_deinit,\n 195:\t};\n 196:\t\n 197:\tint ath12k_wifi7_pci_init(void)\n 198:\t{\n 199:\t\tint ret;\n 200:\t\n 201:\t\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\n 202:\t\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\n 203:\t\tif (ret) {\n 204:\t\t\tpr_err(\"Failed to register ath12k Wi-Fi 7 driver: %d\\n\",\n"
} |
| 19/2 | 2026/10/23 22:37 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 17630 output: 27 thoughts: 1577 Thoughts: **WorthFuzzing Analysis: ath12k Driver Patch** Alright, let's break this down systematically. I'm looking at a patch that touches the `ath12k` driver, specifically focusing on its data path (DP) functions. My primary concern is whether this modified code is even reachable within the context of syzkaller fuzzing, given the standard virtualized environments we typically operate in (GCE, QEMU). First, I identified that `ath12k` supports specific Qualcomm Wi-Fi 7 hardware, devices like WCN7850 and QCN9274, which are PCIe-based. This immediately raises a red flag. The crucial question is: Can we actually trigger this code in a standard fuzzing setup? The rule set clearly states that code is only considered worth fuzzing if it's not "structurally unreachable hardware," meaning that it doesn't rely on vendor-specific PCIe cards that aren't emulated by standard QEMU. Bingo! `ath12k` *is* a vendor-specific hardware driver. QEMU *does not* emulate an `ath12k` device. There's no QEMU device model for it, and there's no way to emulate it with USB emulation, and it doesn't even have a USB driver to begin with, as I've confirmed by checking `ath12k/Kconfig`. It's PCIe/AHB/SNOC only. Forget PCI device emulation or dummy PCI. In standard virtualized environments, we're limited to virtio devices, standard QEMU emulated devices (e820, e1000, rtl8139, ich9, piix, ACPI, etc.), USB gadget/dummy_hcd, virtual network devices (tun/tap, veth, loopback, mac80211_hwsim), and simulated wireless via `mac80211_hwsim`. Now, does `mac80211_hwsim` somehow use `ath12k`? Nope. `mac80211_hwsim` is an entirely independent driver, directly registering with `mac80211`. `ath12k` is a separate mac80211 driver for Qualcomm hardware. They don't interact. Each driver implements `struct ieee80211_ops` and registers with mac80211 (`ieee80211_register_hw`). `ath12k`'s `ath12k_mac_register` is called only during the ath12k device probe (PCIe or AHB). Now, let's examine the patch content specifically. This patch focuses on `ath12k`'s data path (DP) functions: RX processing, descriptor reaping, buffer handling, and monitoring. Essentially, this patch is all about `ath12k_dp_unmap_rx_buf` and related DP functions in `dp.c`, `dp_mon.c`, `dp_rx.c`, and the `wifi7` variants. This is internal stuff, and all this code assumes that the device has been probed, and that the firmware has loaded. Without an `ath12k` PCIe or AHB device, and the corresponding device probe, firmware loading (via MHI / QMI / firmware subsystem), device initialization, and allocation of the DP structure, none of these patched functions can ever be executed. There's no way to get packets from hardware/DMA rings, because there's no *hardware*. Just to be absolutely certain, I've checked for other callers of `ath12k_dp_unmap_rx_buf` or anything modified outside `ath12k`, just to double check that these are not shared functions. Therefore, since the modified code is exclusively tied to a hardware device we cannot emulate or represent in a standard fuzzing environment, this is *not* worth fuzzing. |
| 20/2 | 2026/10/23 22:37 | tool | grepper |
0mArgs:{
"Expression": "ath12k_dp_unmap_rx_buf"
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/dp.c=968=static void ath12k_dp_cc_cleanup(struct ath12k_base *ab)\n--\ndrivers/net/wireless/ath/ath12k/dp.c-1001-\ndrivers/net/wireless/ath/ath12k/dp.c:1002:\t\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\ndrivers/net/wireless/ath/ath12k/dp.c-1003-\t\t\t\tdev_kfree_skb_any(skb);\n--\ndrivers/net/wireless/ath/ath12k/dp_mon.c=543=ath12k_dp_mon_parse_status_buf(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/dp_mon.c-564-\ndrivers/net/wireless/ath/ath12k/dp_mon.c:565:\tath12k_dp_unmap_rx_buf(dp, msdu);\ndrivers/net/wireless/ath/ath12k/dp_mon.c-566-\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c=176=static int ath12k_dp_rxdma_mon_buf_ring_free(struct ath12k_base *ab,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-187-\t\t */\ndrivers/net/wireless/ath/ath12k/dp_rx.c:188:\t\tath12k_dp_unmap_rx_buf(ath12k_ab_to_dp(ab), skb);\ndrivers/net/wireless/ath/ath12k/dp_rx.c-189-\t\tdev_kfree_skb_any(skb);\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h=182=void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h-189-\ndrivers/net/wireless/ath/ath12k/dp_rx.h:190:static inline void ath12k_dp_unmap_rx_buf(struct ath12k_dp *dp,\ndrivers/net/wireless/ath/ath12k/dp_rx.h-191-\t\t\t\t\t struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c=2622=ath12k_wifi7_dp_rx_mon_mpdu_pop(struct ath12k *ar, int mac_id,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-2723-\t\t\tif (!rxcb-\u003eunmapped) {\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c:2724:\t\t\t\tath12k_dp_unmap_rx_buf(dp, msdu);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-2725-\t\t\t\trxcb-\u003eunmapped = 1;\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c=3045=ath12k_wifi7_dp_rx_reap_mon_status_ring(struct ath12k_base *ab, int mac_id,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3136-\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c:3137:\t\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3138-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3147-\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c:3148:\t\t\tath12k_dp_unmap_rx_buf(dp, skb);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3149-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c=3229=ath12k_wifi7_dp_mon_srng_process(struct ath12k_pdev_dp *pdev_dp, int *budget,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3284-\t\trxcb = ATH12K_SKB_RXCB(skb);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c:3285:\t\tath12k_dp_unmap_rx_buf(dp, skb);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_mon.c-3286-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=652=int ath12k_wifi7_dp_rx_process(struct ath12k_dp *dp, int ring_id,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-731-\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:732:\t\tath12k_dp_unmap_rx_buf(partner_dp, msdu);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-733-\t\tnum_buffs_reaped[device_id]++;\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=842=static int ath12k_wifi7_dp_rx_h_defrag_reo_reinject(struct ath12k_dp *dp,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-982-err_unmap_dma:\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:983:\tath12k_dp_unmap_rx_buf(dp, defrag_skb);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-984-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1277=ath12k_wifi7_dp_process_rx_err_buf(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1314-\tlist_add_tail(\u0026desc_info-\u003elist, used_list);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1315:\tath12k_dp_unmap_rx_buf(dp, msdu);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1316-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1357=static int ath12k_dp_h_msdu_buffer_type(struct ath12k_dp *dp,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1391-\tlist_add_tail(\u0026desc_info-\u003elist, list);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1392:\tath12k_dp_unmap_rx_buf(dp, msdu);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1393-\tdev_kfree_skb_any(msdu);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1881=int ath12k_wifi7_dp_rx_process_wbm_err(struct ath12k_dp *dp,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1962-\t\tlist_add_tail(\u0026desc_info-\u003elist, \u0026rx_desc_used_list[device_id]);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1963:\t\tath12k_dp_unmap_rx_buf(partner_dp, msdu);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1964-\t\tnum_buffs_reaped[device_id]++;\n"
} |
| 21/2 | 2026/10/23 22:37 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 22346 output: 117 thoughts: 293 Thoughts: **Fuzzing Verdict: Structurally Unreachable** Okay, let's break this down. All of these modifications are *strictly* within `drivers/net/wireless/ath/ath12k/`. That's the key. This driver *demands* physical Qualcomm Wi-Fi 7 hardware - either PCIe or AHB, the WCN7850 or QCN9274 kind. And, critically, we're not talking about some emulated environment here. Standard QEMU or Google Compute Engine? Forget about it. They just don't cut it. So, this hits that "structurally unreachable hardware" category *dead on*. We're talking about vendor-specific hardware dependencies. No way this code is going to get executed within a standard fuzzing setup. Let's make absolutely sure. `WorthFuzzing`? Nope, false. `FocusSymbols`? Empty list. `EnableConfigs`? Blank. Perfect. Okay, let's articulate this clearly for the record. The rationale is straightforward: These patches are all about tweaking DMA buffer unmapping, but it's *within* the Qualcomm Wi-Fi 7 driver, `ath12k`. And that driver *requires* specific physical Qualcomm hardware. It's just not accessible in the standard virtual environments we're using for fuzzing with syzkaller. Therefore, this code is, for all intents and purposes, structurally unreachable. Done. Verified. |
| 22/2 | 2026/10/23 22:37 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The changes in this patch series exclusively modify internal RX DMA buffer unmapping helpers within the Qualcomm Wi-Fi 7 (ath12k) driver. ath12k requires physical Qualcomm PCIe or AHB hardware (such as WCN7850 or QCN9274) which is not emulated in standard QEMU/GCE virtualized fuzzing environments, making the modified code structurally unreachable.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The changes in this patch series exclusively modify internal RX DMA buffer unmapping helpers within the Qualcomm Wi-Fi 7 (ath12k) driver. ath12k requires physical Qualcomm PCIe or AHB hardware (such as WCN7850 or QCN9274) which is not emulated in standard QEMU/GCE virtualized fuzzing environments, making the modified code structurally unreachable.",
"WorthFuzzing": false
} |
| 23/1 | 2026/10/23 22:37 | action | If |
0mArgs:{
"WorthFuzzing": false
}Results: null |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|