| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/09/27 09:44 | flow | patch-triage |
2mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"KMSANReasoning": "",
"NeedsKMSAN": false,
"Reasoning": "The patch modifies the hardware error recovery mechanism, PCIe bus access error handling, and SNOC teardown for the ath10k wireless driver (Qualcomm Atheros 802.11ac). These chipsets (e.g., QCA988x, QCA6174, WCN3990) require physical PCIe, SDIO, or Qualcomm platform bus hardware that is not emulated in standard virtualized fuzzing environments (QEMU/KVM). Consequently, the modified code paths are structurally unreachable for syzkaller.",
"WorthFuzzing": false
} |
| 1/1 | 2026/09/27 09:44 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 1c7a2c3d521732d9e13d932fa5be2395d3f9bc2f\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Sun Sep 27 09:43:59 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c\nindex 7c2939cbde5f0..8c2ac2ec32d1c 100644\n--- a/drivers/net/wireless/ath/ath10k/core.c\n+++ b/drivers/net/wireless/ath/ath10k/core.c\n@@ -15,6 +15,7 @@\n #include \u003clinux/ctype.h\u003e\n #include \u003clinux/pm_qos.h\u003e\n #include \u003clinux/nvmem-consumer.h\u003e\n+#include \u003clinux/jiffies.h\u003e\n #include \u003casm/byteorder.h\u003e\n \n #include \"core.h\"\n@@ -2491,50 +2492,107 @@ static int ath10k_init_hw_params(struct ath10k *ar)\n \treturn 0;\n }\n \n-static void ath10k_core_recovery_check_work(struct work_struct *work)\n+static void ath10k_core_wake_all_waiters(struct ath10k *ar)\n+{\n+\tcomplete(\u0026ar-\u003escan.started);\n+\tcomplete(\u0026ar-\u003escan.completed);\n+\tcomplete(\u0026ar-\u003escan.on_channel);\n+\tcomplete(\u0026ar-\u003eoffchan_tx_completed);\n+\tcomplete(\u0026ar-\u003einstall_key_done);\n+\tcomplete(\u0026ar-\u003evdev_setup_done);\n+\tcomplete(\u0026ar-\u003evdev_delete_done);\n+\tcomplete(\u0026ar-\u003epeer_delete_done);\n+\tcomplete(\u0026ar-\u003etarget_suspend);\n+\tcomplete(\u0026ar-\u003ethermal.wmi_sync);\n+\tcomplete(\u0026ar-\u003ebss_survey_done);\n+\twake_up(\u0026ar-\u003ehtt.empty_tx_wq);\n+\twake_up(\u0026ar-\u003ewmi.tx_credits_wq);\n+\twake_up(\u0026ar-\u003epeer_mapping_wq);\n+}\n+\n+static void ath10k_core_enter_wedged(struct ath10k *ar)\n {\n-\tstruct ath10k *ar = container_of(work, struct ath10k, recovery_check_work);\n-\tlong time_left;\n+\tar-\u003estate = ATH10K_STATE_WEDGED;\n+\n+\tset_bit(ATH10K_FLAG_CRASH_FLUSH, \u0026ar-\u003edev_flags);\n \n-\t/* Sometimes the recovery will fail and then the next all recovery fail,\n-\t * so avoid infinite recovery.\n+\tieee80211_stop_queues(ar-\u003ehw);\n+\tath10k_core_wake_all_waiters(ar);\n+\n+\t/*\n+\t * Signal the radio as hard-blocked so userspace (e.g.\n+\t * wpa_supplicant, NetworkManager) stops looping scan and connect\n+\t * requests at a device the driver has already given up on. The\n+\t * state is cleared only when the driver is reloaded.\n \t */\n-\tif (atomic_read(\u0026ar-\u003efail_cont_count) \u003e= ATH10K_RECOVERY_MAX_FAIL_COUNT) {\n-\t\tath10k_err(ar, \"consecutive fail %d times, will shutdown driver!\",\n-\t\t\t atomic_read(\u0026ar-\u003efail_cont_count));\n-\t\tar-\u003estate = ATH10K_STATE_WEDGED;\n+\twiphy_rfkill_set_hw_state(ar-\u003ehw-\u003ewiphy, true);\n+}\n+\n+static void ath10k_core_recovery_check_work(struct work_struct *work)\n+{\n+\tstruct ath10k *ar = container_of(work, struct ath10k,\n+\t\t\t\t\t recovery_check_work.work);\n+\tunsigned long recovery_start = READ_ONCE(ar-\u003erecovery_start_jiffies);\n+\tint fail_count;\n+\n+\tif (ar-\u003estate == ATH10K_STATE_WEDGED)\n \t\treturn;\n-\t}\n \n-\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"total recovery count: %d\", ++ar-\u003erecovery_count);\n+\t/*\n+\t * Pure monitor: only ath10k_core_start_recovery() starts a fresh\n+\t * cycle. Bail if there is nothing in flight.\n+\t */\n+\tif (!atomic_read(\u0026ar-\u003epending_recovery))\n+\t\treturn;\n \n-\tif (atomic_read(\u0026ar-\u003epending_recovery)) {\n-\t\t/* Sometimes it happened another recovery work before the previous one\n-\t\t * completed, then the second recovery work will destroy the previous\n-\t\t * one, thus below is to avoid that.\n-\t\t */\n-\t\ttime_left = wait_for_completion_timeout(\u0026ar-\u003edriver_recovery,\n-\t\t\t\t\t\t\tATH10K_RECOVERY_TIMEOUT_HZ);\n-\t\tif (time_left) {\n-\t\t\tath10k_warn(ar, \"previous recovery succeeded, skip this!\\n\");\n-\t\t\treturn;\n-\t\t}\n+\tif (!time_after(jiffies, recovery_start + ATH10K_RECOVERY_TIMEOUT_HZ)) {\n+\t\tqueue_delayed_work(ar-\u003eworkqueue_aux, \u0026ar-\u003erecovery_check_work,\n+\t\t\t\t ATH10K_RECOVERY_TIMEOUT_HZ);\n+\t\treturn;\n+\t}\n \n-\t\t/* Record the continuous recovery fail count when recovery failed. */\n-\t\tatomic_inc(\u0026ar-\u003efail_cont_count);\n+\t/* Record the continuous recovery fail count when recovery is late. */\n+\tfail_count = atomic_inc_return(\u0026ar-\u003efail_cont_count);\n \n-\t\t/* Avoid having multiple recoveries at the same time. */\n+\tif (fail_count \u003e= ATH10K_RECOVERY_MAX_FAIL_COUNT ||\n+\t time_after(jiffies, recovery_start + ATH10K_RECOVERY_DEADLINE_HZ)) {\n+\t\tath10k_err(ar, \"recovery timeout %ums, fail count %d, shutting down driver!\",\n+\t\t\t jiffies_to_msecs(jiffies - recovery_start), fail_count);\n+\t\tath10k_core_enter_wedged(ar);\n \t\treturn;\n \t}\n \n-\tatomic_inc(\u0026ar-\u003epending_recovery);\n-\tqueue_work(ar-\u003eworkqueue, \u0026ar-\u003erestart_work);\n+\t/* Keep checking on our own even if no further trigger arrives. */\n+\tqueue_delayed_work(ar-\u003eworkqueue_aux, \u0026ar-\u003erecovery_check_work,\n+\t\t\t ATH10K_RECOVERY_TIMEOUT_HZ);\n }\n \n void ath10k_core_start_recovery(struct ath10k *ar)\n {\n-\t/* Use workqueue_aux to avoid blocking recovery tracking */\n-\tqueue_work(ar-\u003eworkqueue_aux, \u0026ar-\u003erecovery_check_work);\n+\tif (ar-\u003estate == ATH10K_STATE_WEDGED)\n+\t\treturn;\n+\n+\t/*\n+\t * SDIO raises several triggers within microseconds of one crash;\n+\t * only the first winner starts a fresh cycle and stamps the\n+\t * deadline. Losers do nothing while the owner runs recovery.\n+\t */\n+\tif (atomic_cmpxchg(\u0026ar-\u003epending_recovery, 0, 1) != 0)\n+\t\treturn;\n+\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"total recovery count: %d\",\n+\t\t ++ar-\u003erecovery_count);\n+\t/*\n+\t * Reset fail_cont_count on a fresh cycle so a stale monitor\n+\t * from a just-succeeded cycle -- one that inc'd between\n+\t * reading pending_recovery == 1 and ath10k_reconfig_complete()\n+\t * clearing it -- does not bleed into the new cycle's\n+\t * failure budget.\n+\t */\n+\tatomic_set(\u0026ar-\u003efail_cont_count, 0);\n+\tWRITE_ONCE(ar-\u003erecovery_start_jiffies, jiffies);\n+\tqueue_work(ar-\u003eworkqueue, \u0026ar-\u003erestart_work);\n+\tqueue_delayed_work(ar-\u003eworkqueue_aux, \u0026ar-\u003erecovery_check_work,\n+\t\t\t ATH10K_RECOVERY_TIMEOUT_HZ);\n }\n EXPORT_SYMBOL(ath10k_core_start_recovery);\n \n@@ -2568,8 +2626,6 @@ static void ath10k_core_restart(struct work_struct *work)\n \tstruct ath10k *ar = container_of(work, struct ath10k, restart_work);\n \tint ret;\n \n-\treinit_completion(\u0026ar-\u003edriver_recovery);\n-\n \tset_bit(ATH10K_FLAG_CRASH_FLUSH, \u0026ar-\u003edev_flags);\n \n \t/* Place a barrier to make sure the compiler doesn't reorder\n@@ -2579,18 +2635,7 @@ static void ath10k_core_restart(struct work_struct *work)\n \n \tieee80211_stop_queues(ar-\u003ehw);\n \tath10k_drain_tx(ar);\n-\tcomplete(\u0026ar-\u003escan.started);\n-\tcomplete(\u0026ar-\u003escan.completed);\n-\tcomplete(\u0026ar-\u003escan.on_channel);\n-\tcomplete(\u0026ar-\u003eoffchan_tx_completed);\n-\tcomplete(\u0026ar-\u003einstall_key_done);\n-\tcomplete(\u0026ar-\u003evdev_setup_done);\n-\tcomplete(\u0026ar-\u003evdev_delete_done);\n-\tcomplete(\u0026ar-\u003ethermal.wmi_sync);\n-\tcomplete(\u0026ar-\u003ebss_survey_done);\n-\twake_up(\u0026ar-\u003ehtt.empty_tx_wq);\n-\twake_up(\u0026ar-\u003ewmi.tx_credits_wq);\n-\twake_up(\u0026ar-\u003epeer_mapping_wq);\n+\tath10k_core_wake_all_waiters(ar);\n \n \t/* TODO: We can have one instance of cancelling coverage_class_work by\n \t * moving it to ath10k_halt(), so that both stop() and restart() would\n@@ -2618,7 +2663,7 @@ static void ath10k_core_restart(struct work_struct *work)\n \t\t/* hw restart might be requested from multiple places */\n \t\tbreak;\n \tcase ATH10K_STATE_RESTARTED:\n-\t\tar-\u003estate = ATH10K_STATE_WEDGED;\n+\t\tath10k_core_enter_wedged(ar);\n \t\tfallthrough;\n \tcase ATH10K_STATE_WEDGED:\n \t\tath10k_warn(ar, \"device is wedged, will not restart\\n\");\n@@ -3678,7 +3723,6 @@ struct ath10k *ath10k_core_create(size_t priv_size, struct device *dev,\n \tinit_completion(\u0026ar-\u003escan.completed);\n \tinit_completion(\u0026ar-\u003escan.on_channel);\n \tinit_completion(\u0026ar-\u003etarget_suspend);\n-\tinit_completion(\u0026ar-\u003edriver_recovery);\n \tinit_completion(\u0026ar-\u003ewow.wakeup_completed);\n \n \tinit_completion(\u0026ar-\u003einstall_key_done);\n@@ -3727,7 +3771,7 @@ struct ath10k *ath10k_core_create(size_t priv_size, struct device *dev,\n \n \tINIT_WORK(\u0026ar-\u003eregister_work, ath10k_core_register_work);\n \tINIT_WORK(\u0026ar-\u003erestart_work, ath10k_core_restart);\n-\tINIT_WORK(\u0026ar-\u003erecovery_check_work, ath10k_core_recovery_check_work);\n+\tINIT_DELAYED_WORK(\u0026ar-\u003erecovery_check_work, ath10k_core_recovery_check_work);\n \tINIT_WORK(\u0026ar-\u003eset_coverage_class_work,\n \t\t ath10k_core_set_coverage_class_work);\n \ndiff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h\nindex dfee432615ebf..7c961308d7b9c 100644\n--- a/drivers/net/wireless/ath/ath10k/core.h\n+++ b/drivers/net/wireless/ath/ath10k/core.h\n@@ -88,7 +88,13 @@\n #define ATH10K_ITER_RESUME_FLAGS (IEEE80211_IFACE_ITER_RESUME_ALL |\\\n \t\t\t\t IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER)\n #define ATH10K_RECOVERY_TIMEOUT_HZ\t\t\t(5 * HZ)\n-#define ATH10K_RECOVERY_MAX_FAIL_COUNT\t\t\t4\n+#define ATH10K_RECOVERY_MAX_FAIL_COUNT\t\t\t2\n+/*\n+ * Some platforms configure suspend watchdogs as low as 25s; cap the\n+ * total recovery time well under that so the WEDGED transition and\n+ * any teardown that follows still have room to run before it fires.\n+ */\n+#define ATH10K_RECOVERY_DEADLINE_HZ\t\t\t(15 * HZ)\n \n struct ath10k;\n \n@@ -1061,7 +1067,6 @@ struct ath10k {\n \t} hif;\n \n \tstruct completion target_suspend;\n-\tstruct completion driver_recovery;\n \n \tconst struct ath10k_hw_regs *regs;\n \tconst struct ath10k_hw_ce_regs *hw_ce_regs;\n@@ -1207,7 +1212,7 @@ struct ath10k {\n \n \tstruct work_struct register_work;\n \tstruct work_struct restart_work;\n-\tstruct work_struct recovery_check_work;\n+\tstruct delayed_work recovery_check_work;\n \tstruct work_struct bundle_tx_work;\n \tstruct work_struct tx_complete_work;\n \n@@ -1215,6 +1220,8 @@ struct ath10k {\n \tunsigned int recovery_count;\n \t/* continuous recovery fail count */\n \tatomic_t fail_cont_count;\n+\t/* jiffies when the current recovery attempt started */\n+\tunsigned long recovery_start_jiffies;\n \n \t/* cycle count is reported twice for each visited channel during scan.\n \t * access protected by data_lock\ndiff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c\nindex 8e604697d6c20..9eb356786d3a0 100644\n--- a/drivers/net/wireless/ath/ath10k/mac.c\n+++ b/drivers/net/wireless/ath/ath10k/mac.c\n@@ -5427,7 +5427,7 @@ static void ath10k_stop(struct ieee80211_hw *hw, bool suspend)\n \tcancel_work_sync(\u0026ar-\u003eset_coverage_class_work);\n \tcancel_delayed_work_sync(\u0026ar-\u003escan.timeout);\n \tcancel_work_sync(\u0026ar-\u003erestart_work);\n-\tcancel_work_sync(\u0026ar-\u003erecovery_check_work);\n+\tcancel_delayed_work_sync(\u0026ar-\u003erecovery_check_work);\n }\n \n static int ath10k_config_ps(struct ath10k *ar)\n@@ -8171,10 +8171,12 @@ static void ath10k_reconfig_complete(struct ieee80211_hw *hw,\n \t\tieee80211_wake_queues(ar-\u003ehw);\n \n \t\t/* Clear recovery state. */\n-\t\tcomplete(\u0026ar-\u003edriver_recovery);\n \t\tatomic_set(\u0026ar-\u003efail_cont_count, 0);\n \t\tatomic_set(\u0026ar-\u003epending_recovery, 0);\n \n+\t\t/* Stop the self-rearming monitor after recovery succeeds. */\n+\t\tcancel_delayed_work(\u0026ar-\u003erecovery_check_work);\n+\n \t\tif (ar-\u003ehw_params.hw_restart_disconnect) {\n \t\t\tlist_for_each_entry(arvif, \u0026ar-\u003earvifs, list) {\n \t\t\t\tif (arvif-\u003eis_up \u0026\u0026 arvif-\u003evdev_type == WMI_VDEV_TYPE_STA)\ndiff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c\nindex 335bc7c488e41..0c671630cfc9f 100644\n--- a/drivers/net/wireless/ath/ath10k/pci.c\n+++ b/drivers/net/wireless/ath/ath10k/pci.c\n@@ -478,6 +478,10 @@ static int ath10k_pci_wake_wait(struct ath10k *ar)\n \t\t\treturn 0;\n \t\t}\n \n+\t\t/* The device cannot wake once it is wedged. */\n+\t\tif (ar-\u003estate == ATH10K_STATE_WEDGED)\n+\t\t\treturn -ESHUTDOWN;\n+\n \t\tudelay(curr_delay);\n \t\ttot_delay += curr_delay;\n \n@@ -642,6 +646,16 @@ static void ath10k_bus_pci_write32(struct ath10k *ar, u32 offset, u32 value)\n \tif (ret) {\n \t\tath10k_warn(ar, \"failed to wake target for write32 of 0x%08x at 0x%08x: %d\\n\",\n \t\t\t value, offset, ret);\n+\t\t/*\n+\t\t * wake_wait timed out; the device is unresponsive at the\n+\t\t * MMIO level. write32 returns void so the write is\n+\t\t * silently dropped -- kick recovery here instead of\n+\t\t * letting an upper WMI wait notice it seconds later.\n+\t\t * Guards confine this to runtime; cmpxchg dedups.\n+\t\t */\n+\t\tif (test_bit(ATH10K_FLAG_CORE_REGISTERED, \u0026ar-\u003edev_flags) \u0026\u0026\n+\t\t ar-\u003estate == ATH10K_STATE_ON)\n+\t\t\tath10k_core_start_recovery(ar);\n \t\treturn;\n \t}\n \n@@ -665,6 +679,9 @@ static u32 ath10k_bus_pci_read32(struct ath10k *ar, u32 offset)\n \tif (ret) {\n \t\tath10k_warn(ar, \"failed to wake target for read32 at 0x%08x: %d\\n\",\n \t\t\t offset, ret);\n+\t\tif (test_bit(ATH10K_FLAG_CORE_REGISTERED, \u0026ar-\u003edev_flags) \u0026\u0026\n+\t\t ar-\u003estate == ATH10K_STATE_ON)\n+\t\t\tath10k_core_start_recovery(ar);\n \t\treturn 0xffffffff;\n \t}\n \n@@ -2248,6 +2265,12 @@ static int ath10k_pci_bmi_wait(struct ath10k *ar,\n \t\t\tgoto out;\n \t\t}\n \n+\t\t/* Stop waiting once the device is wedged. */\n+\t\tif (ar-\u003estate == ATH10K_STATE_WEDGED) {\n+\t\t\tret = -ESHUTDOWN;\n+\t\t\tgoto out;\n+\t\t}\n+\n \t\tschedule();\n \t}\n \n@@ -3308,6 +3331,10 @@ int ath10k_pci_wait_for_target_init(struct ath10k *ar)\n \t\tif (val \u0026 FW_IND_INITIALIZED)\n \t\t\tbreak;\n \n+\t\t/* Stop waiting once the device is wedged. */\n+\t\tif (ar-\u003estate == ATH10K_STATE_WEDGED)\n+\t\t\tbreak;\n+\n \t\tif (ar_pci-\u003eoper_irq_mode == ATH10K_PCI_IRQ_INTX)\n \t\t\t/* Fix potential race by repeating CORE_BASE writes */\n \t\t\tath10k_pci_enable_intx_irq(ar);\ndiff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c\nindex 8f171ab6f4de8..1ec58ec1029b7 100644\n--- a/drivers/net/wireless/ath/ath10k/snoc.c\n+++ b/drivers/net/wireless/ath/ath10k/snoc.c\n@@ -1916,10 +1916,10 @@ static void ath10k_snoc_remove(struct platform_device *pdev)\n \n \tath10k_dbg(ar, ATH10K_DBG_SNOC, \"snoc remove\\n\");\n \n-\treinit_completion(\u0026ar-\u003edriver_recovery);\n-\n-\tif (test_bit(ATH10K_SNOC_FLAG_RECOVERY, \u0026ar_snoc-\u003eflags))\n-\t\twait_for_completion_timeout(\u0026ar-\u003edriver_recovery, 3 * HZ);\n+\tif (test_bit(ATH10K_SNOC_FLAG_RECOVERY, \u0026ar_snoc-\u003eflags)) {\n+\t\tcancel_work_sync(\u0026ar-\u003erestart_work);\n+\t\tcancel_delayed_work_sync(\u0026ar-\u003erecovery_check_work);\n+\t}\n \n \tath10k_snoc_free_resources(ar);\n }\n"
} |
| 2/1 | 2026/09/27 09:44 | agent | patch-evaluator |
2mModel:core Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the hardware error recovery mechanism, PCIe bus access error handling, and SNOC teardown for the ath10k wireless driver (Qualcomm Atheros 802.11ac). These chipsets (e.g., QCA988x, QCA6174, WCN3990) require physical PCIe, SDIO, or Qualcomm platform bus hardware that is not emulated in standard virtualized fuzzing environments (QEMU/KVM). Consequently, the modified code paths are structurally unreachable for syzkaller.",
"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 1c7a2c3d521732d9e13d932fa5be2395d3f9bc2f
Author: syz-cluster <triage@syzkaller.com>
Date: Sun Sep 27 09:43:59 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 7c2939cbde5f0..8c2ac2ec32d1c 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -15,6 +15,7 @@
#include <linux/ctype.h>
#include <linux/pm_qos.h>
#include <linux/nvmem-consumer.h>
+#include <linux/jiffies.h>
#include <asm/byteorder.h>
#include "core.h"
@@ -2491,50 +2492,107 @@ static int ath10k_init_hw_params(struct ath10k *ar)
return 0;
}
-static void ath10k_core_recovery_check_work(struct work_struct *work)
+static void ath10k_core_wake_all_waiters(struct ath10k *ar)
+{
+ complete(&ar->scan.started);
+ complete(&ar->scan.completed);
+ complete(&ar->scan.on_channel);
+ complete(&ar->offchan_tx_completed);
+ complete(&ar->install_key_done);
+ complete(&ar->vdev_setup_done);
+ complete(&ar->vdev_delete_done);
+ complete(&ar->peer_delete_done);
+ complete(&ar->target_suspend);
+ complete(&ar->thermal.wmi_sync);
+ complete(&ar->bss_survey_done);
+ wake_up(&ar->htt.empty_tx_wq);
+ wake_up(&ar->wmi.tx_credits_wq);
+ wake_up(&ar->peer_mapping_wq);
+}
+
+static void ath10k_core_enter_wedged(struct ath10k *ar)
{
- struct ath10k *ar = container_of(work, struct ath10k, recovery_check_work);
- long time_left;
+ ar->state = ATH10K_STATE_WEDGED;
+
+ set_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags);
- /* Sometimes the recovery will fail and then the next all recovery fail,
- * so avoid infinite recovery.
+ ieee80211_stop_queues(ar->hw);
+ ath10k_core_wake_all_waiters(ar);
+
+ /*
+ * Signal the radio as hard-blocked so userspace (e.g.
+ * wpa_supplicant, NetworkManager) stops looping scan and connect
+ * requests at a device the driver has already given up on. The
+ * state is cleared only when the driver is reloaded.
*/
- if (atomic_read(&ar->fail_cont_count) >= ATH10K_RECOVERY_MAX_FAIL_COUNT) {
- ath10k_err(ar, "consecutive fail %d times, will shutdown driver!",
- atomic_read(&ar->fail_cont_count));
- ar->state = ATH10K_STATE_WEDGED;
+ wiphy_rfkill_set_hw_state(ar->hw->wiphy, true);
+}
+
+static void ath10k_core_recovery_check_work(struct work_struct *work)
+{
+ struct ath10k *ar = container_of(work, struct ath10k,
+ recovery_check_work.work);
+ unsigned long recovery_start = READ_ONCE(ar->recovery_start_jiffies);
+ int fail_count;
+
+ if (ar->state == ATH10K_STATE_WEDGED)
return;
- }
- ath10k_dbg(ar, ATH10K_DBG_BOOT, "total recovery count: %d", ++ar->recovery_count);
+ /*
+ * Pure monitor: only ath10k_core_start_recovery() starts a fresh
+ * cycle. Bail if there is nothing in flight.
+ */
+ if (!atomic_read(&ar->pending_recovery))
+ return;
- if (atomic_read(&ar->pending_recovery)) {
- /* Sometimes it happened another recovery work before the previous one
- * completed, then the second recovery work will destroy the previous
- * one, thus below is to avoid that.
- */
- time_left = wait_for_completion_timeout(&ar->driver_recovery,
- ATH10K_RECOVERY_TIMEOUT_HZ);
- if (time_left) {
- ath10k_warn(ar, "previous recovery succeeded, skip this!\n");
- return;
- }
+ if (!time_after(jiffies, recovery_start + ATH10K_RECOVERY_TIMEOUT_HZ)) {
+ queue_delayed_work(ar->workqueue_aux, &ar->recovery_check_work,
+ ATH10K_RECOVERY_TIMEOUT_HZ);
+ return;
+ }
- /* Record the continuous recovery fail count when recovery failed. */
- atomic_inc(&ar->fail_cont_count);
+ /* Record the continuous recovery fail count when recovery is late. */
+ fail_count = atomic_inc_return(&ar->fail_cont_count);
- /* Avoid having multiple recoveries at the same time. */
+ if (fail_count >= ATH10K_RECOVERY_MAX_FAIL_COUNT ||
+ time_after(jiffies, recovery_start + ATH10K_RECOVERY_DEADLINE_HZ)) {
+ ath10k_err(ar, "recovery timeout %ums, fail count %d, shutting down driver!",
+ jiffies_to_msecs(jiffies - recovery_start), fail_count);
+ ath10k_core_enter_wedged(ar);
return;
}
- atomic_inc(&ar->pending_recovery);
- queue_work(ar->workqueue, &ar->restart_work);
+ /* Keep checking on our own even if no further trigger arrives. */
+ queue_delayed_work(ar->workqueue_aux, &ar->recovery_check_work,
+ ATH10K_RECOVERY_TIMEOUT_HZ);
}
void ath10k_core_start_recovery(struct ath10k *ar)
{
- /* Use workqueue_aux to avoid blocking recovery tracking */
- queue_work(ar->workqueue_aux, &ar->recovery_check_work);
+ if (ar->state == ATH10K_STATE_WEDGED)
+ return;
+
+ /*
+ * SDIO raises several triggers within microseconds of one crash;
+ * only the first winner starts a fresh cycle and stamps the
+ * deadline. Losers do nothing while the owner runs recovery.
+ */
+ if (atomic_cmpxchg(&ar->pending_recovery, 0, 1) != 0)
+ return;
+ ath10k_dbg(ar, ATH10K_DBG_BOOT, "total recovery count: %d",
+ ++ar->recovery_count);
+ /*
+ * Reset fail_cont_count on a fresh cycle so a stale monitor
+ * from a just-succeeded cycle -- one that inc'd between
+ * reading pending_recovery == 1 and ath10k_reconfig_complete()
+ * clearing it -- does not bleed into the new cycle's
+ * failure budget.
+ */
+ atomic_set(&ar->fail_cont_count, 0);
+ WRITE_ONCE(ar->recovery_start_jiffies, jiffies);
+ queue_work(ar->workqueue, &ar->restart_work);
+ queue_delayed_work(ar->workqueue_aux, &ar->recovery_check_work,
+ ATH10K_RECOVERY_TIMEOUT_HZ);
}
EXPORT_SYMBOL(ath10k_core_start_recovery);
@@ -2568,8 +2626,6 @@ static void ath10k_core_restart(struct work_struct *work)
struct ath10k *ar = container_of(work, struct ath10k, restart_work);
int ret;
- reinit_completion(&ar->driver_recovery);
-
set_bit(ATH10K_FLAG_CRASH_FLUSH, &ar->dev_flags);
/* Place a barrier to make sure the compiler doesn't reorder
@@ -2579,18 +2635,7 @@ static void ath10k_core_restart(struct work_struct *work)
ieee80211_stop_queues(ar->hw);
ath10k_drain_tx(ar);
- complete(&ar->scan.started);
- complete(&ar->scan.completed);
- complete(&ar->scan.on_channel);
- complete(&ar->offchan_tx_completed);
- complete(&ar->install_key_done);
- complete(&ar->vdev_setup_done);
- complete(&ar->vdev_delete_done);
- complete(&ar->thermal.wmi_sync);
- complete(&ar->bss_survey_done);
- wake_up(&ar->htt.empty_tx_wq);
- wake_up(&ar->wmi.tx_credits_wq);
- wake_up(&ar->peer_mapping_wq);
+ ath10k_core_wake_all_waiters(ar);
/* TODO: We can have one instance of cancelling coverage_class_work by
* moving it to ath10k_halt(), so that both stop() and restart() would
@@ -2618,7 +2663,7 @@ static void ath10k_core_restart(struct work_struct *work)
/* hw restart might be requested from multiple places */
break;
case ATH10K_STATE_RESTARTED:
- ar->state = ATH10K_STATE_WEDGED;
+ ath10k_core_enter_wedged(ar);
fallthrough;
case ATH10K_STATE_WEDGED:
ath10k_warn(ar, "device is wedged, will not restart\n");
@@ -3678,7 +3723,6 @@ struct ath10k *ath10k_core_create(size_t priv_size, struct device *dev,
init_completion(&ar->scan.completed);
init_completion(&ar->scan.on_channel);
init_completion(&ar->target_suspend);
- init_completion(&ar->driver_recovery);
init_completion(&ar->wow.wakeup_completed);
init_completion(&ar->install_key_done);
@@ -3727,7 +3771,7 @@ struct ath10k *ath10k_core_create(size_t priv_size, struct device *dev,
INIT_WORK(&ar->register_work, ath10k_core_register_work);
INIT_WORK(&ar->restart_work, ath10k_core_restart);
- INIT_WORK(&ar->recovery_check_work, ath10k_core_recovery_check_work);
+ INIT_DELAYED_WORK(&ar->recovery_check_work, ath10k_core_recovery_check_work);
INIT_WORK(&ar->set_coverage_class_work,
ath10k_core_set_coverage_class_work);
diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h
index dfee432615ebf..7c961308d7b9c 100644
--- a/drivers/net/wireless/ath/ath10k/core.h
+++ b/drivers/net/wireless/ath/ath10k/core.h
@@ -88,7 +88,13 @@
#define ATH10K_ITER_RESUME_FLAGS (IEEE80211_IFACE_ITER_RESUME_ALL |\
IEEE80211_IFACE_SKIP_SDATA_NOT_IN_DRIVER)
#define ATH10K_RECOVERY_TIMEOUT_HZ (5 * HZ)
-#define ATH10K_RECOVERY_MAX_FAIL_COUNT 4
+#define ATH10K_RECOVERY_MAX_FAIL_COUNT 2
+/*
+ * Some platforms configure suspend watchdogs as low as 25s; cap the
+ * total recovery time well under that so the WEDGED transition and
+ * any teardown that follows still have room to run before it fires.
+ */
+#define ATH10K_RECOVERY_DEADLINE_HZ (15 * HZ)
struct ath10k;
@@ -1061,7 +1067,6 @@ struct ath10k {
} hif;
struct completion target_suspend;
- struct completion driver_recovery;
const struct ath10k_hw_regs *regs;
const struct ath10k_hw_ce_regs *hw_ce_regs;
@@ -1207,7 +1212,7 @@ struct ath10k {
struct work_struct register_work;
struct work_struct restart_work;
- struct work_struct recovery_check_work;
+ struct delayed_work recovery_check_work;
struct work_struct bundle_tx_work;
struct work_struct tx_complete_work;
@@ -1215,6 +1220,8 @@ struct ath10k {
unsigned int recovery_count;
/* continuous recovery fail count */
atomic_t fail_cont_count;
+ /* jiffies when the current recovery attempt started */
+ unsigned long recovery_start_jiffies;
/* cycle count is reported twice for each visited channel during scan.
* access protected by data_lock
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 8e604697d6c20..9eb356786d3a0 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -5427,7 +5427,7 @@ static void ath10k_stop(struct ieee80211_hw *hw, bool suspend)
cancel_work_sync(&ar->set_coverage_class_work);
cancel_delayed_work_sync(&ar->scan.timeout);
cancel_work_sync(&ar->restart_work);
- cancel_work_sync(&ar->recovery_check_work);
+ cancel_delayed_work_sync(&ar->recovery_check_work);
}
static int ath10k_config_ps(struct ath10k *ar)
@@ -8171,10 +8171,12 @@ static void ath10k_reconfig_complete(struct ieee80211_hw *hw,
ieee80211_wake_queues(ar->hw);
/* Clear recovery state. */
- complete(&ar->driver_recovery);
atomic_set(&ar->fail_cont_count, 0);
atomic_set(&ar->pending_recovery, 0);
+ /* Stop the self-rearming monitor after recovery succeeds. */
+ cancel_delayed_work(&ar->recovery_check_work);
+
if (ar->hw_params.hw_restart_disconnect) {
list_for_each_entry(arvif, &ar->arvifs, list) {
if (arvif->is_up && arvif->vdev_type == WMI_VDEV_TYPE_STA)
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 335bc7c488e41..0c671630cfc9f 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -478,6 +478,10 @@ static int ath10k_pci_wake_wait(struct ath10k *ar)
return 0;
}
+ /* The device cannot wake once it is wedged. */
+ if (ar->state == ATH10K_STATE_WEDGED)
+ return -ESHUTDOWN;
+
udelay(curr_delay);
tot_delay += curr_delay;
@@ -642,6 +646,16 @@ static void ath10k_bus_pci_write32(struct ath10k *ar, u32 offset, u32 value)
if (ret) {
ath10k_warn(ar, "failed to wake target for write32 of 0x%08x at 0x%08x: %d\n",
value, offset, ret);
+ /*
+ * wake_wait timed out; the device is unresponsive at the
+ * MMIO level. write32 returns void so the write is
+ * silently dropped -- kick recovery here instead of
+ * letting an upper WMI wait notice it seconds later.
+ * Guards confine this to runtime; cmpxchg dedups.
+ */
+ if (test_bit(ATH10K_FLAG_CORE_REGISTERED, &ar->dev_flags) &&
+ ar->state == ATH10K_STATE_ON)
+ ath10k_core_start_recovery(ar);
return;
}
@@ -665,6 +679,9 @@ static u32 ath10k_bus_pci_read32(struct ath10k *ar, u32 offset)
if (ret) {
ath10k_warn(ar, "failed to wake target for read32 at 0x%08x: %d\n",
offset, ret);
+ if (test_bit(ATH10K_FLAG_CORE_REGISTERED, &ar->dev_flags) &&
+ ar->state == ATH10K_STATE_ON)
+ ath10k_core_start_recovery(ar);
return 0xffffffff;
}
@@ -2248,6 +2265,12 @@ static int ath10k_pci_bmi_wait(struct ath10k *ar,
goto out;
}
+ /* Stop waiting once the device is wedged. */
+ if (ar->state == ATH10K_STATE_WEDGED) {
+ ret = -ESHUTDOWN;
+ goto out;
+ }
+
schedule();
}
@@ -3308,6 +3331,10 @@ int ath10k_pci_wait_for_target_init(struct ath10k *ar)
if (val & FW_IND_INITIALIZED)
break;
+ /* Stop waiting once the device is wedged. */
+ if (ar->state == ATH10K_STATE_WEDGED)
+ break;
+
if (ar_pci->oper_irq_mode == ATH10K_PCI_IRQ_INTX)
/* Fix potential race by repeating CORE_BASE writes */
ath10k_pci_enable_intx_irq(ar);
diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c
index 8f171ab6f4de8..1ec58ec1029b7 100644
--- a/drivers/net/wireless/ath/ath10k/snoc.c
+++ b/drivers/net/wireless/ath/ath10k/snoc.c
@@ -1916,10 +1916,10 @@ static void ath10k_snoc_remove(struct platform_device *pdev)
ath10k_dbg(ar, ATH10K_DBG_SNOC, "snoc remove\n");
- reinit_completion(&ar->driver_recovery);
-
- if (test_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags))
- wait_for_completion_timeout(&ar->driver_recovery, 3 * HZ);
+ if (test_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags)) {
+ cancel_work_sync(&ar->restart_work);
+ cancel_delayed_work_sync(&ar->recovery_check_work);
+ }
ath10k_snoc_free_resources(ar);
}
|
| 3/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 8059 output: 30 thoughts: 337 Thoughts: **My Initial Assessment of the Patch Series** Okay, so the user wants me to evaluate this kernel patch series, specifically for amd64 architecture. My immediate focus is on the affected files, which are: `drivers/net/wireless/ath/ath10k/core.c`, `drivers/net/wireless/ath/ath10k/core.h`, `drivers/net/wireless/ath/ath10k/mac.c`, `drivers/net/wireless/ath/ath10k/pci.c`, and `drivers/net/wireless/ath/ath10k/snoc.c`. The fact that it touches `ath10k` immediately raises some flags. Now, I need to consider the testing environment. Is this patch series going to be easily testable in a standard virtualized environment like QEMU or Google Compute Engine? This `ath10k` driver is for Qualcomm Atheros 802.11ac chips, the QCA988x, QCA6174, QCA9984 and similar. I need to refresh my memory, does QEMU offer any meaningful emulation of the required hardware? From my experience, ath10k is typically tied to physical hardware through PCI/PCIe, SDIO, or the Qualcomm SNOC bus. My understanding is that the hardware is needed. I'm now thinking about different scenarios. Does `ath10k` have any support for USB, or perhaps uses mac80211_hwsim, or some other emulated interface that I'm overlooking? I know there are different implementations: `ath10k_pci` for PCI/PCIe, `ath10k_sdio` for SDIO, and `ath10k_snoc` for the Qualcomm platform over SNOC bus. I'll need to confirm whether `ath10k` supports USB. |
| 4/2 | 2026/09/27 09:44 | tool | codesearch-dir-index |
0mArgs:{
"Dir": "drivers/net/wireless/ath/ath10k"
}Results: {
"Files": [
"ahb.c",
"ahb.h",
"bmi.c",
"bmi.h",
"ce.c",
"ce.h",
"core.c",
"core.h",
"coredump.c",
"coredump.h",
"debug.c",
"debug.h",
"debugfs_sta.c",
"hif.h",
"htc.c",
"htc.h",
"htt.c",
"htt.h",
"htt_rx.c",
"htt_tx.c",
"hw.c",
"hw.h",
"leds.c",
"leds.h",
"mac.c",
"mac.h",
"p2p.c",
"p2p.h",
"pci.c",
"pci.h",
"qmi.c",
"qmi.h",
"qmi_wlfw_v01.c",
"qmi_wlfw_v01.h",
"rx_desc.h",
"sdio.c",
"sdio.h",
"snoc.c",
"snoc.h",
"spectral.c",
"spectral.h",
"swap.c",
"swap.h",
"targaddrs.h",
"testmode.c",
"testmode.h",
"testmode_i.h",
"thermal.c",
"thermal.h",
"trace.c",
"trace.h",
"txrx.c",
"txrx.h",
"usb.c",
"usb.h",
"wmi-ops.h",
"wmi-tlv.c",
"wmi-tlv.h",
"wmi.c",
"wmi.h",
"wow.c",
"wow.h"
],
"Subdirs": null
} |
| 5/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 9293 output: 38 thoughts: 207 Thoughts: **Analyzing ath10k USB Driver Interaction** Okay, so I see `usb.c` in the ath10k driver directory. My initial thought is, does this specific ath10k implementation even *use* USB? Let's quickly verify that by diving into `drivers/net/wireless/ath/ath10k/usb.c`. Aha, and a tangential thought, can USB devices be emulated in syzkaller via USB Raw Gadget or Dummy HCD? Because if so, this is a powerful way to test device ID and driver probing. Yes, of course! Syzkaller's USB Raw Gadget can emulate essentially *any* USB device, which means we can trigger the probing of this specific USB driver! Now, let's get back to `drivers/net/wireless/ath/ath10k/usb.c`. I need to figure out the exact flow. Does the USB driver call into `core.c`, specifically `ath10k_core_start_recovery`? Or does `ath10k_usb` probe successfully, and recovery is triggered *implicitly*, or does it rely on `core.c`? This is critical for understanding the fault tolerance and how recovery is initiated in the USB context. Essentially, I need to understand the full lifecycle and determine the point of integration with the core ath10k functionality. Back to inspecting `drivers/net/wireless/ath/ath10k/usb.c` to see precisely what this driver does. |
| 6/2 | 2026/09/27 09:44 | tool | grepper |
0mArgs:{
"Expression": "ath10k_usb",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/Makefile=34=ath10k_sdio-y += sdio.o\ndrivers/net/wireless/ath/ath10k/Makefile-35-\ndrivers/net/wireless/ath/ath10k/Makefile:36:obj-$(CONFIG_ATH10K_USB) += ath10k_usb.o\ndrivers/net/wireless/ath/ath10k/Makefile:37:ath10k_usb-y += usb.o\ndrivers/net/wireless/ath/ath10k/Makefile-38-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-17-\ndrivers/net/wireless/ath/ath10k/usb.c:18:static void ath10k_usb_post_recv_transfers(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:19:\t\t\t\t\t struct ath10k_usb_pipe *recv_pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-20-\n--\ndrivers/net/wireless/ath/ath10k/usb.c=35=static struct ath10k_urb_context *\ndrivers/net/wireless/ath/ath10k/usb.c:36:ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-37-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-56-\ndrivers/net/wireless/ath/ath10k/usb.c:57:static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-58-\t\t\t\t\tstruct ath10k_urb_context *urb_context)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-73-\ndrivers/net/wireless/ath/ath10k/usb.c:74:static void ath10k_usb_cleanup_recv_urb(struct ath10k_urb_context *urb_context)\ndrivers/net/wireless/ath/ath10k/usb.c-75-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-78-\ndrivers/net/wireless/ath/ath10k/usb.c:79:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-80-}\ndrivers/net/wireless/ath/ath10k/usb.c-81-\ndrivers/net/wireless/ath/ath10k/usb.c:82:static void ath10k_usb_free_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:83:\t\t\t\t\t struct ath10k_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-84-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-104-\tfor (;;) {\ndrivers/net/wireless/ath/ath10k/usb.c:105:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-106-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-113-\ndrivers/net/wireless/ath/ath10k/usb.c:114:static void ath10k_usb_cleanup_pipe_resources(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-115-{\ndrivers/net/wireless/ath/ath10k/usb.c:116:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-117-\tint i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-119-\tfor (i = 0; i \u003c ATH10K_USB_PIPE_MAX; i++)\ndrivers/net/wireless/ath/ath10k/usb.c:120:\t\tath10k_usb_free_pipe_resources(ar, \u0026ar_usb-\u003epipes[i]);\ndrivers/net/wireless/ath/ath10k/usb.c-121-}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-124-\ndrivers/net/wireless/ath/ath10k/usb.c:125:static void ath10k_usb_recv_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath10k/usb.c-126-{\ndrivers/net/wireless/ath/ath10k/usb.c-127-\tstruct ath10k_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath10k/usb.c:128:\tstruct ath10k_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath10k/usb.c-129-\tstruct ath10k *ar = pipe-\u003ear_usb-\u003ear;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-172-cleanup_recv_urb:\ndrivers/net/wireless/ath/ath10k/usb.c:173:\tath10k_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-174-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-177-\t\t/* our free urbs are piling up, post more transfers */\ndrivers/net/wireless/ath/ath10k/usb.c:178:\t\tath10k_usb_post_recv_transfers(ar, pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-179-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-181-\ndrivers/net/wireless/ath/ath10k/usb.c:182:static void ath10k_usb_transmit_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath10k/usb.c-183-{\ndrivers/net/wireless/ath/ath10k/usb.c-184-\tstruct ath10k_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath10k/usb.c:185:\tstruct ath10k_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath10k/usb.c-186-\tstruct ath10k *ar = pipe-\u003ear_usb-\u003ear;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-196-\turb_context-\u003eskb = NULL;\ndrivers/net/wireless/ath/ath10k/usb.c:197:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-198-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-204-/* pipe operations */\ndrivers/net/wireless/ath/ath10k/usb.c:205:static void ath10k_usb_post_recv_transfers(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:206:\t\t\t\t\t struct ath10k_usb_pipe *recv_pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-207-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-212-\tfor (;;) {\ndrivers/net/wireless/ath/ath10k/usb.c:213:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(recv_pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-214-\t\tif (!urb_context)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-229-\t\t\t\t ATH10K_USB_RX_BUFFER_SIZE,\ndrivers/net/wireless/ath/ath10k/usb.c:230:\t\t\t\t ath10k_usb_recv_complete, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-231-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-254-err:\ndrivers/net/wireless/ath/ath10k/usb.c:255:\tath10k_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-256-}\ndrivers/net/wireless/ath/ath10k/usb.c-257-\ndrivers/net/wireless/ath/ath10k/usb.c:258:static void ath10k_usb_flush_all(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-259-{\ndrivers/net/wireless/ath/ath10k/usb.c:260:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-261-\tint i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-270-\ndrivers/net/wireless/ath/ath10k/usb.c:271:static void ath10k_usb_start_recv_pipes(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-272-{\ndrivers/net/wireless/ath/ath10k/usb.c:273:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-274-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-276-\ndrivers/net/wireless/ath/ath10k/usb.c:277:\tath10k_usb_post_recv_transfers(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-278-\t\t\t\t \u0026ar_usb-\u003epipes[ATH10K_USB_PIPE_RX_DATA]);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-280-\ndrivers/net/wireless/ath/ath10k/usb.c:281:static void ath10k_usb_tx_complete(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/usb.c-282-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-291-\ndrivers/net/wireless/ath/ath10k/usb.c:292:static void ath10k_usb_rx_complete(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/usb.c-293-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-359-\ndrivers/net/wireless/ath/ath10k/usb.c:360:static void ath10k_usb_io_comp_work(struct work_struct *work)\ndrivers/net/wireless/ath/ath10k/usb.c-361-{\ndrivers/net/wireless/ath/ath10k/usb.c:362:\tstruct ath10k_usb_pipe *pipe = container_of(work,\ndrivers/net/wireless/ath/ath10k/usb.c:363:\t\t\t\t\t\t struct ath10k_usb_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-364-\t\t\t\t\t\t io_complete_work);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-369-\t\tif (pipe-\u003eflags \u0026 ATH10K_USB_PIPE_FLAG_TX)\ndrivers/net/wireless/ath/ath10k/usb.c:370:\t\t\tath10k_usb_tx_complete(ar, skb);\ndrivers/net/wireless/ath/ath10k/usb.c-371-\t\telse\ndrivers/net/wireless/ath/ath10k/usb.c:372:\t\t\tath10k_usb_rx_complete(ar, skb);\ndrivers/net/wireless/ath/ath10k/usb.c-373-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-375-\ndrivers/net/wireless/ath/ath10k/usb.c:376:#define ATH10K_USB_MAX_DIAG_CMD (sizeof(struct ath10k_usb_ctrl_diag_cmd_write))\ndrivers/net/wireless/ath/ath10k/usb.c:377:#define ATH10K_USB_MAX_DIAG_RESP (sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-378-\ndrivers/net/wireless/ath/ath10k/usb.c:379:static void ath10k_usb_destroy(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-380-{\ndrivers/net/wireless/ath/ath10k/usb.c:381:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-382-\ndrivers/net/wireless/ath/ath10k/usb.c:383:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:384:\tath10k_usb_cleanup_pipe_resources(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-385-\tusb_set_intfdata(ar_usb-\u003einterface, NULL);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-390-\ndrivers/net/wireless/ath/ath10k/usb.c:391:static int ath10k_usb_hif_start(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-392-{\ndrivers/net/wireless/ath/ath10k/usb.c-393-\tint i;\ndrivers/net/wireless/ath/ath10k/usb.c:394:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-395-\ndrivers/net/wireless/ath/ath10k/usb.c-396-\tath10k_core_napi_enable(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:397:\tath10k_usb_start_recv_pipes(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-398-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-408-\ndrivers/net/wireless/ath/ath10k/usb.c:409:static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id,\ndrivers/net/wireless/ath/ath10k/usb.c-410-\t\t\t\tstruct ath10k_hif_sg_item *items, int n_items)\ndrivers/net/wireless/ath/ath10k/usb.c-411-{\ndrivers/net/wireless/ath/ath10k/usb.c:412:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:413:\tstruct ath10k_usb_pipe *pipe = \u0026ar_usb-\u003epipes[pipe_id];\ndrivers/net/wireless/ath/ath10k/usb.c-414-\tstruct ath10k_urb_context *urb_context;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-419-\tfor (i = 0; i \u003c n_items; i++) {\ndrivers/net/wireless/ath/ath10k/usb.c:420:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-421-\t\tif (!urb_context) {\n--\ndrivers/net/wireless/ath/ath10k/usb.c-439-\t\t\t\t skb-\u003elen,\ndrivers/net/wireless/ath/ath10k/usb.c:440:\t\t\t\t ath10k_usb_transmit_complete, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-441-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-463-err_free_urb_to_pipe:\ndrivers/net/wireless/ath/ath10k/usb.c:464:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-465-err:\n--\ndrivers/net/wireless/ath/ath10k/usb.c-468-\ndrivers/net/wireless/ath/ath10k/usb.c:469:static void ath10k_usb_hif_stop(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-470-{\ndrivers/net/wireless/ath/ath10k/usb.c:471:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-472-\tath10k_core_napi_sync_disable(ar);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-474-\ndrivers/net/wireless/ath/ath10k/usb.c:475:static u16 ath10k_usb_hif_get_free_queue_number(struct ath10k *ar, u8 pipe_id)\ndrivers/net/wireless/ath/ath10k/usb.c-476-{\ndrivers/net/wireless/ath/ath10k/usb.c:477:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-478-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-481-\ndrivers/net/wireless/ath/ath10k/usb.c:482:static int ath10k_usb_submit_ctrl_out(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-483-\t\t\t\t u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-485-{\ndrivers/net/wireless/ath/ath10k/usb.c:486:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-487-\tu8 *buf = NULL;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-515-\ndrivers/net/wireless/ath/ath10k/usb.c:516:static int ath10k_usb_submit_ctrl_in(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-517-\t\t\t\t u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-519-{\ndrivers/net/wireless/ath/ath10k/usb.c:520:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-521-\tu8 *buf = NULL;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-551-\ndrivers/net/wireless/ath/ath10k/usb.c:552:static int ath10k_usb_ctrl_msg_exchange(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-553-\t\t\t\t\tu8 req_val, u8 *req_buf, u32 req_len,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-559-\t/* send command */\ndrivers/net/wireless/ath/ath10k/usb.c:560:\tret = ath10k_usb_submit_ctrl_out(ar, req_val, 0, 0,\ndrivers/net/wireless/ath/ath10k/usb.c-561-\t\t\t\t\t req_buf, req_len);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-566-\tif (resp_buf) {\ndrivers/net/wireless/ath/ath10k/usb.c:567:\t\tret = ath10k_usb_submit_ctrl_in(ar, resp_val, 0, 0,\ndrivers/net/wireless/ath/ath10k/usb.c-568-\t\t\t\t\t\tresp_buf, *resp_len);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-577-\ndrivers/net/wireless/ath/ath10k/usb.c:578:static int ath10k_usb_hif_diag_read(struct ath10k *ar, u32 address, void *buf,\ndrivers/net/wireless/ath/ath10k/usb.c-579-\t\t\t\t size_t buf_len)\ndrivers/net/wireless/ath/ath10k/usb.c-580-{\ndrivers/net/wireless/ath/ath10k/usb.c:581:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:582:\tstruct ath10k_usb_ctrl_diag_cmd_read *cmd;\ndrivers/net/wireless/ath/ath10k/usb.c-583-\tu32 resp_len;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-585-\ndrivers/net/wireless/ath/ath10k/usb.c:586:\tif (buf_len \u003c sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-587-\t\treturn -EINVAL;\ndrivers/net/wireless/ath/ath10k/usb.c-588-\ndrivers/net/wireless/ath/ath10k/usb.c:589:\tcmd = (struct ath10k_usb_ctrl_diag_cmd_read *)ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath10k/usb.c-590-\tmemset(cmd, 0, sizeof(*cmd));\n--\ndrivers/net/wireless/ath/ath10k/usb.c-592-\tcmd-\u003eaddress = cpu_to_le32(address);\ndrivers/net/wireless/ath/ath10k/usb.c:593:\tresp_len = sizeof(struct ath10k_usb_ctrl_diag_resp_read);\ndrivers/net/wireless/ath/ath10k/usb.c-594-\ndrivers/net/wireless/ath/ath10k/usb.c:595:\tret = ath10k_usb_ctrl_msg_exchange(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-596-\t\t\t\t\t ATH10K_USB_CONTROL_REQ_DIAG_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-603-\ndrivers/net/wireless/ath/ath10k/usb.c:604:\tif (resp_len != sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-605-\t\treturn -EMSGSIZE;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-607-\tmemcpy(buf, ar_usb-\u003ediag_resp_buffer,\ndrivers/net/wireless/ath/ath10k/usb.c:608:\t sizeof(struct ath10k_usb_ctrl_diag_resp_read));\ndrivers/net/wireless/ath/ath10k/usb.c-609-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-612-\ndrivers/net/wireless/ath/ath10k/usb.c:613:static int ath10k_usb_hif_diag_write(struct ath10k *ar, u32 address,\ndrivers/net/wireless/ath/ath10k/usb.c-614-\t\t\t\t const void *data, int nbytes)\ndrivers/net/wireless/ath/ath10k/usb.c-615-{\ndrivers/net/wireless/ath/ath10k/usb.c:616:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:617:\tstruct ath10k_usb_ctrl_diag_cmd_write *cmd;\ndrivers/net/wireless/ath/ath10k/usb.c-618-\tint ret;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-622-\ndrivers/net/wireless/ath/ath10k/usb.c:623:\tcmd = (struct ath10k_usb_ctrl_diag_cmd_write *)ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath10k/usb.c-624-\tmemset(cmd, 0, sizeof(*cmd));\n--\ndrivers/net/wireless/ath/ath10k/usb.c-628-\ndrivers/net/wireless/ath/ath10k/usb.c:629:\tret = ath10k_usb_ctrl_msg_exchange(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-630-\t\t\t\t\t ATH10K_USB_CONTROL_REQ_DIAG_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-639-\ndrivers/net/wireless/ath/ath10k/usb.c:640:static int ath10k_usb_bmi_exchange_msg(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-641-\t\t\t\t void *req, u32 req_len,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-646-\tif (req) {\ndrivers/net/wireless/ath/ath10k/usb.c:647:\t\tret = ath10k_usb_submit_ctrl_out(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-648-\t\t\t\t\t\t ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-658-\tif (resp) {\ndrivers/net/wireless/ath/ath10k/usb.c:659:\t\tret = ath10k_usb_submit_ctrl_in(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-660-\t\t\t\t\t\tATH10K_USB_CONTROL_REQ_RECV_BMI_RESP,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-672-\ndrivers/net/wireless/ath/ath10k/usb.c:673:static void ath10k_usb_hif_get_default_pipe(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-674-\t\t\t\t\t u8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-679-\ndrivers/net/wireless/ath/ath10k/usb.c:680:static int ath10k_usb_hif_map_service_to_pipe(struct ath10k *ar, u16 svc_id,\ndrivers/net/wireless/ath/ath10k/usb.c-681-\t\t\t\t\t u8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-703-\ndrivers/net/wireless/ath/ath10k/usb.c:704:static int ath10k_usb_hif_power_up(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-705-\t\t\t\t enum ath10k_firmware_mode fw_mode)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-709-\ndrivers/net/wireless/ath/ath10k/usb.c:710:static void ath10k_usb_hif_power_down(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-711-{\ndrivers/net/wireless/ath/ath10k/usb.c:712:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-713-}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-716-\ndrivers/net/wireless/ath/ath10k/usb.c:717:static int ath10k_usb_hif_suspend(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-718-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-721-\ndrivers/net/wireless/ath/ath10k/usb.c:722:static int ath10k_usb_hif_resume(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-723-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-727-\ndrivers/net/wireless/ath/ath10k/usb.c:728:static const struct ath10k_hif_ops ath10k_usb_hif_ops = {\ndrivers/net/wireless/ath/ath10k/usb.c:729:\t.tx_sg\t\t\t= ath10k_usb_hif_tx_sg,\ndrivers/net/wireless/ath/ath10k/usb.c:730:\t.diag_read\t\t= ath10k_usb_hif_diag_read,\ndrivers/net/wireless/ath/ath10k/usb.c:731:\t.diag_write\t\t= ath10k_usb_hif_diag_write,\ndrivers/net/wireless/ath/ath10k/usb.c:732:\t.exchange_bmi_msg\t= ath10k_usb_bmi_exchange_msg,\ndrivers/net/wireless/ath/ath10k/usb.c:733:\t.start\t\t\t= ath10k_usb_hif_start,\ndrivers/net/wireless/ath/ath10k/usb.c:734:\t.stop\t\t\t= ath10k_usb_hif_stop,\ndrivers/net/wireless/ath/ath10k/usb.c:735:\t.map_service_to_pipe\t= ath10k_usb_hif_map_service_to_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c:736:\t.get_default_pipe\t= ath10k_usb_hif_get_default_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c:737:\t.get_free_queue_number\t= ath10k_usb_hif_get_free_queue_number,\ndrivers/net/wireless/ath/ath10k/usb.c:738:\t.power_up\t\t= ath10k_usb_hif_power_up,\ndrivers/net/wireless/ath/ath10k/usb.c:739:\t.power_down\t\t= ath10k_usb_hif_power_down,\ndrivers/net/wireless/ath/ath10k/usb.c-740-#ifdef CONFIG_PM\ndrivers/net/wireless/ath/ath10k/usb.c:741:\t.suspend\t\t= ath10k_usb_hif_suspend,\ndrivers/net/wireless/ath/ath10k/usb.c:742:\t.resume\t\t\t= ath10k_usb_hif_resume,\ndrivers/net/wireless/ath/ath10k/usb.c-743-#endif\n--\ndrivers/net/wireless/ath/ath10k/usb.c-745-\ndrivers/net/wireless/ath/ath10k/usb.c:746:static u8 ath10k_usb_get_logical_pipe_num(u8 ep_address, int *urb_count)\ndrivers/net/wireless/ath/ath10k/usb.c-747-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-790-\ndrivers/net/wireless/ath/ath10k/usb.c:791:static int ath10k_usb_alloc_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:792:\t\t\t\t\t struct ath10k_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-793-\t\t\t\t\t int urb_cnt)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-811-\t\tpipe-\u003eurb_alloc++;\ndrivers/net/wireless/ath/ath10k/usb.c:812:\t\tath10k_usb_free_urb_to_pipe(pipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-813-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-822-\ndrivers/net/wireless/ath/ath10k/usb.c:823:static int ath10k_usb_setup_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-824-\t\t\t\t\t struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-825-{\ndrivers/net/wireless/ath/ath10k/usb.c:826:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-827-\tstruct usb_host_interface *iface_desc = interface-\u003ecur_altsetting;\ndrivers/net/wireless/ath/ath10k/usb.c-828-\tstruct usb_endpoint_descriptor *endpoint;\ndrivers/net/wireless/ath/ath10k/usb.c:829:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.c-830-\tint ret, i, urbcount;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-871-\t\tpipe_num =\ndrivers/net/wireless/ath/ath10k/usb.c:872:\t\t ath10k_usb_get_logical_pipe_num(endpoint-\u003ebEndpointAddress,\ndrivers/net/wireless/ath/ath10k/usb.c-873-\t\t\t\t\t\t \u0026urbcount);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-924-\ndrivers/net/wireless/ath/ath10k/usb.c:925:\t\tret = ath10k_usb_alloc_pipe_resources(ar, pipe, urbcount);\ndrivers/net/wireless/ath/ath10k/usb.c-926-\t\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-932-\ndrivers/net/wireless/ath/ath10k/usb.c:933:static int ath10k_usb_create(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-934-\t\t\t struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-935-{\ndrivers/net/wireless/ath/ath10k/usb.c:936:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-937-\tstruct usb_device *dev = interface_to_usbdev(interface);\ndrivers/net/wireless/ath/ath10k/usb.c:938:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.c-939-\tint ret, i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-948-\t\tINIT_WORK(\u0026pipe-\u003eio_complete_work,\ndrivers/net/wireless/ath/ath10k/usb.c:949:\t\t\t ath10k_usb_io_comp_work);\ndrivers/net/wireless/ath/ath10k/usb.c-950-\t\tskb_queue_head_init(\u0026pipe-\u003eio_comp_queue);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-965-\ndrivers/net/wireless/ath/ath10k/usb.c:966:\tret = ath10k_usb_setup_pipe_resources(ar, interface);\ndrivers/net/wireless/ath/ath10k/usb.c-967-\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-972-err:\ndrivers/net/wireless/ath/ath10k/usb.c:973:\tath10k_usb_destroy(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-974-\treturn ret;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-976-\ndrivers/net/wireless/ath/ath10k/usb.c:977:static int ath10k_usb_napi_poll(struct napi_struct *ctx, int budget)\ndrivers/net/wireless/ath/ath10k/usb.c-978-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-991-/* ath10k usb driver registered functions */\ndrivers/net/wireless/ath/ath10k/usb.c:992:static int ath10k_usb_probe(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath10k/usb.c-993-\t\t\t const struct usb_device_id *id)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-995-\tstruct ath10k *ar;\ndrivers/net/wireless/ath/ath10k/usb.c:996:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.c-997-\tstruct usb_device *dev = interface_to_usbdev(interface);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1010-\tar = ath10k_core_create(sizeof(*ar_usb), \u0026dev-\u003edev, ATH10K_BUS_USB,\ndrivers/net/wireless/ath/ath10k/usb.c:1011:\t\t\t\thw_rev, \u0026ath10k_usb_hif_ops);\ndrivers/net/wireless/ath/ath10k/usb.c-1012-\tif (!ar) {\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1016-\ndrivers/net/wireless/ath/ath10k/usb.c:1017:\tnetif_napi_add(ar-\u003enapi_dev, \u0026ar-\u003enapi, ath10k_usb_napi_poll);\ndrivers/net/wireless/ath/ath10k/usb.c-1018-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1025-\ndrivers/net/wireless/ath/ath10k/usb.c:1026:\tar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:1027:\tret = ath10k_usb_create(ar, interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1028-\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1051-err_usb_destroy:\ndrivers/net/wireless/ath/ath10k/usb.c:1052:\tath10k_usb_destroy(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-1053-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1059-\ndrivers/net/wireless/ath/ath10k/usb.c:1060:static void ath10k_usb_disconnect(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-1061-{\ndrivers/net/wireless/ath/ath10k/usb.c:1062:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.c-1063-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1069-\tnetif_napi_del(\u0026ar_usb-\u003ear-\u003enapi);\ndrivers/net/wireless/ath/ath10k/usb.c:1070:\tath10k_usb_destroy(ar_usb-\u003ear);\ndrivers/net/wireless/ath/ath10k/usb.c-1071-\tath10k_core_destroy(ar_usb-\u003ear);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1075-\ndrivers/net/wireless/ath/ath10k/usb.c:1076:static int ath10k_usb_pm_suspend(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath10k/usb.c-1077-\t\t\t\t pm_message_t message)\ndrivers/net/wireless/ath/ath10k/usb.c-1078-{\ndrivers/net/wireless/ath/ath10k/usb.c:1079:\tstruct ath10k_usb *ar_usb = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1080-\ndrivers/net/wireless/ath/ath10k/usb.c:1081:\tath10k_usb_flush_all(ar_usb-\u003ear);\ndrivers/net/wireless/ath/ath10k/usb.c-1082-\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1084-\ndrivers/net/wireless/ath/ath10k/usb.c:1085:static int ath10k_usb_pm_resume(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-1086-{\ndrivers/net/wireless/ath/ath10k/usb.c:1087:\tstruct ath10k_usb *ar_usb = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1088-\tstruct ath10k *ar = ar_usb-\u003ear;\ndrivers/net/wireless/ath/ath10k/usb.c-1089-\ndrivers/net/wireless/ath/ath10k/usb.c:1090:\tath10k_usb_post_recv_transfers(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-1091-\t\t\t\t \u0026ar_usb-\u003epipes[ATH10K_USB_PIPE_RX_DATA]);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1097-\ndrivers/net/wireless/ath/ath10k/usb.c:1098:#define ath10k_usb_pm_suspend NULL\ndrivers/net/wireless/ath/ath10k/usb.c:1099:#define ath10k_usb_pm_resume NULL\ndrivers/net/wireless/ath/ath10k/usb.c-1100-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1103-/* table of devices that work with this driver */\ndrivers/net/wireless/ath/ath10k/usb.c:1104:static struct usb_device_id ath10k_usb_ids[] = {\ndrivers/net/wireless/ath/ath10k/usb.c-1105-\t{USB_DEVICE(0x13b1, 0x0042)}, /* Linksys WUSB6100M */\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1108-\ndrivers/net/wireless/ath/ath10k/usb.c:1109:MODULE_DEVICE_TABLE(usb, ath10k_usb_ids);\ndrivers/net/wireless/ath/ath10k/usb.c-1110-\ndrivers/net/wireless/ath/ath10k/usb.c:1111:static struct usb_driver ath10k_usb_driver = {\ndrivers/net/wireless/ath/ath10k/usb.c:1112:\t.name = \"ath10k_usb\",\ndrivers/net/wireless/ath/ath10k/usb.c:1113:\t.probe = ath10k_usb_probe,\ndrivers/net/wireless/ath/ath10k/usb.c:1114:\t.suspend = ath10k_usb_pm_suspend,\ndrivers/net/wireless/ath/ath10k/usb.c:1115:\t.resume = ath10k_usb_pm_resume,\ndrivers/net/wireless/ath/ath10k/usb.c:1116:\t.disconnect = ath10k_usb_disconnect,\ndrivers/net/wireless/ath/ath10k/usb.c:1117:\t.id_table = ath10k_usb_ids,\ndrivers/net/wireless/ath/ath10k/usb.c-1118-\t.supports_autosuspend = true,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1121-\ndrivers/net/wireless/ath/ath10k/usb.c:1122:module_usb_driver(ath10k_usb_driver);\ndrivers/net/wireless/ath/ath10k/usb.c-1123-\n--\ndrivers/net/wireless/ath/ath10k/usb.h-43-\ndrivers/net/wireless/ath/ath10k/usb.h:44:struct ath10k_usb_ctrl_diag_cmd_write {\ndrivers/net/wireless/ath/ath10k/usb.h-45-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-50-\ndrivers/net/wireless/ath/ath10k/usb.h:51:struct ath10k_usb_ctrl_diag_cmd_read {\ndrivers/net/wireless/ath/ath10k/usb.h-52-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-55-\ndrivers/net/wireless/ath/ath10k/usb.h:56:struct ath10k_usb_ctrl_diag_resp_read {\ndrivers/net/wireless/ath/ath10k/usb.h-57-\tu8 value[4];\n--\ndrivers/net/wireless/ath/ath10k/usb.h-60-/* tx/rx pipes for usb */\ndrivers/net/wireless/ath/ath10k/usb.h:61:enum ath10k_usb_pipe_id {\ndrivers/net/wireless/ath/ath10k/usb.h-62-\tATH10K_USB_PIPE_TX_CTRL = 0,\n--\ndrivers/net/wireless/ath/ath10k/usb.h-72-\ndrivers/net/wireless/ath/ath10k/usb.h:73:struct ath10k_usb_pipe {\ndrivers/net/wireless/ath/ath10k/usb.h-74-\tstruct list_head urb_list_head;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-82-\tu8 logical_pipe_num;\ndrivers/net/wireless/ath/ath10k/usb.h:83:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.h-84-\tu16 max_packet_size;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-92-/* usb device object */\ndrivers/net/wireless/ath/ath10k/usb.h:93:struct ath10k_usb {\ndrivers/net/wireless/ath/ath10k/usb.h-94-\t/* protects pipe-\u003eurb_list_head and pipe-\u003eurb_cnt */\n--\ndrivers/net/wireless/ath/ath10k/usb.h-98-\tstruct usb_interface *interface;\ndrivers/net/wireless/ath/ath10k/usb.h:99:\tstruct ath10k_usb_pipe pipes[ATH10K_USB_PIPE_MAX];\ndrivers/net/wireless/ath/ath10k/usb.h-100-\tu8 *diag_cmd_buffer;\n--\ndrivers/net/wireless/ath/ath10k/usb.h=106=struct ath10k_urb_context {\ndrivers/net/wireless/ath/ath10k/usb.h-107-\tstruct list_head link;\ndrivers/net/wireless/ath/ath10k/usb.h:108:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.h-109-\tstruct sk_buff *skb;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-112-\ndrivers/net/wireless/ath/ath10k/usb.h:113:static inline struct ath10k_usb *ath10k_usb_priv(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.h-114-{\ndrivers/net/wireless/ath/ath10k/usb.h:115:\treturn (struct ath10k_usb *)ar-\u003edrv_priv;\ndrivers/net/wireless/ath/ath10k/usb.h-116-}\n"
} |
| 7/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 23215 output: 44 thoughts: 69 Thoughts: Okay, let's dive into this. Here's my take on those steps: **Analyzing `ath10k_usb_probe`** Alright, the initial focus is on `ath10k_usb_probe`, specifically within the `drivers/net/wireless/ath/ath10k/usb.c` file. My immediate thought is, "Okay, this is where the USB probe function for the ath10k driver resides." I need to understand how the system identifies and initializes a Qualcomm Atheros USB wireless device. The file path indicates it's part of the USB-specific portion of the broader ath10k driver. So, the next logical step is to analyze the source code for the actual `ath10k_usb_probe` function definition. This would allow me to fully understand how the driver interacts with the hardware, what resources it allocates, how it's registered with the USB subsystem, and how it handles initialization sequences and potential error conditions for these USB-based adapters. It's time to read through it carefully, line by line. |
| 8/2 | 2026/09/27 09:44 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/usb.c",
"FirstLine": 990,
"LineCount": 60
}Results: {
"Contents": " 990:\t\n 991:\t/* ath10k usb driver registered functions */\n 992:\tstatic int ath10k_usb_probe(struct usb_interface *interface,\n 993:\t\t\t\t const struct usb_device_id *id)\n 994:\t{\n 995:\t\tstruct ath10k *ar;\n 996:\t\tstruct ath10k_usb *ar_usb;\n 997:\t\tstruct usb_device *dev = interface_to_usbdev(interface);\n 998:\t\tint ret, vendor_id, product_id;\n 999:\t\tenum ath10k_hw_rev hw_rev;\n1000:\t\tstruct ath10k_bus_params bus_params = {};\n1001:\t\n1002:\t\t/* Assumption: All USB based chipsets (so far) are QCA9377 based.\n1003:\t\t * If there will be newer chipsets that does not use the hw reg\n1004:\t\t * setup as defined in qca6174_regs and qca6174_values, this\n1005:\t\t * assumption is no longer valid and hw_rev must be setup differently\n1006:\t\t * depending on chipset.\n1007:\t\t */\n1008:\t\thw_rev = ATH10K_HW_QCA9377;\n1009:\t\n1010:\t\tar = ath10k_core_create(sizeof(*ar_usb), \u0026dev-\u003edev, ATH10K_BUS_USB,\n1011:\t\t\t\t\thw_rev, \u0026ath10k_usb_hif_ops);\n1012:\t\tif (!ar) {\n1013:\t\t\tdev_err(\u0026dev-\u003edev, \"failed to allocate core\\n\");\n1014:\t\t\treturn -ENOMEM;\n1015:\t\t}\n1016:\t\n1017:\t\tnetif_napi_add(ar-\u003enapi_dev, \u0026ar-\u003enapi, ath10k_usb_napi_poll);\n1018:\t\n1019:\t\tvendor_id = le16_to_cpu(dev-\u003edescriptor.idVendor);\n1020:\t\tproduct_id = le16_to_cpu(dev-\u003edescriptor.idProduct);\n1021:\t\n1022:\t\tath10k_dbg(ar, ATH10K_DBG_BOOT,\n1023:\t\t\t \"usb new func vendor 0x%04x product 0x%04x\\n\",\n1024:\t\t\t vendor_id, product_id);\n1025:\t\n1026:\t\tar_usb = ath10k_usb_priv(ar);\n1027:\t\tret = ath10k_usb_create(ar, interface);\n1028:\t\tif (ret)\n1029:\t\t\tgoto err;\n1030:\t\tar_usb-\u003ear = ar;\n1031:\t\n1032:\t\tar-\u003edev_id = product_id;\n1033:\t\tar-\u003eid.vendor = vendor_id;\n1034:\t\tar-\u003eid.device = product_id;\n1035:\t\n1036:\t\tbus_params.dev_type = ATH10K_DEV_TYPE_HL;\n1037:\t\t/* TODO: don't know yet how to get chip_id with USB */\n1038:\t\tbus_params.chip_id = 0;\n1039:\t\tbus_params.hl_msdu_ids = true;\n1040:\t\tret = ath10k_core_register(ar, \u0026bus_params);\n1041:\t\tif (ret) {\n1042:\t\t\tath10k_warn(ar, \"failed to register driver core: %d\\n\", ret);\n1043:\t\t\tgoto err_usb_destroy;\n1044:\t\t}\n1045:\t\n1046:\t\t/* TODO: remove this once USB support is fully implemented */\n1047:\t\tath10k_warn(ar, \"Warning: ath10k USB support is incomplete, don't expect anything to work!\\n\");\n1048:\t\n1049:\t\treturn 0;\n"
} |
| 9/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 24635 output: 42 thoughts: 1042 Thoughts: **Analyzing the Potential for Fuzzing Reachability of ath10k** Okay, here's what I'm thinking. This patch looks interesting. I see that `ath10k_usb_probe` is calling `ath10k_core_create` and `ath10k_core_register`, and in `ath10k_core_create`, I see the initialization of some work queues – particularly `recovery_check_work` as a delayed work. This makes me wonder about the entire USB probe process; does it always succeed, and what's the typical behavior? I also immediately start considering syzkaller, naturally. Does syzkaller actually *touch* USB drivers? Then it hits me, of course! Syzkaller has `syz_usb_connect`, `syz_usb_control_io`, and other functions capable of emulating a full USB device. Bingo. But is ath10k actually *reachable* through syzkaller's USB fuzzing capabilities? I need to know. Beyond USB, I should also check if mac80211, cfg80211, or testmode can be used to reach ath10k somehow, or how ath10k is typically utilized, from a broader perspective. I have to carefully consider the criteria for WorthFuzzing. The key, as I understand it, is whether the *modified* code is reachable. The documentation is quite explicit. I need to ascertain if the code falls into a "negative criteria" category: non-kernel, structurally unreachable hardware (like vendor-specific PCIe cards that QEMU doesn't emulate) or unreachable execution paths (like driver teardown callbacks that depend on physical hot-unplug). Right, let's break this down. Let's see what this patch actually modifies: 1. `ath10k/core.c`: I see modifications across the core, including wake-up functionality and restart/recovery. 2. `ath10k/core.h`: Header modifications, which include timing and work queue changes. 3. `ath10k/mac.c`: Changes in `stop` and `reconfig_complete` related to the `recovery_check_work` delayed work cancellation. 4. `ath10k/pci.c`: PCI-related functions. 5. `ath10k/snoc.c`: `ath10k_snoc_remove`. Now the big question: Is `ath10k` reachable? Can I trigger it via USB? Is `ath10k_core_start_recovery` a critical path? I need to check the USB path. I'm going to quickly grep through the kernel to see if `ath10k_core_start_recovery` is ever used by `ath10k_usb`. Let's see! |
| 10/2 | 2026/09/27 09:44 | tool | grepper |
0mArgs:{
"Expression": "ath10k_core_start_recovery",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/core.c=2531=static void ath10k_core_recovery_check_work(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath10k/core.c-2541-\t/*\ndrivers/net/wireless/ath/ath10k/core.c:2542:\t * Pure monitor: only ath10k_core_start_recovery() starts a fresh\ndrivers/net/wireless/ath/ath10k/core.c-2543-\t * cycle. Bail if there is nothing in flight.\n--\ndrivers/net/wireless/ath/ath10k/core.c-2569-\ndrivers/net/wireless/ath/ath10k/core.c:2570:void ath10k_core_start_recovery(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/core.c-2571-{\n--\ndrivers/net/wireless/ath/ath10k/core.c-2596-}\ndrivers/net/wireless/ath/ath10k/core.c:2597:EXPORT_SYMBOL(ath10k_core_start_recovery);\ndrivers/net/wireless/ath/ath10k/core.c-2598-\n--\ndrivers/net/wireless/ath/ath10k/core.h=1365=void ath10k_core_stop(struct ath10k *ar);\ndrivers/net/wireless/ath/ath10k/core.h:1366:void ath10k_core_start_recovery(struct ath10k *ar);\ndrivers/net/wireless/ath/ath10k/core.h-1367-int ath10k_core_register(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=544=static ssize_t ath10k_write_simulate_fw_crash(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-588-\t\tath10k_info(ar, \"user requested hw restart\\n\");\ndrivers/net/wireless/ath/ath10k/debug.c:589:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/debug.c-590-\t\tret = 0;\n--\ndrivers/net/wireless/ath/ath10k/debug.c=1964=static ssize_t ath10k_write_btcoex(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-2003-\t\tath10k_info(ar, \"restarting firmware due to btcoex change\");\ndrivers/net/wireless/ath/ath10k/debug.c:2004:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/debug.c-2005-\t}\n--\ndrivers/net/wireless/ath/ath10k/debug.c=2093=static ssize_t ath10k_write_peer_stats(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-2121-\ndrivers/net/wireless/ath/ath10k/debug.c:2122:\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/debug.c-2123-\tret = count;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=2322=static int ath10k_htt_rx_handle_amsdu(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2348-\t\thtt-\u003erx_confused = true;\ndrivers/net/wireless/ath/ath10k/htt_rx.c:2349:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2350-\t\treturn ret;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=3260=static int ath10k_htt_rx_in_ord_ind(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3313-\t\thtt-\u003erx_confused = true;\ndrivers/net/wireless/ath/ath10k/htt_rx.c:3314:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3315-\t\treturn -EIO;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3347-\t\t\t__skb_queue_purge(\u0026list);\ndrivers/net/wireless/ath/ath10k/htt_rx.c:3348:\t\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3349-\t\t\treturn -EIO;\n--\ndrivers/net/wireless/ath/ath10k/pci.c=634=static void ath10k_bus_pci_write32(struct ath10k *ar, u32 offset, u32 value)\n--\ndrivers/net/wireless/ath/ath10k/pci.c-657-\t\t ar-\u003estate == ATH10K_STATE_ON)\ndrivers/net/wireless/ath/ath10k/pci.c:658:\t\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/pci.c-659-\t\treturn;\n--\ndrivers/net/wireless/ath/ath10k/pci.c=666=static u32 ath10k_bus_pci_read32(struct ath10k *ar, u32 offset)\n--\ndrivers/net/wireless/ath/ath10k/pci.c-683-\t\t ar-\u003estate == ATH10K_STATE_ON)\ndrivers/net/wireless/ath/ath10k/pci.c:684:\t\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/pci.c-685-\t\treturn 0xffffffff;\n--\ndrivers/net/wireless/ath/ath10k/pci.c=1767=static void ath10k_pci_fw_dump_work(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath10k/pci.c-1795-\ndrivers/net/wireless/ath/ath10k/pci.c:1796:\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/pci.c-1797-}\n--\ndrivers/net/wireless/ath/ath10k/sdio.c=538=static int ath10k_sdio_mbox_rx_alloc(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/sdio.c-564-\ndrivers/net/wireless/ath/ath10k/sdio.c:565:\t\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/sdio.c-566-\t\t\tath10k_warn(ar, \"exceeds length, start recovery\\n\");\n--\ndrivers/net/wireless/ath/ath10k/sdio.c=929=static int ath10k_sdio_mbox_read_int_status(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/sdio.c-963-\tif (ret) {\ndrivers/net/wireless/ath/ath10k/sdio.c:964:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/sdio.c-965-\t\tath10k_warn(ar, \"read int status fail, start recovery\\n\");\n--\ndrivers/net/wireless/ath/ath10k/sdio.c=2479=void ath10k_sdio_fw_crashed_dump(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/sdio.c-2513-\ndrivers/net/wireless/ath/ath10k/sdio.c:2514:\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/sdio.c-2515-}\n--\ndrivers/net/wireless/ath/ath10k/snoc.c=1371=int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type)\n--\ndrivers/net/wireless/ath/ath10k/snoc.c-1382-\t\tif (test_bit(ATH10K_SNOC_FLAG_REGISTERED, \u0026ar_snoc-\u003eflags)) {\ndrivers/net/wireless/ath/ath10k/snoc.c:1383:\t\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/snoc.c-1384-\t\t\tbreak;\n--\ndrivers/net/wireless/ath/ath10k/wmi.c=1931=int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, u32 cmd_id)\n--\ndrivers/net/wireless/ath/ath10k/wmi.c-1966-\t\t\t cmd_id);\ndrivers/net/wireless/ath/ath10k/wmi.c:1967:\t\tath10k_core_start_recovery(ar);\ndrivers/net/wireless/ath/ath10k/wmi.c-1968-\t}\n"
} |
| 11/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 28926 output: 42 thoughts: 366 Thoughts: **Investigating the Potential for Syzkaller Fuzzing of ath10k** Okay, let's see... I'm looking at `ath10k` again, specifically the `wmi.c` file and, aha, `ath10k_wmi_cmd_send` calls `ath10k_core_start_recovery(ar)`. And, hold on, I see the same thing happening in `htt_rx.c`. Plus, there's the debugfs interface with those write commands for simulating crashes and interacting with BT co-existence and peer stats. All of that is interesting, but what I'm *really* wondering is if we can get `ath10k_usb` to be probed or fuzzed with Syzkaller. Let's check Syzkaller... does it even *know* about `ath10k` or USB devices in a relevant way? Can we force a probe? Wait, first let's just make sure Syzkaller has decent USB support in general. Okay, yes, it supports USB device fuzzing with `syz_usb_connect`. Excellent! Now, the question is how to make it trigger the `ath10k_usb_probe` function. Bingo! When `syz_usb_connect` connects a device with the Vendor ID 0x13b1 and Product ID 0x0042 (according to `ath10k_usb_ids`), that should trigger `ath10k_usb_probe`! Perfect! Time to investigate what happens within `ath10k_usb_probe`. Okay, it looks like it calls: `ath10k_core_create(...)`, `ath10k_usb_create(...)`, and `ath10k_core_register(...)`. Now, I want to drill down further. Let me see what happens inside `ath10k_core_register(ar, &bus_params)` in `core.c`! This is where things should get interesting... |
| 12/2 | 2026/09/27 09:44 | tool | grepper |
0mArgs:{
"Expression": "int ath10k_core_register\\(",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/core.c=3546=static void ath10k_core_register_work(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath10k/core.c-3619-\ndrivers/net/wireless/ath/ath10k/core.c:3620:int ath10k_core_register(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/core.c-3621-\t\t\t const struct ath10k_bus_params *bus_params)\n--\ndrivers/net/wireless/ath/ath10k/core.h=1366=void ath10k_core_start_recovery(struct ath10k *ar);\ndrivers/net/wireless/ath/ath10k/core.h:1367:int ath10k_core_register(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/core.h-1368-\t\t\t const struct ath10k_bus_params *bus_params);\n"
} |
| 13/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 30058 output: 45 thoughts: 27 Thoughts: Okay, here's my interpretation of what I'm about to do and what I expect to find, summarized in the first person, assuming I'm a networking/kernel expert: **Diving into the ath10k Registration Process** Alright, time to dig into the heart of the ath10k driver. My initial instinct is to go directly to the core of the registration process. I'm choosing to examine `ath10k_core_register` and `ath10k_core_register_work`. That tells me we're looking at the fundamental initialization and perhaps some deferred operations related to device registration. I bet `ath10k_core_register` handles the initial setup - allocating resources, potentially probing the hardware, and configuring some basic data structures. I'm expecting to see a clear demarcation between the synchronous initial setup in `ath10k_core_register` and the subsequent asynchronous or deferred tasks handled by `ath10k_core_register_work`, likely involving interrupt handling, firmware loading, or other tasks that can't be done directly during the initial driver probe. I need to understand how the driver integrates with the core kernel mechanisms for registering devices and how it handles potential failures during this setup phase. I'm anticipating some critical section synchronization and error handling here as well. Let's see how well my initial hypotheses hold up. |
| 14/2 | 2026/09/27 09:44 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 3545,
"LineCount": 80
}Results: {
"Contents": "3545:\t\n3546:\tstatic void ath10k_core_register_work(struct work_struct *work)\n3547:\t{\n3548:\t\tstruct ath10k *ar = container_of(work, struct ath10k, register_work);\n3549:\t\tint status;\n3550:\t\n3551:\t\t/* peer stats are enabled by default */\n3552:\t\tset_bit(ATH10K_FLAG_PEER_STATS, \u0026ar-\u003edev_flags);\n3553:\t\n3554:\t\tstatus = ath10k_core_probe_fw(ar);\n3555:\t\tif (status) {\n3556:\t\t\tath10k_err(ar, \"could not probe fw (%d)\\n\", status);\n3557:\t\t\tgoto err;\n3558:\t\t}\n3559:\t\n3560:\t\tstatus = ath10k_mac_register(ar);\n3561:\t\tif (status) {\n3562:\t\t\tath10k_err(ar, \"could not register to mac80211 (%d)\\n\", status);\n3563:\t\t\tgoto err_release_fw;\n3564:\t\t}\n3565:\t\n3566:\t\tstatus = ath10k_coredump_register(ar);\n3567:\t\tif (status) {\n3568:\t\t\tath10k_err(ar, \"unable to register coredump\\n\");\n3569:\t\t\tgoto err_unregister_mac;\n3570:\t\t}\n3571:\t\n3572:\t\tstatus = ath10k_debug_register(ar);\n3573:\t\tif (status) {\n3574:\t\t\tath10k_err(ar, \"unable to initialize debugfs\\n\");\n3575:\t\t\tgoto err_unregister_coredump;\n3576:\t\t}\n3577:\t\n3578:\t\tstatus = ath10k_spectral_create(ar);\n3579:\t\tif (status) {\n3580:\t\t\tath10k_err(ar, \"failed to initialize spectral\\n\");\n3581:\t\t\tgoto err_debug_destroy;\n3582:\t\t}\n3583:\t\n3584:\t\tstatus = ath10k_thermal_register(ar);\n3585:\t\tif (status) {\n3586:\t\t\tath10k_err(ar, \"could not register thermal device: %d\\n\",\n3587:\t\t\t\t status);\n3588:\t\t\tgoto err_spectral_destroy;\n3589:\t\t}\n3590:\t\n3591:\t\tstatus = ath10k_leds_register(ar);\n3592:\t\tif (status) {\n3593:\t\t\tath10k_err(ar, \"could not register leds: %d\\n\",\n3594:\t\t\t\t status);\n3595:\t\t\tgoto err_thermal_unregister;\n3596:\t\t}\n3597:\t\n3598:\t\tset_bit(ATH10K_FLAG_CORE_REGISTERED, \u0026ar-\u003edev_flags);\n3599:\t\treturn;\n3600:\t\n3601:\terr_thermal_unregister:\n3602:\t\tath10k_thermal_unregister(ar);\n3603:\terr_spectral_destroy:\n3604:\t\tath10k_spectral_destroy(ar);\n3605:\terr_debug_destroy:\n3606:\t\tath10k_debug_destroy(ar);\n3607:\terr_unregister_coredump:\n3608:\t\tath10k_coredump_unregister(ar);\n3609:\terr_unregister_mac:\n3610:\t\tath10k_mac_unregister(ar);\n3611:\terr_release_fw:\n3612:\t\tath10k_core_free_firmware_files(ar);\n3613:\terr:\n3614:\t\t/* TODO: It's probably a good idea to release device from the driver\n3615:\t\t * but calling device_release_driver() here will cause a deadlock.\n3616:\t\t */\n3617:\t\treturn;\n3618:\t}\n3619:\t\n3620:\tint ath10k_core_register(struct ath10k *ar,\n3621:\t\t\t\t const struct ath10k_bus_params *bus_params)\n3622:\t{\n3623:\t\tar-\u003ebus_param = *bus_params;\n3624:\t\n"
} |
| 15/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 31621 output: 42 thoughts: 62 Thoughts: Here's my summary, as if I were thinking these thoughts: **Dissecting the Firmware Probe** Okay, hold on a second. I need to understand what's happening with this `ath10k_core_probe_fw` function. Specifically, I'm trying to figure out its role in the firmware loading process. My immediate question is, does this function actually initiate the retrieval of the firmware files themselves, using something like `request_firmware`? I need to verify that. Right, time to dig into the `ath10k_core_probe_fw` implementation and confirm this suspicion. Let's see what's really going on in there. |
| 16/2 | 2026/09/27 09:44 | tool | grepper |
0mArgs:{
"Expression": "ath10k_core_probe_fw",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/core.c=3391=EXPORT_SYMBOL(ath10k_core_stop);\n--\ndrivers/net/wireless/ath/ath10k/core.c-3397- */\ndrivers/net/wireless/ath/ath10k/core.c:3398:static int ath10k_core_probe_fw(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/core.c-3399-{\n--\ndrivers/net/wireless/ath/ath10k/core.c=3546=static void ath10k_core_register_work(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath10k/core.c-3553-\ndrivers/net/wireless/ath/ath10k/core.c:3554:\tstatus = ath10k_core_probe_fw(ar);\ndrivers/net/wireless/ath/ath10k/core.c-3555-\tif (status) {\n"
} |
| 17/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 32149 output: 45 thoughts: 16 Thoughts: Okay, let's dive into this `ath10k_core_probe_fw` function. Here's how I'm approaching it: **Dissecting `ath10k_core_probe_fw`** Alright, so the core of the problem here is figuring out how the `ath10k` driver handles loading the firmware during the probe process. It's essentially the entry point for getting the firmware up and running. I need to understand the sequence of actions, error handling, and any crucial dependencies involved in loading and verifying that firmware. I know that the `ath10k` driver deals with quite a bit of complexity around various hardware versions, different firmware images, and the overall state of the wireless chip. So, I need to focus on how the specific firmware image is selected, loaded, and initialized based on the hardware it's running on. I also need to pay close attention to any error conditions that are checked. What is deemed an unrecoverable failure versus a transient condition? What are the critical configuration parameters being passed around at this point? Does this routine handle any device-specific quirks? Are there any aspects of power management involved at this stage? I need to look for any interaction with the hardware during this process; how is it getting the firmware and how is it writing that data to the hardware? I'm expecting to see calls to functions for: * **Firmware retrieval:** Where is it getting the firmware blob from? The file system? Pre-loaded into memory? * **Hardware communication:** How does the driver interact with the hardware to initiate the firmware loading and verify that it has started? * **Error checks:** How is this function checking for firmware loading errors or hardware communication problems? I'm also going to check for any callbacks registered for further initialization and the overall state transitions during the probing stage. This helps me understand the bigger picture of the driver's initialization sequence. |
| 18/2 | 2026/09/27 09:44 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 3398,
"LineCount": 50
}Results: {
"Contents": "3398:\tstatic int ath10k_core_probe_fw(struct ath10k *ar)\n3399:\t{\n3400:\t\tstruct bmi_target_info target_info = {};\n3401:\t\tint ret = 0;\n3402:\t\n3403:\t\tret = ath10k_hif_power_up(ar, ATH10K_FIRMWARE_MODE_NORMAL);\n3404:\t\tif (ret) {\n3405:\t\t\tath10k_err(ar, \"could not power on hif bus (%d)\\n\", ret);\n3406:\t\t\treturn ret;\n3407:\t\t}\n3408:\t\n3409:\t\tswitch (ar-\u003ehif.bus) {\n3410:\t\tcase ATH10K_BUS_SDIO:\n3411:\t\t\tret = ath10k_bmi_get_target_info_sdio(ar, \u0026target_info);\n3412:\t\t\tif (ret) {\n3413:\t\t\t\tath10k_err(ar, \"could not get target info (%d)\\n\", ret);\n3414:\t\t\t\tgoto err_power_down;\n3415:\t\t\t}\n3416:\t\t\tar-\u003etarget_version = target_info.version;\n3417:\t\t\tar-\u003ehw-\u003ewiphy-\u003ehw_version = target_info.version;\n3418:\t\t\tbreak;\n3419:\t\tcase ATH10K_BUS_PCI:\n3420:\t\tcase ATH10K_BUS_AHB:\n3421:\t\tcase ATH10K_BUS_USB:\n3422:\t\t\tret = ath10k_bmi_get_target_info(ar, \u0026target_info);\n3423:\t\t\tif (ret) {\n3424:\t\t\t\tath10k_err(ar, \"could not get target info (%d)\\n\", ret);\n3425:\t\t\t\tgoto err_power_down;\n3426:\t\t\t}\n3427:\t\t\tar-\u003etarget_version = target_info.version;\n3428:\t\t\tar-\u003ehw-\u003ewiphy-\u003ehw_version = target_info.version;\n3429:\t\t\tbreak;\n3430:\t\tcase ATH10K_BUS_SNOC:\n3431:\t\t\tret = ath10k_hif_get_target_info(ar, \u0026target_info);\n3432:\t\t\tif (ret) {\n3433:\t\t\t\tath10k_err(ar, \"could not get target info (%d)\\n\", ret);\n3434:\t\t\t\tgoto err_power_down;\n3435:\t\t\t}\n3436:\t\t\tar-\u003etarget_version = target_info.version;\n3437:\t\t\tar-\u003ehw-\u003ewiphy-\u003ehw_version = target_info.version;\n3438:\t\t\tbreak;\n3439:\t\tdefault:\n3440:\t\t\tath10k_err(ar, \"incorrect hif bus type: %d\\n\", ar-\u003ehif.bus);\n3441:\t\t}\n3442:\t\n3443:\t\tret = ath10k_init_hw_params(ar);\n3444:\t\tif (ret) {\n3445:\t\t\tath10k_err(ar, \"could not get hw params (%d)\\n\", ret);\n3446:\t\t\tgoto err_power_down;\n3447:\t\t}\n"
} |
| 19/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 33495 output: 45 thoughts: 90 Thoughts: Here's my analysis of the provided code snippet: **Diving into the BMI Exchange** Okay, hold on a second. I need to understand this sequence. First, I see `ath10k_bmi_get_target_info(ar, &target_info);`. Right, this is where it's happening, the BMI exchange. I already know this means Body-Mass Index messages, but in this context, it's clearly not about weight! I have to refresh my memory... yes, BMI in the context of ath10k is for the firmware interface. So, what's happening internally? Aha! It's using USB, specifically through `ath10k_usb_bmi_exchange_msg`. This function is the key to sending those BMI messages over USB, making those crucial USB control requests. Got it. This initial step is clearly about getting target information from the device over the USB interface, using the BMI protocol as the communication backbone. This has to be the fundamental first step. Now, where does it go from there? My next step is to examine the code after `ath10k_init_hw_params`. Let's jump to the lines following that initialization, 3448 and beyond. That should reveal what comes next. |
| 20/2 | 2026/09/27 09:44 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 3448,
"LineCount": 50
}Results: {
"Contents": "3448:\t\n3449:\t\tret = ath10k_core_fetch_firmware_files(ar);\n3450:\t\tif (ret) {\n3451:\t\t\tath10k_err(ar, \"could not fetch firmware files (%d)\\n\", ret);\n3452:\t\t\tgoto err_power_down;\n3453:\t\t}\n3454:\t\n3455:\t\tBUILD_BUG_ON(sizeof(ar-\u003ehw-\u003ewiphy-\u003efw_version) !=\n3456:\t\t\t sizeof(ar-\u003enormal_mode_fw.fw_file.fw_version));\n3457:\t\tmemcpy(ar-\u003ehw-\u003ewiphy-\u003efw_version, ar-\u003enormal_mode_fw.fw_file.fw_version,\n3458:\t\t sizeof(ar-\u003ehw-\u003ewiphy-\u003efw_version));\n3459:\t\n3460:\t\tath10k_debug_print_hwfw_info(ar);\n3461:\t\n3462:\t\tif (!test_bit(ATH10K_FW_FEATURE_NON_BMI,\n3463:\t\t\t ar-\u003enormal_mode_fw.fw_file.fw_features)) {\n3464:\t\t\tret = ath10k_core_pre_cal_download(ar);\n3465:\t\t\tif (ret) {\n3466:\t\t\t\t/* pre calibration data download is not necessary\n3467:\t\t\t\t * for all the chipsets. Ignore failures and continue.\n3468:\t\t\t\t */\n3469:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_BOOT,\n3470:\t\t\t\t\t \"could not load pre cal data: %d\\n\", ret);\n3471:\t\t\t}\n3472:\t\n3473:\t\t\tret = ath10k_core_get_board_id_from_otp(ar);\n3474:\t\t\tif (ret \u0026\u0026 ret != -EOPNOTSUPP) {\n3475:\t\t\t\tath10k_err(ar, \"failed to get board id from otp: %d\\n\",\n3476:\t\t\t\t\t ret);\n3477:\t\t\t\tgoto err_free_firmware_files;\n3478:\t\t\t}\n3479:\t\n3480:\t\t\tret = ath10k_core_check_smbios(ar);\n3481:\t\t\tif (ret)\n3482:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"SMBIOS bdf variant name not set.\\n\");\n3483:\t\n3484:\t\t\tret = ath10k_core_check_dt(ar);\n3485:\t\t\tif (ret)\n3486:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"DT bdf variant name not set.\\n\");\n3487:\t\n3488:\t\t\tret = ath10k_core_fetch_board_file(ar, ATH10K_BD_IE_BOARD);\n3489:\t\t\tif (ret) {\n3490:\t\t\t\tath10k_err(ar, \"failed to fetch board file: %d\\n\", ret);\n3491:\t\t\t\tgoto err_free_firmware_files;\n3492:\t\t\t}\n3493:\t\n3494:\t\t\tath10k_debug_print_board_info(ar);\n3495:\t\t}\n3496:\t\n3497:\t\tdevice_get_mac_address(ar-\u003edev, ar-\u003emac_addr);\n"
} |
| 21/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 34800 output: 44 thoughts: 4067 Thoughts: **Fuzzing Analysis of ath10k USB Driver in Syzkaller** Okay, so I'm diving into this ath10k driver code to figure out if it's worth fuzzing in syzkaller. The initial concern is the dependency on firmware files, which might be missing in a syzkaller environment. However, since the prompt highlights drivers accessible via virtual buses, my focus shifts to USB. QEMU doesn't emulate the ath10k hardware directly (PCIe, SDIO, SNOC), but it *does* support USB raw gadget, which is key. The prompt guides me to consider when to return `WorthFuzzing=false` and `WorthFuzzing=true`. The critical point is whether modified code touches "reachable executable code" accessible via virtual buses. The `ath10k_usb` driver's `usb_driver` registration, specifically the Linksys WUSB6100M device ID, confirms USB gadget accessibility. Syzkaller, with USB Raw Gadget, can connect any USB device, meaning my changes *could* be reached. The goal is to see if any code in core, mac, pci, or snoc can be reached when a USB device is attached. Now, looking at `ath10k_usb_probe`, it calls `ath10k_core_create`, and within `ath10k_core_create`, I see `INIT_DELAYED_WORK(&ar->recovery_check_work, ath10k_core_recovery_check_work);`. This is where it gets interesting, as it seems to trigger recovery checks. The patch I'm examining modifies `ath10k_core_recovery_check_work`. The most notable additions are related to the `ATH10K_STATE_WEDGED` state, setting the `ATH10K_FLAG_CRASH_FLUSH` flag, and also modifications to the recovery logic. Specifically, the patch introduces logic to wake up all waiters, set up an enter-wedged function that essentially hard-blocks the driver, and introduces a failure count to determine when to shut down the driver entirely. The patch introduces a `recovery_start_jiffies` variable, which is used along with a defined timeout, to determine if the driver should enter a "wedged" state, and sets an initial count of consecutive failures. Also, `ath10k_core_enter_wedged`, a new function, sets the driver to a hard-blocked state. Furthermore, a new `ath10k_core_wake_all_waiters` function wakes up various wait queues to ensure a clean shutdown. It seems like the critical function is `ath10k_core_start_recovery`. The question is, does `ath10k_usb` ever call `ath10k_core_start_recovery`? Based on my grep, this function is called in several places *reachable* without physical hardware! The places are in the debug interface, including a crash simulation, wmi and htt_rx related handling. Importantly, the PCI, SDIO, and SNOC bus drivers *also* call this. This is important since I am focusing on USB. I need to make sure that ath10k can even probe as a USB device, or otherwise USB can attach and trigger code paths. Checking `ath10k_usb_probe` and `ath10k_usb_create`, if the USB device matches an entry, and if `ath10k_usb_create` works correctly, I can proceed. Therefore, because `ath10k_core_start_recovery` is callable from a few code paths, reachable from userspace, and that USB Gadget should allow it to probe (via PID/VID), this patch is definitely worth fuzzing. |
| 22/2 | 2026/09/27 09:44 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/usb.c",
"FirstLine": 932,
"LineCount": 40
}Results: {
"Contents": " 932:\t\n 933:\tstatic int ath10k_usb_create(struct ath10k *ar,\n 934:\t\t\t\t struct usb_interface *interface)\n 935:\t{\n 936:\t\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\n 937:\t\tstruct usb_device *dev = interface_to_usbdev(interface);\n 938:\t\tstruct ath10k_usb_pipe *pipe;\n 939:\t\tint ret, i;\n 940:\t\n 941:\t\tusb_set_intfdata(interface, ar_usb);\n 942:\t\tspin_lock_init(\u0026ar_usb-\u003ecs_lock);\n 943:\t\tar_usb-\u003eudev = dev;\n 944:\t\tar_usb-\u003einterface = interface;\n 945:\t\n 946:\t\tfor (i = 0; i \u003c ATH10K_USB_PIPE_MAX; i++) {\n 947:\t\t\tpipe = \u0026ar_usb-\u003epipes[i];\n 948:\t\t\tINIT_WORK(\u0026pipe-\u003eio_complete_work,\n 949:\t\t\t\t ath10k_usb_io_comp_work);\n 950:\t\t\tskb_queue_head_init(\u0026pipe-\u003eio_comp_queue);\n 951:\t\t}\n 952:\t\n 953:\t\tar_usb-\u003ediag_cmd_buffer = kzalloc(ATH10K_USB_MAX_DIAG_CMD, GFP_KERNEL);\n 954:\t\tif (!ar_usb-\u003ediag_cmd_buffer) {\n 955:\t\t\tret = -ENOMEM;\n 956:\t\t\tgoto err;\n 957:\t\t}\n 958:\t\n 959:\t\tar_usb-\u003ediag_resp_buffer = kzalloc(ATH10K_USB_MAX_DIAG_RESP,\n 960:\t\t\t\t\t\t GFP_KERNEL);\n 961:\t\tif (!ar_usb-\u003ediag_resp_buffer) {\n 962:\t\t\tret = -ENOMEM;\n 963:\t\t\tgoto err;\n 964:\t\t}\n 965:\t\n 966:\t\tret = ath10k_usb_setup_pipe_resources(ar, interface);\n 967:\t\tif (ret)\n 968:\t\t\tgoto err;\n 969:\t\n 970:\t\treturn 0;\n 971:\t\n"
} |
| 23/2 | 2026/09/27 09:44 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 40368 output: 44 thoughts: 64 Thoughts: Here's my summary, as though I'm thinking through this process: **Diving into the ath10k USB Initialization** Alright, let's dissect this `ath10k_usb_create` function. My initial impression is that it's the core of bringing up the USB-connected ath10k device. I see it starts by setting up the queues and buffers, which is standard procedure for any USB driver to handle data flow. Now, the interesting part is the call to `ath10k_usb_setup_pipe_resources` – that's where the rubber meets the road, as far as USB configuration is concerned. This function is critical because it's responsible for managing the USB pipes. I'm especially interested in figuring out what specific expectations it has for the USB endpoints. We know this driver will be dealing with a lot of data, so I'll want to see how this function is setting up bulk, interrupt, and possibly control transfers, and what kind of USB bandwidth it's requesting. Are they going to try to leverage isochronous transfers? I need to understand this part to optimize the throughput and latency for the device. I need to understand what this function expects to come out of the endpoints, and what its limitations are. |
| 24/2 | 2026/09/27 09:45 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/usb.c",
"FirstLine": 823,
"LineCount": 60
}Results: {
"Contents": " 823:\tstatic int ath10k_usb_setup_pipe_resources(struct ath10k *ar,\n 824:\t\t\t\t\t\t struct usb_interface *interface)\n 825:\t{\n 826:\t\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\n 827:\t\tstruct usb_host_interface *iface_desc = interface-\u003ecur_altsetting;\n 828:\t\tstruct usb_endpoint_descriptor *endpoint;\n 829:\t\tstruct ath10k_usb_pipe *pipe;\n 830:\t\tint ret, i, urbcount;\n 831:\t\tu8 pipe_num;\n 832:\t\n 833:\t\tath10k_dbg(ar, ATH10K_DBG_USB, \"usb setting up pipes using interface\\n\");\n 834:\t\n 835:\t\t/* walk descriptors and setup pipes */\n 836:\t\tfor (i = 0; i \u003c iface_desc-\u003edesc.bNumEndpoints; ++i) {\n 837:\t\t\tendpoint = \u0026iface_desc-\u003eendpoint[i].desc;\n 838:\t\n 839:\t\t\tif (ATH10K_USB_IS_BULK_EP(endpoint-\u003ebmAttributes)) {\n 840:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_USB,\n 841:\t\t\t\t\t \"usb %s bulk ep 0x%2.2x maxpktsz %d\\n\",\n 842:\t\t\t\t\t ATH10K_USB_IS_DIR_IN\n 843:\t\t\t\t\t (endpoint-\u003ebEndpointAddress) ?\n 844:\t\t\t\t\t \"rx\" : \"tx\", endpoint-\u003ebEndpointAddress,\n 845:\t\t\t\t\t le16_to_cpu(endpoint-\u003ewMaxPacketSize));\n 846:\t\t\t} else if (ATH10K_USB_IS_INT_EP(endpoint-\u003ebmAttributes)) {\n 847:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_USB,\n 848:\t\t\t\t\t \"usb %s int ep 0x%2.2x maxpktsz %d interval %d\\n\",\n 849:\t\t\t\t\t ATH10K_USB_IS_DIR_IN\n 850:\t\t\t\t\t (endpoint-\u003ebEndpointAddress) ?\n 851:\t\t\t\t\t \"rx\" : \"tx\", endpoint-\u003ebEndpointAddress,\n 852:\t\t\t\t\t le16_to_cpu(endpoint-\u003ewMaxPacketSize),\n 853:\t\t\t\t\t endpoint-\u003ebInterval);\n 854:\t\t\t} else if (ATH10K_USB_IS_ISOC_EP(endpoint-\u003ebmAttributes)) {\n 855:\t\t\t\t/* TODO for ISO */\n 856:\t\t\t\tath10k_dbg(ar, ATH10K_DBG_USB,\n 857:\t\t\t\t\t \"usb %s isoc ep 0x%2.2x maxpktsz %d interval %d\\n\",\n 858:\t\t\t\t\t ATH10K_USB_IS_DIR_IN\n 859:\t\t\t\t\t (endpoint-\u003ebEndpointAddress) ?\n 860:\t\t\t\t\t \"rx\" : \"tx\", endpoint-\u003ebEndpointAddress,\n 861:\t\t\t\t\t le16_to_cpu(endpoint-\u003ewMaxPacketSize),\n 862:\t\t\t\t\t endpoint-\u003ebInterval);\n 863:\t\t\t}\n 864:\t\n 865:\t\t\t/* Ignore broken descriptors. */\n 866:\t\t\tif (usb_endpoint_maxp(endpoint) == 0)\n 867:\t\t\t\tcontinue;\n 868:\t\n 869:\t\t\turbcount = 0;\n 870:\t\n 871:\t\t\tpipe_num =\n 872:\t\t\t ath10k_usb_get_logical_pipe_num(endpoint-\u003ebEndpointAddress,\n 873:\t\t\t\t\t\t\t \u0026urbcount);\n 874:\t\t\tif (pipe_num == ATH10K_USB_PIPE_INVALID)\n 875:\t\t\t\tcontinue;\n 876:\t\n 877:\t\t\tpipe = \u0026ar_usb-\u003epipes[pipe_num];\n 878:\t\t\tif (pipe-\u003ear_usb)\n 879:\t\t\t\t/* hmmm..pipe was already setup */\n 880:\t\t\t\tcontinue;\n 881:\t\n 882:\t\t\tpipe-\u003ear_usb = ar_usb;\n"
} |
| 25/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 41855 output: 42 thoughts: 189 Thoughts: Here's my analysis of the provided code snippet, thinking out loud as if I were the one examining it: **Dissecting the ath10k USB Disconnect Sequence** Okay, here we go, let's take a look at the `ath10k_usb_disconnect` function. It's triggered, it seems, when syzkaller unplugs or disconnects the USB device associated with the ath10k wireless driver. The first thing I see is the debug message: `ath10k_dbg(ar, ATH10K_DBG_USB, "usb disconnected\n")`. Good, some helpful logging, at least. Now, the core of the function seems to involve unregistering and destroying resources related to the device. The first function call, `ath10k_core_unregister(ar_usb->ar)`, catches my eye. That's the critical part, I need to understand that. I need to know what that function is doing to determine the effect of device removal. The other calls (`netif_napi_del`, `ath10k_usb_destroy`, and `ath10k_core_destroy`) seem pretty standard cleanup steps, but the significance of those relies on knowing what that first call, `ath10k_core_unregister` actually *does*. I'm going to have to dive into its definition next. |
| 26/2 | 2026/09/27 09:45 | tool | grepper |
0mArgs:{
"Expression": "void ath10k_core_unregister\\(",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/core.c=3629=EXPORT_SYMBOL(ath10k_core_register);\ndrivers/net/wireless/ath/ath10k/core.c-3630-\ndrivers/net/wireless/ath/ath10k/core.c:3631:void ath10k_core_unregister(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/core.c-3632-{\n--\ndrivers/net/wireless/ath/ath10k/core.h=1367=int ath10k_core_register(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/core.h-1368-\t\t\t const struct ath10k_bus_params *bus_params);\ndrivers/net/wireless/ath/ath10k/core.h:1369:void ath10k_core_unregister(struct ath10k *ar);\ndrivers/net/wireless/ath/ath10k/core.h-1370-int ath10k_core_fetch_board_file(struct ath10k *ar, int bd_ie_type);\n"
} |
| 27/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 42697 output: 45 thoughts: 25 Thoughts: Okay, here's my interpretation of those functions, keeping in mind my expertise: **Dissecting the Unregistration and Destruction of the ath10k Core** Alright, let's dive into `ath10k_core_unregister` and `ath10k_core_destroy`. I need to get a clear picture of how this core module is gracefully removed and completely taken down. First, `ath10k_core_unregister`. My expectation is that this function will handle the initial cleanup phase. It'll be the point where the device is effectively "disconnected" from the system's management structure. I'm looking for things like disabling interrupts, releasing any allocated resources that are still actively held (like DMA channels, if applicable), and possibly signaling the hardware to enter a low-power or reset state. It has to ensure a clean state so that nothing is left dangling. I'll be looking to see if any locks are taken and released, to ensure concurrency is properly handled during this crucial operation. It's the point of no return for this core - anything missed here means potential instability down the road. Then comes `ath10k_core_destroy`. This should be the final act, the absolute removal of all traces of the core. It’s the final nail in the coffin. Here, I'm expecting to see the deallocation of all the remaining memory that was associated with the core - any private data structures, control blocks, etc. - anything that was allocated during initialization and operation, must be cleaned up now. This is where we prevent any lingering memory leaks. If there was a reference count, this is when we expect it to be decremented to zero. This function should also ensure that no further interactions are possible with the hardware or the software representation of the device. It has to be complete. Any failure here would indicate a serious bug in the module's lifetime management. I'll be paying close attention to the order of operations between the two, to ensure that resources are released in the correct sequence. There's a subtle but important difference here: `unregister` is about detaching the device from the system, while `destroy` is about completely freeing up the resources. And they both need to be handled correctly to ensure the driver is completely safe, and avoids problems at shutdown and unload. |
| 28/2 | 2026/09/27 09:45 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 3631,
"LineCount": 80
}Results: {
"Contents": "3631:\tvoid ath10k_core_unregister(struct ath10k *ar)\n3632:\t{\n3633:\t\tcancel_work_sync(\u0026ar-\u003eregister_work);\n3634:\t\n3635:\t\tif (!test_bit(ATH10K_FLAG_CORE_REGISTERED, \u0026ar-\u003edev_flags))\n3636:\t\t\treturn;\n3637:\t\n3638:\t\tath10k_leds_unregister(ar);\n3639:\t\n3640:\t\tath10k_thermal_unregister(ar);\n3641:\t\t/* Stop spectral before unregistering from mac80211 to remove the\n3642:\t\t * relayfs debugfs file cleanly. Otherwise the parent debugfs tree\n3643:\t\t * would be already be free'd recursively, leading to a double free.\n3644:\t\t */\n3645:\t\tath10k_spectral_destroy(ar);\n3646:\t\n3647:\t\t/* We must unregister from mac80211 before we stop HTC and HIF.\n3648:\t\t * Otherwise we will fail to submit commands to FW and mac80211 will be\n3649:\t\t * unhappy about callback failures.\n3650:\t\t */\n3651:\t\tath10k_mac_unregister(ar);\n3652:\t\n3653:\t\tath10k_testmode_destroy(ar);\n3654:\t\n3655:\t\tath10k_core_free_firmware_files(ar);\n3656:\t\tath10k_core_free_board_files(ar);\n3657:\t\n3658:\t\tath10k_debug_unregister(ar);\n3659:\t}\n3660:\tEXPORT_SYMBOL(ath10k_core_unregister);\n3661:\t\n3662:\tstruct ath10k *ath10k_core_create(size_t priv_size, struct device *dev,\n3663:\t\t\t\t\t enum ath10k_bus bus,\n3664:\t\t\t\t\t enum ath10k_hw_rev hw_rev,\n3665:\t\t\t\t\t const struct ath10k_hif_ops *hif_ops)\n3666:\t{\n3667:\t\tstruct ath10k *ar;\n3668:\t\tint ret;\n3669:\t\n3670:\t\tar = ath10k_mac_create(priv_size);\n3671:\t\tif (!ar)\n3672:\t\t\treturn NULL;\n3673:\t\n3674:\t\tar-\u003eath_common.priv = ar;\n3675:\t\tar-\u003eath_common.hw = ar-\u003ehw;\n3676:\t\tar-\u003edev = dev;\n3677:\t\tar-\u003ehw_rev = hw_rev;\n3678:\t\tar-\u003ehif.ops = hif_ops;\n3679:\t\tar-\u003ehif.bus = bus;\n3680:\t\n3681:\t\tswitch (hw_rev) {\n3682:\t\tcase ATH10K_HW_QCA988X:\n3683:\t\tcase ATH10K_HW_QCA9887:\n3684:\t\t\tar-\u003eregs = \u0026qca988x_regs;\n3685:\t\t\tar-\u003ehw_ce_regs = \u0026qcax_ce_regs;\n3686:\t\t\tar-\u003ehw_values = \u0026qca988x_values;\n3687:\t\t\tbreak;\n3688:\t\tcase ATH10K_HW_QCA6174:\n3689:\t\tcase ATH10K_HW_QCA9377:\n3690:\t\t\tar-\u003eregs = \u0026qca6174_regs;\n3691:\t\t\tar-\u003ehw_ce_regs = \u0026qcax_ce_regs;\n3692:\t\t\tar-\u003ehw_values = \u0026qca6174_values;\n3693:\t\t\tbreak;\n3694:\t\tcase ATH10K_HW_QCA99X0:\n3695:\t\tcase ATH10K_HW_QCA9984:\n3696:\t\t\tar-\u003eregs = \u0026qca99x0_regs;\n3697:\t\t\tar-\u003ehw_ce_regs = \u0026qcax_ce_regs;\n3698:\t\t\tar-\u003ehw_values = \u0026qca99x0_values;\n3699:\t\t\tbreak;\n3700:\t\tcase ATH10K_HW_QCA9888:\n3701:\t\t\tar-\u003eregs = \u0026qca99x0_regs;\n3702:\t\t\tar-\u003ehw_ce_regs = \u0026qcax_ce_regs;\n3703:\t\t\tar-\u003ehw_values = \u0026qca9888_values;\n3704:\t\t\tbreak;\n3705:\t\tcase ATH10K_HW_QCA4019:\n3706:\t\t\tar-\u003eregs = \u0026qca4019_regs;\n3707:\t\t\tar-\u003ehw_ce_regs = \u0026qcax_ce_regs;\n3708:\t\t\tar-\u003ehw_values = \u0026qca4019_values;\n3709:\t\t\tbreak;\n3710:\t\tcase ATH10K_HW_WCN3990:\n"
} |
| 29/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 44635 output: 38 thoughts: 30 Thoughts: Okay, here's my take on those thoughts, framed as an expert's internal monologue: **Investigating `ath10k_mac_unregister`'s Interactions** Alright, I'm digging deeper into the `ath10k` driver's unregistration process. I need to understand the complete sequence of events, especially the interplay between different functions. My immediate concern is, does `ath10k_mac_unregister` ultimately call `ath10k_stop`? That's a crucial point, right? Understanding that dependency is essential for ensuring a clean shutdown and avoiding any resource leaks or dangling references. This is key for understanding the power-down sequence, and it's something I need to verify to ensure proper system stability on shutdown or when the driver is unloaded. I need to check the code directly, but this is the question I'm going to resolve right now. |
| 30/2 | 2026/09/27 09:45 | tool | grepper |
0mArgs:{
"Expression": "ath10k_stop",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/mac.c=1389=static int ath10k_start_cac(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/mac.c-1409-\ndrivers/net/wireless/ath/ath10k/mac.c:1410:static int ath10k_stop_cac(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/mac.c-1411-{\n--\ndrivers/net/wireless/ath/ath10k/mac.c=1447=static void ath10k_recalc_radar_detection(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/mac.c-1452-\ndrivers/net/wireless/ath/ath10k/mac.c:1453:\tath10k_stop_cac(ar);\ndrivers/net/wireless/ath/ath10k/mac.c-1454-\n--\ndrivers/net/wireless/ath/ath10k/mac.c=3561=static void ath10k_reg_notifier(struct wiphy *wiphy,\n--\ndrivers/net/wireless/ath/ath10k/mac.c-3589-\ndrivers/net/wireless/ath/ath10k/mac.c:3590:static void ath10k_stop_radar_confirmation(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/mac.c-3591-{\n--\ndrivers/net/wireless/ath/ath10k/mac.c=4802=void ath10k_halt(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/mac.c-4820-\tath10k_peer_cleanup_all(ar);\ndrivers/net/wireless/ath/ath10k/mac.c:4821:\tath10k_stop_radar_confirmation(ar);\ndrivers/net/wireless/ath/ath10k/mac.c-4822-\tath10k_core_stop(ar);\n--\ndrivers/net/wireless/ath/ath10k/mac.c=5180=static int ath10k_start(struct ieee80211_hw *hw)\n--\ndrivers/net/wireless/ath/ath10k/mac.c-5396-\ndrivers/net/wireless/ath/ath10k/mac.c:5397:static void ath10k_stop(struct ieee80211_hw *hw, bool suspend)\ndrivers/net/wireless/ath/ath10k/mac.c-5398-{\n--\ndrivers/net/wireless/ath/ath10k/mac.c=9474=static const struct ieee80211_ops ath10k_ops = {\n--\ndrivers/net/wireless/ath/ath10k/mac.c-9477-\t.start\t\t\t\t= ath10k_start,\ndrivers/net/wireless/ath/ath10k/mac.c:9478:\t.stop\t\t\t\t= ath10k_stop,\ndrivers/net/wireless/ath/ath10k/mac.c-9479-\t.config\t\t\t\t= ath10k_config,\n"
} |
| 31/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 45749 output: 41 thoughts: 1133 Thoughts: **Analyzing the ath10k Driver in a Syzkaller Context** Okay, so I'm looking at `ath10k_ops.stop`, which clearly shows `ath10k_stop` is an `ieee80211_ops` callback, and `ath10k_ops` is registered with mac80211. My initial thought is to figure out if the USB version of the driver can be registered without real hardware or firmware. My attention is immediately drawn to `ath10k_core_register_work`. That calls `ath10k_core_probe_fw`, and that's where things get interesting. It goes through a series of steps: powering up the HIF, getting target info, initializing hardware parameters, and then fetching firmware files using `request_firmware`. The critical question here is whether the Syzkaller VM environment, specifically the QEMU images, actually have those ath10k firmware files. I know from experience that they generally don't, unless they are specifically included or simulated. So, the `request_firmware` call will likely fail in the syzkaller context. If it fails, what actually runs? From what I can tell, the code flow goes through `ath10k_core_create`, `ath10k_usb_create`, `ath10k_core_register`, `ath10k_core_register_work`, `ath10k_core_probe_fw`, and then, upon a disconnect, goes to `ath10k_usb_disconnect` which then moves through `ath10k_core_unregister` and calls to `cancel_work_sync(&ar->register_work)`, and so on. Now, let's turn to the specific functions modified in this patch. I see: 1. `ath10k_core_wake_all_waiters(ar)` 2. `ath10k_core_enter_wedged(ar)` 3. `ath10k_core_recovery_check_work(work)` 4. `ath10k_core_start_recovery(ar)` 5. `ath10k_core_restart(work)` 6. `ath10k_core_create`. Importantly, the initialization of `ar->recovery_check_work` has changed from `INIT_WORK` to `INIT_DELAYED_WORK`. 7. `ath10k_stop` in `mac.c`, which calls `cancel_delayed_work_sync(&ar->recovery_check_work);`. 8. `ath10k_reconfig_complete` in `mac.c`, which calls `cancel_delayed_work(&ar->recovery_check_work);`. 9. PCI functions in `ath10k/pci.c`. 10. SNOC functions in `ath10k/snoc.c`. A key question emerges: is ath10k fundamentally a physical hardware driver, thus inherently difficult to exercise effectively in Syzkaller? I have to consider the constraints defined for structurally unreachable hardware and unreachable execution paths in the syzkaller instructions. The instructions list drivers that require physical ASICs, PCIe cards, or that only execute during PCI hot-unplug. However, the documentation also explicitly lists "Reachable Drivers and Protocols", including drivers accessible via virtual buses. Now I'm focused: ath10k has `CONFIG_ATH10K_USB`! This suggests that there might be a viable path through the USB version. Let's check `drivers/net/wireless/ath/ath10k/Kconfig` to confirm if it is a USB or PCIe driver to be certain! |
| 32/2 | 2026/09/27 09:45 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/Kconfig",
"FirstLine": 1,
"LineCount": 60
}Results: {
"Contents": " 1:\t# SPDX-License-Identifier: ISC\n 2:\tconfig ATH10K\n 3:\t\ttristate \"Atheros 802.11ac wireless cards support\"\n 4:\t\tdepends on MAC80211 \u0026\u0026 HAS_DMA\n 5:\t\tselect ATH_COMMON\n 6:\t\tselect CRC32\n 7:\t\tselect WANT_DEV_COREDUMP\n 8:\t\tselect ATH10K_CE\n 9:\t\thelp\n 10:\t\t This module adds support for wireless adapters based on\n 11:\t\t Atheros IEEE 802.11ac family of chipsets.\n 12:\t\n 13:\t\t If you choose to build a module, it'll be called ath10k.\n 14:\t\n 15:\tconfig ATH10K_CE\n 16:\t\tbool\n 17:\t\n 18:\tconfig ATH10K_PCI\n 19:\t\ttristate \"Atheros ath10k PCI support\"\n 20:\t\tdepends on ATH10K \u0026\u0026 PCI\n 21:\t\thelp\n 22:\t\t This module adds support for PCIE bus\n 23:\t\n 24:\tconfig ATH10K_AHB\n 25:\t\tbool \"Atheros ath10k AHB support\"\n 26:\t\tdepends on ATH10K_PCI \u0026\u0026 OF \u0026\u0026 RESET_CONTROLLER\n 27:\t\thelp\n 28:\t\t This module adds support for AHB bus\n 29:\t\n 30:\tconfig ATH10K_SDIO\n 31:\t\ttristate \"Atheros ath10k SDIO support\"\n 32:\t\tdepends on ATH10K \u0026\u0026 MMC\n 33:\t\thelp\n 34:\t\t This module adds support for SDIO/MMC bus.\n 35:\t\n 36:\tconfig ATH10K_USB\n 37:\t\ttristate \"Atheros ath10k USB support (EXPERIMENTAL)\"\n 38:\t\tdepends on ATH10K \u0026\u0026 USB\n 39:\t\thelp\n 40:\t\t This module adds experimental support for USB bus. Currently\n 41:\t\t work in progress and will not fully work.\n 42:\t\n 43:\tconfig ATH10K_SNOC\n 44:\t\ttristate \"Qualcomm ath10k SNOC support\"\n 45:\t\tdepends on ATH10K\n 46:\t\tdepends on ARCH_QCOM || COMPILE_TEST\n 47:\t\tdepends on QCOM_SMEM\n 48:\t\tdepends on QCOM_RPROC_COMMON || QCOM_RPROC_COMMON=n\n 49:\t\tselect POWER_SEQUENCING\n 50:\t\tselect QCOM_SCM\n 51:\t\tselect QCOM_QMI_HELPERS\n 52:\t\thelp\n 53:\t\t This module adds support for integrated WCN3990 chip connected\n 54:\t\t to system NOC(SNOC).\n 55:\t\n 56:\tconfig ATH10K_DEBUG\n 57:\t\tbool \"Atheros ath10k debugging\"\n 58:\t\tdepends on ATH10K\n 59:\t\thelp\n 60:\t\t Enables debug support\n"
} |
| 33/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 48546 output: 37 thoughts: 144 Thoughts: **Investigating USB and ath10k Recovery** Okay, so I'm looking at this `ATH10K_USB` option, specifically the note about it being experimental. My immediate thought is, can a USB emulation somehow trigger or interact with `ath10k_usb`? I need to understand if the USB layer could inadvertently lead to unexpected behavior in recovery. The next question: Does the USB-specific code in `ath10k_usb` even *use* the recovery mechanisms? Does `ATH10K_USB` result in any modified recovery code being executed? Alright, let's dive into the code. I need to examine `ath10k_usb.c` to understand the flow. Specifically, I have to figure out if `ath10k_core_start_recovery` is ever called from within `usb.c` or any USB-related path. That's the critical piece. I will start by searching for instances of the word "recovery" directly within `usb.c` to see how it's handled. |
| 34/2 | 2026/09/27 09:45 | tool | grepper |
0mError:no matches Args: {
"Expression": "recovery",
"PathPrefix": "drivers/net/wireless/ath/ath10k/usb.c"
}Results: {
"error": "no matches"
} |
| 35/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 48969 output: 46 thoughts: 1069 Thoughts: **Analyzing the Ath10k Firmware Recovery Path** Okay, so I'm digging into this `ath10k` driver, specifically the recovery mechanism. The initial assumption was that `usb.c` directly triggers recovery, but that's incorrect. I need to understand the full call chain. My primary target is `ath10k_core_start_recovery`. First, I need to know where it *is* called. Scanning through the codebase, I find a list of callers. This points to `debug.c` (debugfs interface which is potentially exploitable by a fuzzer), `htt_rx.c`, `pci.c`, `sdio.c`, `snoc.c`, and `wmi.c`. This is quite a diverse set of modules, from handling incoming traffic to board support to firmware interface calls. Now, I'm thinking about *when* debugfs gets registered. I found that debugfs is registered inside `ath10k_core_register_work`, but only after `ath10k_core_probe_fw(ar)` succeeds. Okay, this is key. Can `ath10k_core_probe_fw` succeed *without* the hardware? Let's trace it. It's a two-step process: `ath10k_hif_power_up(ar, ATH10K_FIRMWARE_MODE_NORMAL)` and then `ath10k_bmi_get_target_info(ar, &target_info)`. Let's look at `ath10k_bmi_get_target_info`. It boils down to sending a BMI command to the firmware and receiving a response. Specifically, it involves the function `ath10k_hif_exchange_bmi_msg`. If this is running over USB, it calls `ath10k_usb_bmi_exchange_msg`. The important point here is that `ath10k_usb_bmi_exchange_msg` sends USB control messages. So a malicious USB device (a USB fuzzer) could provide these bytes! If this command succeeds, then probe will succeed! However, `ath10k_core_probe_fw` doesn't end there: `ath10k_init_hw_params(ar)` and `ath10k_core_fetch_firmware_files(ar)` follow. I need to understand what `ath10k_core_fetch_firmware_files(ar)` does. I need to track this down. |
| 36/2 | 2026/09/27 09:45 | tool | grepper |
0mArgs:{
"Expression": "int ath10k_core_fetch_firmware_files",
"PathPrefix": "drivers/net/wireless/ath/ath10k"
}Results: {
"Output": "drivers/net/wireless/ath/ath10k/core.c=2187=static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name,\n--\ndrivers/net/wireless/ath/ath10k/core.c-2205-\ndrivers/net/wireless/ath/ath10k/core.c:2206:static int ath10k_core_fetch_firmware_files(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/core.c-2207-{\n"
} |
| 37/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 50792 output: 45 thoughts: 19 Thoughts: Okay, here's my interpretation of what's going on, thinking through `ath10k_core_fetch_firmware_files`: **Analyzing Firmware Fetching in ath10k** Right, let's dive into this `ath10k_core_fetch_firmware_files` function. From the name, I'm already expecting it to be responsible for acquiring the necessary firmware images for the ath10k wireless driver. Thinking about the overall process, it has to handle a few key aspects: locating the right files, handling versioning and compatibility, perhaps considering different hardware revisions, and making sure the files are accessible to the hardware. So, I imagine the first thing it does is figure out *which* firmware files it actually needs. Is this based on the detected hardware, the configured operating mode, the requested features? There's likely some device ID or configuration information being consulted here, some kind of lookup table, or maybe even a more sophisticated probing mechanism. The driver architecture probably has a defined set of firmware file names or paths, and this function is responsible for determining the specific instance to use. Then comes the actual fetching. Is it directly reading the files from the filesystem? If so, what are the security implications? Are we talking about a simple file system access, or something more sophisticated like a firmware loading mechanism? Are there options for loading from different sources? I’d expect some error handling, too: what happens if the files are missing, corrupted, or the access fails? There should be some kind of robust error reporting and recovery. Also, I'm curious about versioning. Does this function check the firmware version against the driver's expected versions? Is there a compatibility check? If the firmware is too old or too new, what actions are taken? Is there some kind of negotiation going on between the driver and the firmware? There's likely an `ath10k_fw_version` structure or something similar that holds this information. Finally, I'll be looking for how it handles different hardware revisions or variants. Does the function use different firmware file names for different hardware? How does it differentiate these files if they have similar names but are specific to a hardware variant? I bet the function uses a device identifier to determine which specific image is required. Overall, I'm expecting this function to be a critical piece of the ath10k initialization process, and I'll be looking carefully at how it balances flexibility, reliability, and security in its implementation. |
| 38/2 | 2026/09/27 09:45 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 2206,
"LineCount": 40
}Results: {
"Contents": "2206:\tstatic int ath10k_core_fetch_firmware_files(struct ath10k *ar)\n2207:\t{\n2208:\t\tint ret, i;\n2209:\t\tchar fw_name[100];\n2210:\t\n2211:\t\t/* calibration file is optional, don't check for any errors */\n2212:\t\tath10k_fetch_cal_file(ar);\n2213:\t\n2214:\t\tfor (i = ATH10K_FW_API_MAX; i \u003e= ATH10K_FW_API_MIN; i--) {\n2215:\t\t\tar-\u003efw_api = i;\n2216:\t\t\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"trying fw api %d\\n\",\n2217:\t\t\t\t ar-\u003efw_api);\n2218:\t\n2219:\t\t\tath10k_core_get_fw_name(ar, fw_name, sizeof(fw_name), ar-\u003efw_api);\n2220:\t\t\tret = ath10k_core_fetch_firmware_api_n(ar, fw_name,\n2221:\t\t\t\t\t\t\t \u0026ar-\u003enormal_mode_fw.fw_file);\n2222:\t\t\tif (!ret)\n2223:\t\t\t\tgoto success;\n2224:\t\t}\n2225:\t\n2226:\t\t/* we end up here if we couldn't fetch any firmware */\n2227:\t\n2228:\t\tath10k_err(ar, \"Failed to find firmware-N.bin (N between %d and %d) from %s: %d\",\n2229:\t\t\t ATH10K_FW_API_MIN, ATH10K_FW_API_MAX, ar-\u003ehw_params.fw.dir,\n2230:\t\t\t ret);\n2231:\t\n2232:\t\treturn ret;\n2233:\t\n2234:\tsuccess:\n2235:\t\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"using fw api %d\\n\", ar-\u003efw_api);\n2236:\t\n2237:\t\treturn 0;\n2238:\t}\n2239:\t\n2240:\tstatic int ath10k_core_pre_cal_download(struct ath10k *ar)\n2241:\t{\n2242:\t\tint ret;\n2243:\t\n2244:\t\tret = ath10k_download_cal_nvmem(ar, \"pre-calibration\");\n2245:\t\tif (ret == 0) {\n"
} |
| 39/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 52072 output: 45 thoughts: 3180 Thoughts: **My Analysis of the `ath10k` Patch for Fuzzing Eligibility** Okay, so I'm looking at this patch and the question is whether it's worth fuzzing. I'm seeing it calls `request_firmware` and, importantly, the code is trying to handle situations where the hardware is unresponsive or crashes. The patch seems to be specifically fixing the recovery flow in `ath10k` when the hardware crashes or becomes unresponsive. It looks like it's touching code related to restarting, handling timeouts, and potentially wedged states within the driver. The core question is whether `ath10k` falls under "structurally unreachable hardware". The triage guidelines say *not* to fuzz code for things like "Vendor-specific PCIe switches, SmartNICs, or GPU drivers... requiring physical ASIC/PCIe cards not emulated in standard QEMU". Now, I know `ath10k` is a driver for Qualcomm Atheros wireless cards. It's not something like a standard Ethernet device. Standard QEMU doesn't emulate the hardware of the Qualcomm Atheros QCA988x, QCA6174, QCA9984, etc. wireless chips that this driver supports. QEMU uses `mac80211_hwsim` for software-simulated wireless, which is totally different. The driver is mainly used for PCI/PCIe cards, and SNOC (Snapdragon SoC) devices and SDIO cards. Therefore, in the default configuration used for fuzzing, which runs in a QEMU VM, that hardware is not present. There is `ath10k_usb` but, reading the comments and code, it seems the USB support is "experimental" and incomplete. Also, the patch's changes clearly involve `ath10k/pci.c`, which is for PCI, and `ath10k/snoc.c` which is for Qualcomm Snapdragon SoC, and `core.c` and `mac.c`, which are shared by all the drivers, but I'm thinking about recovery here. The recovery mechanism is explicitly designed for PCI and SDIO hardware crashes. Even if we were to provide some kind of firmware dummy to allow `ath10k` to probe via USB, the code path that starts a recovery is not ever reached. So I've checked if there is some call to the recovery routines within `ath10k_usb`, and there is no trace of that. The comments emphasize that this recovery path is there specifically for PCI and SDIO hardware crashes where the device is not responding. So the driver seems to fall into the category of "structurally unreachable hardware". Because standard QEMU does not emulate the Qualcomm Atheros wireless hardware, and the recovery part is for a hardware crash on PCI or SDIO, not a USB, so the execution path is unreachable. Because the execution path is not reachable. This patch touches this "structurally unreachable hardware" code, so it is not worth fuzzing. |
| 40/2 | 2026/09/27 09:45 | tool | read-file |
0mArgs:{
"File": "drivers/net/wireless/ath/ath10k/core.c",
"FirstLine": 2620,
"LineCount": 80
}Results: {
"Contents": "2620:\t\tclear_bit(ATH10K_FLAG_NAPI_ENABLED, \u0026ar-\u003edev_flags);\n2621:\t}\n2622:\tEXPORT_SYMBOL(ath10k_core_napi_sync_disable);\n2623:\t\n2624:\tstatic void ath10k_core_restart(struct work_struct *work)\n2625:\t{\n2626:\t\tstruct ath10k *ar = container_of(work, struct ath10k, restart_work);\n2627:\t\tint ret;\n2628:\t\n2629:\t\tset_bit(ATH10K_FLAG_CRASH_FLUSH, \u0026ar-\u003edev_flags);\n2630:\t\n2631:\t\t/* Place a barrier to make sure the compiler doesn't reorder\n2632:\t\t * CRASH_FLUSH and calling other functions.\n2633:\t\t */\n2634:\t\tbarrier();\n2635:\t\n2636:\t\tieee80211_stop_queues(ar-\u003ehw);\n2637:\t\tath10k_drain_tx(ar);\n2638:\t\tath10k_core_wake_all_waiters(ar);\n2639:\t\n2640:\t\t/* TODO: We can have one instance of cancelling coverage_class_work by\n2641:\t\t * moving it to ath10k_halt(), so that both stop() and restart() would\n2642:\t\t * call that but it takes conf_mutex() and if we call cancel_work_sync()\n2643:\t\t * with conf_mutex it will deadlock.\n2644:\t\t */\n2645:\t\tcancel_work_sync(\u0026ar-\u003eset_coverage_class_work);\n2646:\t\n2647:\t\tmutex_lock(\u0026ar-\u003econf_mutex);\n2648:\t\n2649:\t\tswitch (ar-\u003estate) {\n2650:\t\tcase ATH10K_STATE_ON:\n2651:\t\t\tar-\u003estate = ATH10K_STATE_RESTARTING;\n2652:\t\t\tath10k_halt(ar);\n2653:\t\t\tath10k_scan_finish(ar);\n2654:\t\t\tieee80211_restart_hw(ar-\u003ehw);\n2655:\t\t\tbreak;\n2656:\t\tcase ATH10K_STATE_OFF:\n2657:\t\t\t/* this can happen if driver is being unloaded\n2658:\t\t\t * or if the crash happens during FW probing\n2659:\t\t\t */\n2660:\t\t\tath10k_warn(ar, \"cannot restart a device that hasn't been started\\n\");\n2661:\t\t\tbreak;\n2662:\t\tcase ATH10K_STATE_RESTARTING:\n2663:\t\t\t/* hw restart might be requested from multiple places */\n2664:\t\t\tbreak;\n2665:\t\tcase ATH10K_STATE_RESTARTED:\n2666:\t\t\tath10k_core_enter_wedged(ar);\n2667:\t\t\tfallthrough;\n2668:\t\tcase ATH10K_STATE_WEDGED:\n2669:\t\t\tath10k_warn(ar, \"device is wedged, will not restart\\n\");\n2670:\t\t\tbreak;\n2671:\t\tcase ATH10K_STATE_UTF:\n2672:\t\t\tath10k_warn(ar, \"firmware restart in UTF mode not supported\\n\");\n2673:\t\t\tbreak;\n2674:\t\t}\n2675:\t\n2676:\t\tmutex_unlock(\u0026ar-\u003econf_mutex);\n2677:\t\n2678:\t\tret = ath10k_coredump_submit(ar);\n2679:\t\tif (ret)\n2680:\t\t\tath10k_warn(ar, \"failed to send firmware crash dump via devcoredump: %d\",\n2681:\t\t\t\t ret);\n2682:\t}\n2683:\t\n2684:\tstatic void ath10k_core_set_coverage_class_work(struct work_struct *work)\n2685:\t{\n2686:\t\tstruct ath10k *ar = container_of(work, struct ath10k,\n2687:\t\t\t\t\t\t set_coverage_class_work);\n2688:\t\n2689:\t\tif (ar-\u003ehw_params.hw_ops-\u003eset_coverage_class)\n2690:\t\t\tar-\u003ehw_params.hw_ops-\u003eset_coverage_class(ar, -1, -1);\n2691:\t}\n2692:\t\n2693:\tstatic int ath10k_core_init_firmware_features(struct ath10k *ar)\n2694:\t{\n2695:\t\tstruct ath10k_fw_file *fw_file = \u0026ar-\u003enormal_mode_fw.fw_file;\n2696:\t\tint max_num_peers;\n2697:\t\n2698:\t\tif (test_bit(ATH10K_FW_FEATURE_WMI_10_2, fw_file-\u003efw_features) \u0026\u0026\n2699:\t\t !test_bit(ATH10K_FW_FEATURE_WMI_10X, fw_file-\u003efw_features)) {\n"
} |
| 41/2 | 2026/09/27 09:45 | llm | patch-evaluator |
0mModel:gemini-3.8-flash Args: null Results: null Tokens: input: 57302 output: 148 thoughts: 2591 Thoughts: **Analysis of the `ath10k` Driver for Fuzzing Eligibility** Okay, let's break this down. We're looking at whether this `ath10k` driver, specifically the modifications within `drivers/net/wireless/ath/ath10k/`, is worth fuzzing. I'm starting by re-examining Section 2 of the triage philosophy, specifically the negative criteria: when should we definitively *not* fuzz something? It says "WorthFuzzing=false" if all changes fall into certain categories. The key one here is "structurally unreachable hardware," which includes vendor-specific hardware requiring physical ASICs or PCIe cards not emulated in standard QEMU. They give examples like `mlxsw`, `pds_core`, `qed`, `ionic`, and `amdgpu`. So, what about `ath10k`? Well, it's Qualcomm Atheros 802.11ac wireless card support. That immediately screams physical hardware dependency. It requires specific Qualcomm Atheros Wi-Fi chips (QCA988x, QCA6174, etc.). And neither QEMU nor Google Compute Engine (GCE) emulates this hardware. We're running syzkaller, which typically operates under QEMU or KVM on x86_64 servers. Standard QEMU *definitely* doesn't emulate the necessary Qualcomm Atheros 802.11ac hardware. Looking at the modified code, it's all within the `ath10k` directory: `pci.c`, `snoc.c`, `core.c`, and `mac.c`. `pci.c` involves PCIe hardware routines. That's a huge red flag – we're talking about MMIO operations, which are only meaningful with actual PCIe hardware. `snoc.c` deals with Qualcomm Snapdragon SoC bus drivers. This is also a non-starter because it's hardware specific to Qualcomm ARM SoCs, and we're targeting x86_64, which is an architecture mismatch. `core.c` and `mac.c` implement hardware recovery mechanisms – essential for handling crashes or stalled physical ASICs. Is there *any* chance this is fuzzable? Let's be thorough. Does syzkaller even touch `ath10k` or any other similar wireless driver? We have `mac80211_hwsim`, which is a virtual software Wi-Fi device that is fuzzed using netlink (`nl80211`). We also have USB Wi-Fi drivers like `rtw88_usb`, `carl9170` and others, fuzzed via USB raw gadget. But not `ath10k_usb`. `ATH10K_USB` is experimental and not fully functional, which means it isn't used in this context. And more importantly, the modifications in this patch don't apply to the USB driver. USB can't trigger the recovery work. It is only triggered via PCI MMIO, SDIO interrupts, SNOC and debugging interfaces. Even if it was used, `ath10k/usb.c` has zero calls to those recovery mechanisms, so it's irrelevant. What about checking whether creating a delayed work struct in `ath10k_core_create` in `core.c` is fuzzable? It's not. It does not contain any assertions. It just sets up the function pointer and timer; it does not execute any logic or assertions. Back to the negative criteria. Let's make this absolutely clear. We have: * `ath10k/snoc.c`: Qualcomm Snapdragon SoC driver, architecture mismatch (amd64 target), and a teardown callback. * `ath10k/pci.c`: Physical PCIe hardware routines. * `ath10k/core.c`, `ath10k/core.h`, `ath10k/mac.c`: The core driver, for physical ASICs. Is it "structurally unreachable hardware"? YES! This is a driver for Qualcomm Atheros 802.11ac physical PCIe/SDIO/SNOC ASICs. Standard QEMU doesn't emulate it. With no physical hardware, the code for recovery, PCI MMIO, and SNOC removal is unreachable. I'm double-checking. Does QEMU have *any* support for Qualcomm Atheros Wi-Fi? No. No device model for QCA988x, or others. Is `ath10k` related to `mac80211_hwsim`? No, it's independent. Does the core `cfg80211` or `mac8021 |
| 42/2 | 2026/09/27 09:46 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the hardware error recovery mechanism, PCIe bus access error handling, and SNOC teardown for the ath10k wireless driver (Qualcomm Atheros 802.11ac). These chipsets (e.g., QCA988x, QCA6174, WCN3990) require physical PCIe, SDIO, or Qualcomm platform bus hardware that is not emulated in standard virtualized fuzzing environments (QEMU/KVM). Consequently, the modified code paths are structurally unreachable for syzkaller.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the hardware error recovery mechanism, PCIe bus access error handling, and SNOC teardown for the ath10k wireless driver (Qualcomm Atheros 802.11ac). These chipsets (e.g., QCA988x, QCA6174, WCN3990) require physical PCIe, SDIO, or Qualcomm platform bus hardware that is not emulated in standard virtualized fuzzing environments (QEMU/KVM). Consequently, the modified code paths are structurally unreachable for syzkaller.",
"WorthFuzzing": false
} |
| 43/1 | 2026/09/27 09:46 | 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) |
|---|