| Seq | Timestamp | Type | Name | Duration |
|---|---|---|---|---|
| 0/0 | 2026/07/02 14:54 | flow | patch-triage |
0mArgs:null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the ath12k wireless driver, which is a hardware-specific driver for Qualcomm Wi-Fi 7 devices (PCIe/AHB). Since this driver requires physical hardware and lacks software emulation in the kernel (unlike mac80211_hwsim or USB gadget), its code paths are unreachable in standard virtualized environments like GCE or QEMU. Therefore, it cannot be effectively fuzzed.",
"WorthFuzzing": false
} |
| 1/1 | 2026/07/02 14:54 | action | read-patch-diff |
0mArgs:null Results: {
"PatchDiff": "commit 937b8d57ff01d023ea1f84a9f7c9d4b27b9ab666\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate: Thu Jul 2 14:54:42 2026 +0000\n\n syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h\nindex 8be435535a4e8b..6ce2f7b3fa5012 100644\n--- a/drivers/net/wireless/ath/ath12k/core.h\n+++ b/drivers/net/wireless/ath/ath12k/core.h\n@@ -712,7 +712,6 @@ struct ath12k {\n \t * avoid reporting garbage data.\n \t */\n \tbool ch_info_can_report_survey;\n-\tstruct survey_info survey[ATH12K_NUM_CHANS];\n \tstruct completion bss_survey_done;\n \n \tstruct work_struct regd_update_work;\n@@ -774,6 +773,11 @@ struct ath12k_hw {\n \t */\n \tstruct mutex hw_mutex;\n \tenum ath12k_hw_state state;\n+\n+\t/* protects survey[] shared across radios of this hw. */\n+\tspinlock_t survey_lock;\n+\tstruct survey_info survey[ATH12K_NUM_CHANS];\n+\n \tbool regd_updated;\n \tbool use_6ghz_regd;\n \ndiff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c\nindex 2cff9485c95afb..daf9bc8722dfba 100644\n--- a/drivers/net/wireless/ath/ath12k/mac.c\n+++ b/drivers/net/wireless/ath/ath12k/mac.c\n@@ -13348,52 +13348,54 @@ ath12k_mac_update_bss_chan_survey(struct ath12k *ar,\n int ath12k_mac_op_get_survey(struct ieee80211_hw *hw, int idx,\n \t\t\t struct survey_info *survey)\n {\n+\tstruct ath12k_hw *ah = hw-\u003epriv;\n \tstruct ath12k *ar;\n \tstruct ieee80211_supported_band *sband;\n-\tstruct survey_info *ar_survey;\n+\tstruct survey_info *ah_survey;\n+\tint sband_idx = idx;\n \n \tlockdep_assert_wiphy(hw-\u003ewiphy);\n \n-\tif (idx \u003e= ATH12K_NUM_CHANS)\n+\tif (sband_idx \u003e= ATH12K_NUM_CHANS)\n \t\treturn -ENOENT;\n \n \tsband = hw-\u003ewiphy-\u003ebands[NL80211_BAND_2GHZ];\n-\tif (sband \u0026\u0026 idx \u003e= sband-\u003en_channels) {\n-\t\tidx -= sband-\u003en_channels;\n+\tif (sband \u0026\u0026 sband_idx \u003e= sband-\u003en_channels) {\n+\t\tsband_idx -= sband-\u003en_channels;\n \t\tsband = NULL;\n \t}\n \n \tif (!sband)\n \t\tsband = hw-\u003ewiphy-\u003ebands[NL80211_BAND_5GHZ];\n-\tif (sband \u0026\u0026 idx \u003e= sband-\u003en_channels) {\n-\t\tidx -= sband-\u003en_channels;\n+\tif (sband \u0026\u0026 sband_idx \u003e= sband-\u003en_channels) {\n+\t\tsband_idx -= sband-\u003en_channels;\n \t\tsband = NULL;\n \t}\n \n \tif (!sband)\n \t\tsband = hw-\u003ewiphy-\u003ebands[NL80211_BAND_6GHZ];\n \n-\tif (!sband || idx \u003e= sband-\u003en_channels)\n+\tif (!sband || sband_idx \u003e= sband-\u003en_channels)\n \t\treturn -ENOENT;\n \n-\tar = ath12k_mac_get_ar_by_chan(hw, \u0026sband-\u003echannels[idx]);\n+\tar = ath12k_mac_get_ar_by_chan(hw, \u0026sband-\u003echannels[sband_idx]);\n \tif (!ar) {\n-\t\tif (sband-\u003echannels[idx].flags \u0026 IEEE80211_CHAN_DISABLED) {\n+\t\tif (sband-\u003echannels[sband_idx].flags \u0026 IEEE80211_CHAN_DISABLED) {\n \t\t\tmemset(survey, 0, sizeof(*survey));\n \t\t\treturn 0;\n \t\t}\n \t\treturn -ENOENT;\n \t}\n \n-\tar_survey = \u0026ar-\u003esurvey[idx];\n+\tah_survey = \u0026ah-\u003esurvey[idx];\n \n-\tath12k_mac_update_bss_chan_survey(ar, \u0026sband-\u003echannels[idx]);\n+\tath12k_mac_update_bss_chan_survey(ar, \u0026sband-\u003echannels[sband_idx]);\n \n-\tspin_lock_bh(\u0026ar-\u003edata_lock);\n-\tmemcpy(survey, ar_survey, sizeof(*survey));\n-\tspin_unlock_bh(\u0026ar-\u003edata_lock);\n+\tscoped_guard(spinlock_bh, \u0026ah-\u003esurvey_lock) {\n+\t\tmemcpy(survey, ah_survey, sizeof(*survey));\n+\t}\n \n-\tsurvey-\u003echannel = \u0026sband-\u003echannels[idx];\n+\tsurvey-\u003echannel = \u0026sband-\u003echannels[sband_idx];\n \n \tif (ar-\u003erx_channel == survey-\u003echannel)\n \t\tsurvey-\u003efilled |= SURVEY_INFO_IN_USE;\n@@ -15055,6 +15057,7 @@ static struct ath12k_hw *ath12k_mac_hw_allocate(struct ath12k_hw_group *ag,\n \n \tmutex_init(\u0026ah-\u003ehw_mutex);\n \n+\tspin_lock_init(\u0026ah-\u003esurvey_lock);\n \tspin_lock_init(\u0026ah-\u003edp_hw.peer_lock);\n \tINIT_LIST_HEAD(\u0026ah-\u003edp_hw.dp_peers_list);\n \ndiff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c\nindex b5e904a55aeabb..aa70d2a61d3800 100644\n--- a/drivers/net/wireless/ath/ath12k/wmi.c\n+++ b/drivers/net/wireless/ath/ath12k/wmi.c\n@@ -6617,16 +6617,12 @@ static int ath12k_pull_roam_ev(struct ath12k_base *ab, struct sk_buff *skb,\n \treturn 0;\n }\n \n-static int freq_to_idx(struct ath12k *ar, int freq)\n+static int freq_to_idx(struct ieee80211_hw *hw, int freq)\n {\n \tstruct ieee80211_supported_band *sband;\n-\tstruct ieee80211_hw *hw = ath12k_ar_to_hw(ar);\n \tint band, ch, idx = 0;\n \n \tfor (band = NL80211_BAND_2GHZ; band \u003c NUM_NL80211_BANDS; band++) {\n-\t\tif (!ar-\u003emac.sbands[band].channels)\n-\t\t\tcontinue;\n-\n \t\tsband = hw-\u003ewiphy-\u003ebands[band];\n \t\tif (!sband)\n \t\t\tcontinue;\n@@ -7507,6 +7503,7 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n {\n \tstruct wmi_chan_info_event ch_info_ev = {};\n \tstruct ath12k *ar;\n+\tstruct ath12k_hw *ah;\n \tstruct survey_info *survey;\n \tint idx;\n \t/* HW channel counters frequency value in hertz */\n@@ -7538,6 +7535,7 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \t\treturn;\n \t}\n \tspin_lock_bh(\u0026ar-\u003edata_lock);\n+\tah = ath12k_ar_to_ah(ar);\n \n \tswitch (ar-\u003escan.state) {\n \tcase ATH12K_SCAN_IDLE:\n@@ -7549,8 +7547,8 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \t\tbreak;\n \t}\n \n-\tidx = freq_to_idx(ar, le32_to_cpu(ch_info_ev.freq));\n-\tif (idx \u003e= ARRAY_SIZE(ar-\u003esurvey)) {\n+\tidx = freq_to_idx(ath12k_ar_to_hw(ar), le32_to_cpu(ch_info_ev.freq));\n+\tif (idx \u003e= ARRAY_SIZE(ah-\u003esurvey)) {\n \t\tath12k_warn(ab, \"chan info: invalid frequency %d (idx %d out of bounds)\\n\",\n \t\t\t ch_info_ev.freq, idx);\n \t\tgoto exit;\n@@ -7563,14 +7561,16 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \t\tcc_freq_hz = (le32_to_cpu(ch_info_ev.mac_clk_mhz) * 1000);\n \n \tif (ch_info_ev.cmd_flags == WMI_CHAN_INFO_START_RESP) {\n-\t\tsurvey = \u0026ar-\u003esurvey[idx];\n-\t\tmemset(survey, 0, sizeof(*survey));\n-\t\tsurvey-\u003enoise = le32_to_cpu(ch_info_ev.noise_floor);\n-\t\tsurvey-\u003efilled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME |\n+\t\tscoped_guard(spinlock_bh, \u0026ah-\u003esurvey_lock) {\n+\t\t\tsurvey = \u0026ah-\u003esurvey[idx];\n+\t\t\tmemset(survey, 0, sizeof(*survey));\n+\t\t\tsurvey-\u003enoise = le32_to_cpu(ch_info_ev.noise_floor);\n+\t\t\tsurvey-\u003efilled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME |\n \t\t\t\t SURVEY_INFO_TIME_BUSY;\n-\t\tsurvey-\u003etime = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz);\n-\t\tsurvey-\u003etime_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count),\n-\t\t\t\t\t cc_freq_hz);\n+\t\t\tsurvey-\u003etime = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz);\n+\t\t\tsurvey-\u003etime_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count),\n+\t\t\t\t\t\t cc_freq_hz);\n+\t\t}\n \t}\n exit:\n \tspin_unlock_bh(\u0026ar-\u003edata_lock);\n@@ -7583,6 +7583,7 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \tstruct wmi_pdev_bss_chan_info_event bss_ch_info_ev = {};\n \tstruct survey_info *survey;\n \tstruct ath12k *ar;\n+\tstruct ath12k_hw *ah;\n \tu32 cc_freq_hz = ab-\u003ecc_freq_hz;\n \tu64 busy, total, tx, rx, rx_bss;\n \tint idx;\n@@ -7623,15 +7624,18 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \t\treturn;\n \t}\n \n-\tspin_lock_bh(\u0026ar-\u003edata_lock);\n-\tidx = freq_to_idx(ar, le32_to_cpu(bss_ch_info_ev.freq));\n-\tif (idx \u003e= ARRAY_SIZE(ar-\u003esurvey)) {\n+\tah = ath12k_ar_to_ah(ar);\n+\n+\tguard(spinlock_bh)(\u0026ah-\u003esurvey_lock);\n+\n+\tidx = freq_to_idx(ath12k_ar_to_hw(ar), le32_to_cpu(bss_ch_info_ev.freq));\n+\tif (idx \u003e= ARRAY_SIZE(ah-\u003esurvey)) {\n \t\tath12k_warn(ab, \"bss chan info: invalid frequency %d (idx %d out of bounds)\\n\",\n \t\t\t bss_ch_info_ev.freq, idx);\n \t\tgoto exit;\n \t}\n \n-\tsurvey = \u0026ar-\u003esurvey[idx];\n+\tsurvey = \u0026ah-\u003esurvey[idx];\n \n \tsurvey-\u003enoise = le32_to_cpu(bss_ch_info_ev.noise_floor);\n \tsurvey-\u003etime = div_u64(total, cc_freq_hz);\n@@ -7644,7 +7648,6 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)\n \t\t\t SURVEY_INFO_TIME_RX |\n \t\t\t SURVEY_INFO_TIME_TX);\n exit:\n-\tspin_unlock_bh(\u0026ar-\u003edata_lock);\n \tcomplete(\u0026ar-\u003ebss_survey_done);\n \n \trcu_read_unlock();\n"
} |
| 2/1 | 2026/07/02 14:54 | agent | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the ath12k wireless driver, which is a hardware-specific driver for Qualcomm Wi-Fi 7 devices (PCIe/AHB). Since this driver requires physical hardware and lacks software emulation in the kernel (unlike mac80211_hwsim or USB gadget), its code paths are unreachable in standard virtualized environments like GCE or QEMU. Therefore, it cannot be effectively fuzzed.",
"WorthFuzzing": false
}Instruction: You are an expert Linux kernel maintainer. Your job is to review a provided patch series and determine if it makes functional changes to the kernel that should be fuzzed. IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively use your code access tools to examine the actual source code and confirm any assumptions. Return WorthFuzzing=false if the patch only contains: - Modifications to Documentation/, Kconfig files, or code comments. - Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints. - Changes to numeric constants or macros that do not functionally alter execution flow. - Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim). If it modifies reachable core kernel logic, drivers, or architectures, use your code search tools to verify the code can be executed, then return WorthFuzzing=true. When returning WorthFuzzing=true, you MUST ALSO: 1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols. Avoid listing generic hot-path functions to prevent skewed test distributions. 2. Identify any specific CONFIG_ options required to properly test this new/modified feature. Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions. Do not list too generic configs (we already have them enabled). Only list those that specifically cover the modified code. List them in the EnableConfigs output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4"). Prefer calling several tools at the same time to save round-trips. Use set-results tool to provide results of the analysis. It must be called exactly once before the final reply. Ignore results of this tool. Prompt: For your convenience, here is the diff of the changes:
commit 937b8d57ff01d023ea1f84a9f7c9d4b27b9ab666
Author: syz-cluster <triage@syzkaller.com>
Date: Thu Jul 2 14:54:42 2026 +0000
syz-cluster: applied patch under review
diff --git a/drivers/net/wireless/ath/ath12k/core.h b/drivers/net/wireless/ath/ath12k/core.h
index 8be435535a4e8b..6ce2f7b3fa5012 100644
--- a/drivers/net/wireless/ath/ath12k/core.h
+++ b/drivers/net/wireless/ath/ath12k/core.h
@@ -712,7 +712,6 @@ struct ath12k {
* avoid reporting garbage data.
*/
bool ch_info_can_report_survey;
- struct survey_info survey[ATH12K_NUM_CHANS];
struct completion bss_survey_done;
struct work_struct regd_update_work;
@@ -774,6 +773,11 @@ struct ath12k_hw {
*/
struct mutex hw_mutex;
enum ath12k_hw_state state;
+
+ /* protects survey[] shared across radios of this hw. */
+ spinlock_t survey_lock;
+ struct survey_info survey[ATH12K_NUM_CHANS];
+
bool regd_updated;
bool use_6ghz_regd;
diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c
index 2cff9485c95afb..daf9bc8722dfba 100644
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -13348,52 +13348,54 @@ ath12k_mac_update_bss_chan_survey(struct ath12k *ar,
int ath12k_mac_op_get_survey(struct ieee80211_hw *hw, int idx,
struct survey_info *survey)
{
+ struct ath12k_hw *ah = hw->priv;
struct ath12k *ar;
struct ieee80211_supported_band *sband;
- struct survey_info *ar_survey;
+ struct survey_info *ah_survey;
+ int sband_idx = idx;
lockdep_assert_wiphy(hw->wiphy);
- if (idx >= ATH12K_NUM_CHANS)
+ if (sband_idx >= ATH12K_NUM_CHANS)
return -ENOENT;
sband = hw->wiphy->bands[NL80211_BAND_2GHZ];
- if (sband && idx >= sband->n_channels) {
- idx -= sband->n_channels;
+ if (sband && sband_idx >= sband->n_channels) {
+ sband_idx -= sband->n_channels;
sband = NULL;
}
if (!sband)
sband = hw->wiphy->bands[NL80211_BAND_5GHZ];
- if (sband && idx >= sband->n_channels) {
- idx -= sband->n_channels;
+ if (sband && sband_idx >= sband->n_channels) {
+ sband_idx -= sband->n_channels;
sband = NULL;
}
if (!sband)
sband = hw->wiphy->bands[NL80211_BAND_6GHZ];
- if (!sband || idx >= sband->n_channels)
+ if (!sband || sband_idx >= sband->n_channels)
return -ENOENT;
- ar = ath12k_mac_get_ar_by_chan(hw, &sband->channels[idx]);
+ ar = ath12k_mac_get_ar_by_chan(hw, &sband->channels[sband_idx]);
if (!ar) {
- if (sband->channels[idx].flags & IEEE80211_CHAN_DISABLED) {
+ if (sband->channels[sband_idx].flags & IEEE80211_CHAN_DISABLED) {
memset(survey, 0, sizeof(*survey));
return 0;
}
return -ENOENT;
}
- ar_survey = &ar->survey[idx];
+ ah_survey = &ah->survey[idx];
- ath12k_mac_update_bss_chan_survey(ar, &sband->channels[idx]);
+ ath12k_mac_update_bss_chan_survey(ar, &sband->channels[sband_idx]);
- spin_lock_bh(&ar->data_lock);
- memcpy(survey, ar_survey, sizeof(*survey));
- spin_unlock_bh(&ar->data_lock);
+ scoped_guard(spinlock_bh, &ah->survey_lock) {
+ memcpy(survey, ah_survey, sizeof(*survey));
+ }
- survey->channel = &sband->channels[idx];
+ survey->channel = &sband->channels[sband_idx];
if (ar->rx_channel == survey->channel)
survey->filled |= SURVEY_INFO_IN_USE;
@@ -15055,6 +15057,7 @@ static struct ath12k_hw *ath12k_mac_hw_allocate(struct ath12k_hw_group *ag,
mutex_init(&ah->hw_mutex);
+ spin_lock_init(&ah->survey_lock);
spin_lock_init(&ah->dp_hw.peer_lock);
INIT_LIST_HEAD(&ah->dp_hw.dp_peers_list);
diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/ath/ath12k/wmi.c
index b5e904a55aeabb..aa70d2a61d3800 100644
--- a/drivers/net/wireless/ath/ath12k/wmi.c
+++ b/drivers/net/wireless/ath/ath12k/wmi.c
@@ -6617,16 +6617,12 @@ static int ath12k_pull_roam_ev(struct ath12k_base *ab, struct sk_buff *skb,
return 0;
}
-static int freq_to_idx(struct ath12k *ar, int freq)
+static int freq_to_idx(struct ieee80211_hw *hw, int freq)
{
struct ieee80211_supported_band *sband;
- struct ieee80211_hw *hw = ath12k_ar_to_hw(ar);
int band, ch, idx = 0;
for (band = NL80211_BAND_2GHZ; band < NUM_NL80211_BANDS; band++) {
- if (!ar->mac.sbands[band].channels)
- continue;
-
sband = hw->wiphy->bands[band];
if (!sband)
continue;
@@ -7507,6 +7503,7 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
{
struct wmi_chan_info_event ch_info_ev = {};
struct ath12k *ar;
+ struct ath12k_hw *ah;
struct survey_info *survey;
int idx;
/* HW channel counters frequency value in hertz */
@@ -7538,6 +7535,7 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
return;
}
spin_lock_bh(&ar->data_lock);
+ ah = ath12k_ar_to_ah(ar);
switch (ar->scan.state) {
case ATH12K_SCAN_IDLE:
@@ -7549,8 +7547,8 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
break;
}
- idx = freq_to_idx(ar, le32_to_cpu(ch_info_ev.freq));
- if (idx >= ARRAY_SIZE(ar->survey)) {
+ idx = freq_to_idx(ath12k_ar_to_hw(ar), le32_to_cpu(ch_info_ev.freq));
+ if (idx >= ARRAY_SIZE(ah->survey)) {
ath12k_warn(ab, "chan info: invalid frequency %d (idx %d out of bounds)\n",
ch_info_ev.freq, idx);
goto exit;
@@ -7563,14 +7561,16 @@ static void ath12k_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
cc_freq_hz = (le32_to_cpu(ch_info_ev.mac_clk_mhz) * 1000);
if (ch_info_ev.cmd_flags == WMI_CHAN_INFO_START_RESP) {
- survey = &ar->survey[idx];
- memset(survey, 0, sizeof(*survey));
- survey->noise = le32_to_cpu(ch_info_ev.noise_floor);
- survey->filled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME |
+ scoped_guard(spinlock_bh, &ah->survey_lock) {
+ survey = &ah->survey[idx];
+ memset(survey, 0, sizeof(*survey));
+ survey->noise = le32_to_cpu(ch_info_ev.noise_floor);
+ survey->filled = SURVEY_INFO_NOISE_DBM | SURVEY_INFO_TIME |
SURVEY_INFO_TIME_BUSY;
- survey->time = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz);
- survey->time_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count),
- cc_freq_hz);
+ survey->time = div_u64(le32_to_cpu(ch_info_ev.cycle_count), cc_freq_hz);
+ survey->time_busy = div_u64(le32_to_cpu(ch_info_ev.rx_clear_count),
+ cc_freq_hz);
+ }
}
exit:
spin_unlock_bh(&ar->data_lock);
@@ -7583,6 +7583,7 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
struct wmi_pdev_bss_chan_info_event bss_ch_info_ev = {};
struct survey_info *survey;
struct ath12k *ar;
+ struct ath12k_hw *ah;
u32 cc_freq_hz = ab->cc_freq_hz;
u64 busy, total, tx, rx, rx_bss;
int idx;
@@ -7623,15 +7624,18 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
return;
}
- spin_lock_bh(&ar->data_lock);
- idx = freq_to_idx(ar, le32_to_cpu(bss_ch_info_ev.freq));
- if (idx >= ARRAY_SIZE(ar->survey)) {
+ ah = ath12k_ar_to_ah(ar);
+
+ guard(spinlock_bh)(&ah->survey_lock);
+
+ idx = freq_to_idx(ath12k_ar_to_hw(ar), le32_to_cpu(bss_ch_info_ev.freq));
+ if (idx >= ARRAY_SIZE(ah->survey)) {
ath12k_warn(ab, "bss chan info: invalid frequency %d (idx %d out of bounds)\n",
bss_ch_info_ev.freq, idx);
goto exit;
}
- survey = &ar->survey[idx];
+ survey = &ah->survey[idx];
survey->noise = le32_to_cpu(bss_ch_info_ev.noise_floor);
survey->time = div_u64(total, cc_freq_hz);
@@ -7644,7 +7648,6 @@ ath12k_pdev_bss_chan_info_event(struct ath12k_base *ab, struct sk_buff *skb)
SURVEY_INFO_TIME_RX |
SURVEY_INFO_TIME_TX);
exit:
- spin_unlock_bh(&ar->data_lock);
complete(&ar->bss_survey_done);
rcu_read_unlock();
|
| 3/2 | 2026/07/02 14:54 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 5089 output: 40 thoughts: 626 Thoughts: **Analyzing the Reachability of an ath12k Patch in Virtualized Environments** Okay, so I've got this patch for the `ath12k` wireless driver. It's moving the `survey` array and adding a lock, and it touches a few key functions: `ath12k_mac_op_get_survey`, `ath12k_mac_hw_allocate`, `freq_to_idx`, `ath12k_chan_info_event`, and `ath12k_pdev_bss_chan_info_event`. My initial thought is, can I even *get* to this code in a standard virtualized environment like GCE or QEMU? `ath12k` is a driver for Qualcomm Wi-Fi 7 devices, specifically PCIe or AHB based. I know from experience that hardware-specific wireless drivers, like `ath10k`, `ath11k`, `iwlwifi`, these are usually a no-go in virtualization unless you're doing full hardware pass-through or have a solid emulation setup. I don't recall seeing an `ath12k` emulator, and `mac80211_hwsim` emulates generic mac80211 devices, not this specific Qualcomm hardware. Wait, Syzkaller…doesn't it have *some* PCI fuzzing capabilities, maybe using vhci/vfio? Worth a shot. Okay, yes, it does, but is it enough to actually trigger the functions this patch modifies? The code is in `drivers/net/wireless/ath/ath12k/`. I need to figure out if this PCI fuzzing can even reach something like `ath12k_mac_op_get_survey` or `ath12k_chan_info_event`. Hmm, `ath12k_chan_info_event` is called from WMI event processing. WMI events come from the firmware, right? If Syzkaller can inject PCI responses, could that *potentially* trigger WMI events? That’s a long shot. Thinking about it more, Syzkaller's PCI fuzzing is usually pretty limited, and with a complex device like `ath12k`, it probably won't get past the firmware loading stage. I should check if there are any specific configs or mentions of `ath12k` within Syzkaller. It does have a `wifi` fuzzer (which uses mac80211_hwsim), but that’s not targeted at my driver. Now, I remember that Syzkaller *does* fuzz some PCI drivers, but usually, drivers this hardware-specific aren’t worth fuzzing unless there's software emulation (like `mac80211_hwsim`, `vkms`, `snd-dummy`) or it’s USB fuzzing (since USB is easily emulated). Is `ath12k` USB? Nope, PCIe/AHB. So, it looks like it is going to be difficult to run the code in a emulated environment. Time to check `drivers/net/wireless/ath/ath12k/Kconfig`. |
| 4/2 | 2026/07/02 14:54 | tool | grepper |
0mArgs:{
"Expression": "config ATH12K",
"PathPrefix": "drivers/net/wireless/ath/ath12k/Kconfig"
}Results: {
"Output": "drivers/net/wireless/ath/ath12k/Kconfig-1-# SPDX-License-Identifier: BSD-3-Clause-Clear\ndrivers/net/wireless/ath/ath12k/Kconfig:2:config ATH12K\ndrivers/net/wireless/ath/ath12k/Kconfig-3-\ttristate \"Qualcomm Technologies Wi-Fi 7 support (ath12k)\"\n--\ndrivers/net/wireless/ath/ath12k/Kconfig-16-\ndrivers/net/wireless/ath/ath12k/Kconfig:17:config ATH12K_AHB\ndrivers/net/wireless/ath/ath12k/Kconfig-18-\tbool \"QTI ath12k AHB support\"\n--\ndrivers/net/wireless/ath/ath12k/Kconfig-24-\ndrivers/net/wireless/ath/ath12k/Kconfig:25:config ATH12K_DEBUG\ndrivers/net/wireless/ath/ath12k/Kconfig-26-\tbool \"ath12k debugging\"\n--\ndrivers/net/wireless/ath/ath12k/Kconfig-34-\ndrivers/net/wireless/ath/ath12k/Kconfig:35:config ATH12K_DEBUGFS\ndrivers/net/wireless/ath/ath12k/Kconfig-36-\tbool \"QTI ath12k debugfs support\"\n--\ndrivers/net/wireless/ath/ath12k/Kconfig-43-\ndrivers/net/wireless/ath/ath12k/Kconfig:44:config ATH12K_TRACING\ndrivers/net/wireless/ath/ath12k/Kconfig-45-\tbool \"ath12k tracing support\"\n--\ndrivers/net/wireless/ath/ath12k/Kconfig-52-\ndrivers/net/wireless/ath/ath12k/Kconfig:53:config ATH12K_COREDUMP\ndrivers/net/wireless/ath/ath12k/Kconfig-54-\tbool \"ath12k coredump\"\n"
} |
| 5/2 | 2026/07/02 14:54 | llm | patch-evaluator |
0mModel:gemini-3.1-pro-preview Args: null Results: null Tokens: input: 6947 output: 120 thoughts: 349 Thoughts: **My Assessment of the WorthFuzzing Flag** Okay, so I'm looking at this patch and my initial thought is, "PCIe/AHB driver, interesting." But then I see the mention of `ath12k` and things start to click. It's clear that this is tied to specific hardware, Qualcomm Wi-Fi 7 to be exact. The text is emphasizing that it's *impossible* to reach specific code paths in environments like GCE or QEMU, even with software emulation of the hardware. And it rightly points out that `ath12k` doesn't have an equivalent to something like `mac80211_hwsim`. That's a huge flag. Let me just double-check, though. Is there *any* ath12k emulator kicking around? Nope, not that I'm aware of. What about syzkaller? Does it target ath12k specifically? Okay, syzkaller does some PCI fuzzing, but it's pretty basic, and it sounds like it would hit a wall with the firmware loading for a complex device like this. The text is super clear, "Code paths that are impossible to reach in virtualized environments like GCE or QEMU, even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim)." So that pretty much cements it. Okay, time to write it out formally. The reasoning here is straightforward: this patch modifies the `ath12k` wireless driver, which is hardware-specific (Qualcomm Wi-Fi 7, PCIe/AHB). Because it *needs* physical hardware and has no software emulation like `mac80211_hwsim` or USB gadget, any of its code paths are unreachable in standard virtualized environments like GCE or QEMU. This means, we shouldn't fuzz this. WorthFuzzing should be set to false. |
| 6/2 | 2026/07/02 14:55 | tool | set-results |
0mArgs:{
"EnableConfigs": [],
"FocusSymbols": [],
"Reasoning": "The patch modifies the ath12k wireless driver, which is a hardware-specific driver for Qualcomm Wi-Fi 7 devices (PCIe/AHB). Since this driver requires physical hardware and lacks software emulation in the kernel (unlike mac80211_hwsim or USB gadget), its code paths are unreachable in standard virtualized environments like GCE or QEMU. Therefore, it cannot be effectively fuzzed.",
"WorthFuzzing": false
}Results: {
"EnableConfigs": null,
"FocusSymbols": [],
"Reasoning": "The patch modifies the ath12k wireless driver, which is a hardware-specific driver for Qualcomm Wi-Fi 7 devices (PCIe/AHB). Since this driver requires physical hardware and lacks software emulation in the kernel (unlike mac80211_hwsim or USB gadget), its code paths are unreachable in standard virtualized environments like GCE or QEMU. Therefore, it cannot be effectively fuzzed.",
"WorthFuzzing": false
} |
| Total Calls | Total Tokens | Avg Tokens | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|
| Total Calls | Total Duration (Seconds) | Avg Duration (Seconds) |
|---|