AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/11/17 20:55 flow patch-triage
3m Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "KMSANReasoning": "",
  "NeedsKMSAN": false,
  "Reasoning": "The patch modifies RX packet processing and decap handling in the Qualcomm ath12k Wi-Fi 7 driver (ath12k). This driver requires specific physical Qualcomm Wi-Fi 7 PCIe or AHB hardware and firmware that are not emulated in standard QEMU/GCE virtualization environments, rendering the modified code structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

1/1 2026/11/17 20:55 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 84eb3ec0c6e83224520c4bab3686fad23e394d3a\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Tue Nov 17 20:55:43 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c\nindex 52838ade1b1d5d..74c2d2affb0d54 100644\n--- a/drivers/net/wireless/ath/ath12k/dp_rx.c\n+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c\n@@ -999,64 +999,103 @@ static void ath12k_dp_rx_h_undecap_nwifi(struct ath12k_pdev_dp *dp_pdev,\n \tmemcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len);\n }\n \n-static void ath12k_dp_rx_h_undecap_raw(struct ath12k_pdev_dp *dp_pdev,\n-\t\t\t\t       struct sk_buff *msdu,\n-\t\t\t\t       enum hal_encrypt_type enctype,\n-\t\t\t\t       struct ieee80211_rx_status *status,\n-\t\t\t\t       bool decrypted)\n+static int ath12k_dp_rx_h_undecap_raw(struct ath12k_pdev_dp *dp_pdev,\n+\t\t\t\t      struct sk_buff *msdu,\n+\t\t\t\t      enum hal_encrypt_type enctype,\n+\t\t\t\t      struct ieee80211_rx_status *status,\n+\t\t\t\t      bool decrypted)\n {\n \tstruct ath12k_dp *dp = dp_pdev-\u003edp;\n \tstruct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu);\n-\tstruct ieee80211_hdr *hdr;\n \tsize_t hdr_len;\n \tsize_t crypto_len;\n+\tint err;\n \n \tif (!rxcb-\u003eis_first_msdu ||\n \t    !(rxcb-\u003eis_first_msdu \u0026\u0026 rxcb-\u003eis_last_msdu)) {\n \t\tWARN_ON_ONCE(1);\n-\t\treturn;\n+\t\treturn 0;\n \t}\n \n-\tskb_trim(msdu, msdu-\u003elen - FCS_LEN);\n+\tif (msdu-\u003elen \u003c= FCS_LEN)\n+\t\treturn -EINVAL;\n \n-\tif (!decrypted)\n-\t\treturn;\n+\terr = pskb_trim(msdu, msdu-\u003elen - FCS_LEN);\n+\tif (err)\n+\t\treturn err;\n \n-\thdr = (void *)msdu-\u003edata;\n+\tif (!decrypted)\n+\t\treturn 0;\n \n \t/* Tail */\n \tif (status-\u003eflag \u0026 RX_FLAG_IV_STRIPPED) {\n-\t\tskb_trim(msdu, msdu-\u003elen -\n-\t\t\t ath12k_dp_rx_crypto_mic_len(dp, enctype));\n+\t\tint icv_len = ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype);\n+\t\tint mic_len = ath12k_dp_rx_crypto_mic_len(dp, enctype);\n \n-\t\tskb_trim(msdu, msdu-\u003elen -\n-\t\t\t ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype));\n+\t\tif (msdu-\u003elen \u003c mic_len + icv_len)\n+\t\t\treturn -EINVAL;\n+\n+\t\terr = pskb_trim(msdu, msdu-\u003elen - (mic_len + icv_len));\n+\t\tif (err)\n+\t\t\treturn err;\n \t} else {\n \t\t/* MIC */\n-\t\tif (status-\u003eflag \u0026 RX_FLAG_MIC_STRIPPED)\n-\t\t\tskb_trim(msdu, msdu-\u003elen -\n-\t\t\t\t ath12k_dp_rx_crypto_mic_len(dp, enctype));\n+\t\tif (status-\u003eflag \u0026 RX_FLAG_MIC_STRIPPED) {\n+\t\t\tint mic_len = ath12k_dp_rx_crypto_mic_len(dp, enctype);\n+\n+\t\t\tif (msdu-\u003elen \u003c mic_len)\n+\t\t\t\treturn -EINVAL;\n+\n+\t\t\terr = pskb_trim(msdu, msdu-\u003elen - mic_len);\n+\t\t\tif (err)\n+\t\t\t\treturn err;\n+\t\t}\n \n \t\t/* ICV */\n-\t\tif (status-\u003eflag \u0026 RX_FLAG_ICV_STRIPPED)\n-\t\t\tskb_trim(msdu, msdu-\u003elen -\n-\t\t\t\t ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype));\n+\t\tif (status-\u003eflag \u0026 RX_FLAG_ICV_STRIPPED) {\n+\t\t\tint icv_len;\n+\n+\t\t\ticv_len = ath12k_dp_rx_crypto_icv_len(dp_pdev,\n+\t\t\t\t\t\t\t      enctype);\n+\t\t\tif (msdu-\u003elen \u003c icv_len)\n+\t\t\t\treturn -EINVAL;\n+\n+\t\t\terr = pskb_trim(msdu, msdu-\u003elen - icv_len);\n+\t\t\tif (err)\n+\t\t\t\treturn err;\n+\t\t}\n \t}\n \n \t/* MMIC */\n-\tif ((status-\u003eflag \u0026 RX_FLAG_MMIC_STRIPPED) \u0026\u0026\n-\t    !ieee80211_has_morefrags(hdr-\u003eframe_control) \u0026\u0026\n-\t    enctype == HAL_ENCRYPT_TYPE_TKIP_MIC)\n-\t\tskb_trim(msdu, msdu-\u003elen - IEEE80211_CCMP_MIC_LEN);\n+\tif (status-\u003eflag \u0026 RX_FLAG_MMIC_STRIPPED) {\n+\t\tstruct ieee80211_hdr *hdr = (void *)msdu-\u003edata;\n+\n+\t\tif (enctype == HAL_ENCRYPT_TYPE_TKIP_MIC \u0026\u0026\n+\t\t    !ieee80211_has_morefrags(hdr-\u003eframe_control)) {\n+\t\t\tif (msdu-\u003elen \u003c MICHAEL_MIC_LEN)\n+\t\t\t\treturn -EINVAL;\n+\n+\t\t\terr = pskb_trim(msdu, msdu-\u003elen - MICHAEL_MIC_LEN);\n+\t\t\tif (err)\n+\t\t\t\treturn err;\n+\t\t}\n+\t}\n \n \t/* Head */\n \tif (status-\u003eflag \u0026 RX_FLAG_IV_STRIPPED) {\n+\t\tstruct ieee80211_hdr *hdr = (void *)msdu-\u003edata;\n+\n \t\thdr_len = ieee80211_hdrlen(hdr-\u003eframe_control);\n \t\tcrypto_len = ath12k_dp_rx_crypto_param_len(dp_pdev, enctype);\n \n+\t\tif (msdu-\u003elen \u003c hdr_len + crypto_len)\n+\t\t\treturn -EINVAL;\n+\n \t\tmemmove(msdu-\u003edata + crypto_len, msdu-\u003edata, hdr_len);\n \t\tskb_pull(msdu, crypto_len);\n \t}\n+\n+\treturn 0;\n }\n \n static void ath12k_get_dot11_hdr_from_rx_desc(struct ath12k_pdev_dp *dp_pdev,\n@@ -1143,11 +1182,11 @@ static void ath12k_dp_rx_h_undecap_eth(struct ath12k_pdev_dp *dp_pdev,\n \tether_addr_copy(ieee80211_get_SA(hdr), sa);\n }\n \n-void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\n-\t\t\t    enum hal_encrypt_type enctype,\n-\t\t\t    bool decrypted,\n-\t\t\t    struct hal_rx_desc_data *rx_info,\n-\t\t\t    struct ath12k_dp_peer *peer)\n+int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\n+\t\t\t   enum hal_encrypt_type enctype,\n+\t\t\t   bool decrypted,\n+\t\t\t   struct hal_rx_desc_data *rx_info,\n+\t\t\t   struct ath12k_dp_peer *peer)\n {\n \tenum ath12k_dp_rx_decap_type decap_type = rx_info-\u003edecap_type;\n \tstruct ethhdr *ehdr;\n@@ -1156,10 +1195,16 @@ void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu\n \tcase DP_RX_DECAP_TYPE_NATIVE_WIFI:\n \t\tath12k_dp_rx_h_undecap_nwifi(dp_pdev, msdu, enctype, rx_info);\n \t\tbreak;\n-\tcase DP_RX_DECAP_TYPE_RAW:\n-\t\tath12k_dp_rx_h_undecap_raw(dp_pdev, msdu, enctype, rx_info-\u003erx_status,\n-\t\t\t\t\t   decrypted);\n+\tcase DP_RX_DECAP_TYPE_RAW: {\n+\t\tint err;\n+\n+\t\terr = ath12k_dp_rx_h_undecap_raw(dp_pdev, msdu, enctype,\n+\t\t\t\t\t\t rx_info-\u003erx_status,\n+\t\t\t\t\t\t decrypted);\n+\t\tif (err)\n+\t\t\treturn err;\n \t\tbreak;\n+\t}\n \tcase DP_RX_DECAP_TYPE_ETHERNET2_DIX:\n \t\tehdr = (struct ethhdr *)msdu-\u003edata;\n \n@@ -1201,6 +1246,8 @@ void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu\n \t\t}\n \t\trx_info-\u003erx_status-\u003eflag |= RX_FLAG_8023;\n \t}\n+\n+\treturn 0;\n }\n EXPORT_SYMBOL(ath12k_dp_rx_h_undecap);\n \ndiff --git a/drivers/net/wireless/ath/ath12k/dp_rx.h b/drivers/net/wireless/ath/ath12k/dp_rx.h\nindex a78efa1d95699b..5bc5b28670b726 100644\n--- a/drivers/net/wireless/ath/ath12k/dp_rx.h\n+++ b/drivers/net/wireless/ath/ath12k/dp_rx.h\n@@ -197,11 +197,11 @@ void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,\n \thal-\u003eops-\u003eextract_rx_desc_data(rx_info, rx_desc, ldesc);\n }\n \n-void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\n-\t\t\t    enum hal_encrypt_type enctype,\n-\t\t\t    bool decrypted,\n-\t\t\t    struct hal_rx_desc_data *rx_info,\n-\t\t\t    struct ath12k_dp_peer *peer);\n+int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\n+\t\t\t   enum hal_encrypt_type enctype,\n+\t\t\t   bool decrypted,\n+\t\t\t   struct hal_rx_desc_data *rx_info,\n+\t\t\t   struct ath12k_dp_peer *peer);\n void ath12k_dp_rx_deliver_msdu(struct ath12k_pdev_dp *dp_pdev, struct napi_struct *napi,\n \t\t\t       struct sk_buff *msdu,\n \t\t\t       struct hal_rx_desc_data *rx_info);\ndiff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\nindex 473887ed4bb1cf..c51faac4eb20fb 100644\n--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\n+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c\n@@ -359,6 +359,7 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,\n \tstruct ath12k_dp_peer *peer;\n \tstruct ieee80211_rx_status *rx_status = rx_info-\u003erx_status;\n \tu32 err_bitmap = rx_info-\u003eerr_bitmap;\n+\tint err;\n \n \tRCU_LOCKDEP_WARN(!rcu_read_lock_held(),\n \t\t\t \"dp_rx_h_mpdu called without rcu lock\");\n@@ -424,8 +425,10 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,\n \t}\n \n \tath12k_wifi7_dp_rx_h_csum_offload(msdu, rx_info);\n-\tath12k_dp_rx_h_undecap(dp_pdev, msdu, enctype, is_decrypted, rx_info,\n-\t\t\t       peer);\n+\terr = ath12k_dp_rx_h_undecap(dp_pdev, msdu, enctype, is_decrypted,\n+\t\t\t\t     rx_info, peer);\n+\tif (err)\n+\t\treturn err;\n \n \tif (!is_decrypted || rx_info-\u003eis_mcbc)\n \t\treturn 0;\n@@ -438,114 +441,28 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,\n \treturn 0;\n }\n \n-static int ath12k_wifi7_dp_rx_msdu_coalesce(struct ath12k_hal *hal,\n-\t\t\t\t\t    struct sk_buff_head *msdu_list,\n-\t\t\t\t\t    struct sk_buff *first, struct sk_buff *last,\n-\t\t\t\t\t    u8 l3pad_bytes, int msdu_len,\n-\t\t\t\t\t    struct hal_rx_desc_data *rx_info)\n-{\n-\tstruct sk_buff *skb;\n-\tstruct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(first);\n-\tint buf_first_hdr_len, buf_first_len;\n-\tstruct hal_rx_desc *ldesc;\n-\tint space_extra, rem_len, buf_len;\n-\tu32 hal_rx_desc_sz = hal-\u003ehal_desc_sz;\n-\tbool is_continuation;\n-\n-\t/* As the msdu is spread across multiple rx buffers,\n-\t * find the offset to the start of msdu for computing\n-\t * the length of the msdu in the first buffer.\n-\t */\n-\tbuf_first_hdr_len = hal_rx_desc_sz + l3pad_bytes;\n-\tbuf_first_len = DP_RX_BUFFER_SIZE - buf_first_hdr_len;\n-\n-\tif (WARN_ON_ONCE(msdu_len \u003c= buf_first_len)) {\n-\t\tskb_put(first, buf_first_hdr_len + msdu_len);\n-\t\tskb_pull(first, buf_first_hdr_len);\n-\t\treturn 0;\n-\t}\n-\n-\tldesc = (struct hal_rx_desc *)last-\u003edata;\n-\trxcb-\u003eis_first_msdu = rx_info-\u003eis_first_msdu;\n-\trxcb-\u003eis_last_msdu = rx_info-\u003eis_last_msdu;\n-\n-\t/* MSDU spans over multiple buffers because the length of the MSDU\n-\t * exceeds DP_RX_BUFFER_SIZE - HAL_RX_DESC_SIZE. So assume the data\n-\t * in the first buf is of length DP_RX_BUFFER_SIZE - HAL_RX_DESC_SIZE.\n-\t */\n-\tskb_put(first, DP_RX_BUFFER_SIZE);\n-\tskb_pull(first, buf_first_hdr_len);\n-\n-\t/* When an MSDU spread over multiple buffers MSDU_END\n-\t * tlvs are valid only in the last buffer. Copy those tlvs.\n-\t */\n-\tath12k_dp_rx_desc_end_tlv_copy(hal, rxcb-\u003erx_desc, ldesc);\n-\n-\tspace_extra = msdu_len - (buf_first_len + skb_tailroom(first));\n-\tif (space_extra \u003e 0 \u0026\u0026\n-\t    (pskb_expand_head(first, 0, space_extra, GFP_ATOMIC) \u003c 0)) {\n-\t\t/* Free up all buffers of the MSDU */\n-\t\twhile ((skb = __skb_dequeue(msdu_list)) != NULL) {\n-\t\t\trxcb = ATH12K_SKB_RXCB(skb);\n-\t\t\tif (!rxcb-\u003eis_continuation) {\n-\t\t\t\tdev_kfree_skb_any(skb);\n-\t\t\t\tbreak;\n-\t\t\t}\n-\t\t\tdev_kfree_skb_any(skb);\n-\t\t}\n-\t\treturn -ENOMEM;\n-\t}\n-\n-\trem_len = msdu_len - buf_first_len;\n-\twhile ((skb = __skb_dequeue(msdu_list)) != NULL \u0026\u0026 rem_len \u003e 0) {\n-\t\trxcb = ATH12K_SKB_RXCB(skb);\n-\t\tis_continuation = rxcb-\u003eis_continuation;\n-\t\tif (is_continuation)\n-\t\t\tbuf_len = DP_RX_BUFFER_SIZE - hal_rx_desc_sz;\n-\t\telse\n-\t\t\tbuf_len = rem_len;\n-\n-\t\tif (buf_len \u003e (DP_RX_BUFFER_SIZE - hal_rx_desc_sz)) {\n-\t\t\tWARN_ON_ONCE(1);\n-\t\t\tdev_kfree_skb_any(skb);\n-\t\t\treturn -EINVAL;\n-\t\t}\n-\n-\t\tskb_put(skb, buf_len + hal_rx_desc_sz);\n-\t\tskb_pull(skb, hal_rx_desc_sz);\n-\t\tskb_copy_from_linear_data(skb, skb_put(first, buf_len),\n-\t\t\t\t\t  buf_len);\n-\t\tdev_kfree_skb_any(skb);\n-\n-\t\trem_len -= buf_len;\n-\t\tif (!is_continuation)\n-\t\t\tbreak;\n-\t}\n-\n-\treturn 0;\n-}\n-\n static int ath12k_wifi7_dp_rx_process_msdu(struct ath12k_pdev_dp *dp_pdev,\n \t\t\t\t\t   struct sk_buff *msdu,\n \t\t\t\t\t   struct sk_buff_head *msdu_list,\n-\t\t\t\t\t   struct hal_rx_desc_data *rx_info)\n+\t\t\t\t\t   struct hal_rx_desc_data *rx_info,\n+\t\t\t\t\t   struct list_head *list)\n {\n-\tstruct ath12k_dp *dp = dp_pdev-\u003edp;\n+\tstruct ieee80211_rx_status *rx_status = IEEE80211_SKB_RXCB(msdu);\n+\tstruct ieee80211_rx_status *status = rx_info-\u003erx_status;\n+\tstruct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu);\n+\tstruct sk_buff *last_buf, *frag_list = NULL;\n+\tstruct ieee80211_link_sta *link_sta = NULL;\n \tstruct hal_rx_desc *rx_desc, *lrx_desc;\n-\tstruct ath12k_skb_rxcb *rxcb;\n-\tstruct sk_buff *last_buf;\n+\tint ret, msdu_len, rx_desc_headroom;\n+\tstruct ath12k_dp *dp = dp_pdev-\u003edp;\n \tstruct ath12k_hal *hal = dp-\u003ehal;\n-\tu8 l3_pad_bytes;\n-\tu16 msdu_len;\n-\tint ret;\n-\tu32 hal_rx_desc_sz = hal-\u003ehal_desc_sz;\n+\tstruct ath12k_dp_peer *peer;\n \n \tlast_buf = ath12k_dp_rx_get_msdu_last_buf(msdu_list, msdu);\n \tif (!last_buf) {\n \t\tath12k_warn(dp-\u003eab,\n \t\t\t    \"No valid Rx buffer to access MSDU_END tlv\\n\");\n-\t\tret = -EIO;\n-\t\tgoto free_out;\n+\t\treturn -EIO;\n \t}\n \n \trx_desc = (struct hal_rx_desc *)msdu-\u003edata;\n@@ -554,56 +471,131 @@ static int ath12k_wifi7_dp_rx_process_msdu(struct ath12k_pdev_dp *dp_pdev,\n \tath12k_dp_extract_rx_desc_data(hal, rx_info, rx_desc, lrx_desc);\n \tif (!rx_info-\u003emsdu_done) {\n \t\tath12k_warn(dp-\u003eab, \"msdu_done bit in msdu_end is not set\\n\");\n-\t\tret = -EIO;\n-\t\tgoto free_out;\n+\t\treturn -EIO;\n \t}\n \n-\trxcb = ATH12K_SKB_RXCB(msdu);\n \trxcb-\u003erx_desc = rx_desc;\n+\trxcb-\u003eis_first_msdu = rx_info-\u003eis_first_msdu;\n+\trxcb-\u003eis_last_msdu = rx_info-\u003eis_last_msdu;\n \tmsdu_len = rx_info-\u003emsdu_len;\n-\tl3_pad_bytes = rx_info-\u003el3_pad_bytes;\n+\trx_desc_headroom = hal-\u003ehal_desc_sz + rx_info-\u003el3_pad_bytes;\n+\t/* When an MSDU spread over multiple buffers MSDU_END\n+\t * tlvs are valid only in the last buffer. Copy those tlvs.\n+\t */\n+\tif (rxcb-\u003eis_continuation)\n+\t\tath12k_dp_rx_desc_end_tlv_copy(hal, rxcb-\u003erx_desc, lrx_desc);\n \n \tif (rxcb-\u003eis_frag) {\n-\t\tskb_pull(msdu, hal_rx_desc_sz);\n-\t} else if (!rxcb-\u003eis_continuation) {\n-\t\tif ((msdu_len + hal_rx_desc_sz) \u003e DP_RX_BUFFER_SIZE) {\n-\t\t\tret = -EINVAL;\n-\t\t\tath12k_warn(dp-\u003eab, \"invalid msdu len %u\\n\", msdu_len);\n-\t\t\tath12k_dbg_dump(dp-\u003eab, ATH12K_DBG_DATA, NULL, \"\", rx_desc,\n-\t\t\t\t\tsizeof(*rx_desc));\n-\t\t\tgoto free_out;\n-\t\t}\n-\t\tskb_put(msdu, hal_rx_desc_sz + l3_pad_bytes + msdu_len);\n-\t\tskb_pull(msdu, hal_rx_desc_sz + l3_pad_bytes);\n+\t\tskb_pull(msdu, hal-\u003ehal_desc_sz);\n \t} else {\n-\t\tret = ath12k_wifi7_dp_rx_msdu_coalesce(hal, msdu_list,\n-\t\t\t\t\t\t       msdu, last_buf,\n-\t\t\t\t\t\t       l3_pad_bytes, msdu_len,\n-\t\t\t\t\t\t       rx_info);\n-\t\tif (ret) {\n-\t\t\tath12k_warn(dp-\u003eab,\n-\t\t\t\t    \"failed to coalesce msdu rx buffer%d\\n\", ret);\n-\t\t\tgoto free_out;\n+\t\tif (!rxcb-\u003eis_continuation \u0026\u0026\n+\t\t    msdu_len + hal-\u003ehal_desc_sz \u003e DP_RX_BUFFER_SIZE) {\n+\t\t\tath12k_warn(dp-\u003eab, \"invalid msdu len %u\\n\", msdu_len);\n+\t\t\tath12k_dbg_dump(dp-\u003eab, ATH12K_DBG_DATA, NULL, \"\",\n+\t\t\t\t\trx_desc, sizeof(*rx_desc));\n+\t\t\treturn -EINVAL;\n \t\t}\n+\n+\t\tif (!rxcb-\u003eis_continuation ||\n+\t\t    msdu_len \u003c= DP_RX_BUFFER_SIZE - rx_desc_headroom)\n+\t\t\tskb_put(msdu, rx_desc_headroom + msdu_len);\n+\t\telse\n+\t\t\tskb_put(msdu, DP_RX_BUFFER_SIZE);\n+\t\tskb_pull(msdu, rx_desc_headroom);\n \t}\n \n-\tif (unlikely(!ath12k_dp_rx_check_nwifi_hdr_len_valid(dp, msdu,\n-\t\t\t\t\t\t\t     rx_info))) {\n-\t\tret = -EINVAL;\n-\t\tgoto free_out;\n+\tif (!rxcb-\u003eis_frag \u0026\u0026 rxcb-\u003eis_continuation) {\n+\t\tunsigned int frag_len = 0, truesize = 0;\n+\t\tstruct sk_buff *skb, *last_frag;\n+\n+\t\t/* The MSDU is spread across multiple rx buffers */\n+\t\tmsdu_len -= (DP_RX_BUFFER_SIZE - rx_desc_headroom);\n+\n+\t\twhile (msdu_len \u003e 0) {\n+\t\t\tstruct ath12k_skb_rxcb *cb;\n+\t\t\tint len;\n+\n+\t\t\tskb = __skb_dequeue(msdu_list);\n+\t\t\tif (!skb) {\n+\t\t\t\tWARN_ON_ONCE(msdu_len \u003e 0);\n+\t\t\t\tgoto free_frag_list;\n+\t\t\t}\n+\n+\t\t\tcb = ATH12K_SKB_RXCB(skb);\n+\t\t\tif (cb-\u003eis_continuation)\n+\t\t\t\tlen = DP_RX_BUFFER_SIZE - hal-\u003ehal_desc_sz;\n+\t\t\telse\n+\t\t\t\tlen = msdu_len;\n+\n+\t\t\tif (len \u003e DP_RX_BUFFER_SIZE - hal-\u003ehal_desc_sz) {\n+\t\t\t\tdev_kfree_skb_any(skb);\n+\t\t\t\tgoto free_frag_list;\n+\t\t\t}\n+\n+\t\t\tskb_put(skb, len + hal-\u003ehal_desc_sz);\n+\t\t\tskb_pull(skb, hal-\u003ehal_desc_sz);\n+\n+\t\t\tif (!frag_list)\n+\t\t\t\tfrag_list = skb;\n+\t\t\telse\n+\t\t\t\tlast_frag-\u003enext = skb;\n+\n+\t\t\tskb-\u003enext = NULL;\n+\t\t\tlast_frag = skb;\n+\n+\t\t\tmsdu_len -= len;\n+\t\t\tfrag_len += skb-\u003elen;\n+\t\t\ttruesize += skb-\u003etruesize;\n+\t\t\tif (!cb-\u003eis_continuation)\n+\t\t\t\tbreak;\n+\t\t}\n+\n+\t\tif (frag_list) {\n+\t\t\tskb_shinfo(msdu)-\u003efrag_list = frag_list;\n+\t\t\tmsdu-\u003edata_len = frag_len;\n+\t\t\tmsdu-\u003elen += frag_len;\n+\t\t\tmsdu-\u003etruesize += truesize;\n+\t\t\tmsdu-\u003enext = NULL;\n+\t\t}\n \t}\n \n+\tif (!ath12k_dp_rx_check_nwifi_hdr_len_valid(dp, msdu, rx_info))\n+\t\treturn -EINVAL;\n+\n \tath12k_dp_rx_h_ppdu(dp_pdev, rx_info);\n \tret = ath12k_wifi7_dp_rx_h_mpdu(dp_pdev, msdu, rx_info);\n \tif (ret)\n-\t\tgoto free_out;\n+\t\treturn ret;\n+\n+\tpeer = ath12k_dp_peer_find_by_peerid(dp_pdev, rxcb-\u003epeer_id);\n+\tif (peer) {\n+\t\tstruct ieee80211_sta *sta = peer-\u003esta;\n \n-\trx_info-\u003erx_status-\u003eflag |= RX_FLAG_SKIP_MONITOR | RX_FLAG_DUP_VALIDATED;\n+\t\tif (sta \u0026\u0026 sta-\u003evalid_links) {\n+\t\t\tint link_id = peer-\u003elink_id_map[rxcb-\u003edrv_link_id];\n+\n+\t\t\tlink_sta = rcu_dereference(sta-\u003elink[link_id]);\n+\t\t} else if (sta) {\n+\t\t\tlink_sta = \u0026sta-\u003edeflink;\n+\t\t}\n+\t}\n+\n+\tstatus-\u003eflag |= RX_FLAG_SKIP_MONITOR | RX_FLAG_DUP_VALIDATED;\n+\t*rx_status = *status;\n+\n+\tieee80211_rx_list(ath12k_pdev_dp_to_hw(dp_pdev), link_sta, msdu, list);\n \n \treturn 0;\n \n-free_out:\n-\treturn ret;\n+free_frag_list:\n+\twhile (frag_list) {\n+\t\tstruct sk_buff *skb = frag_list;\n+\n+\t\tfrag_list = frag_list-\u003enext;\n+\t\tdev_kfree_skb_any(skb);\n+\t}\n+\n+\treturn -EINVAL;\n }\n \n static void\n@@ -615,8 +607,8 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,\n \tstruct ath12k_hw_group *ag = dp-\u003eag;\n \tstruct ath12k_dp_hw_group *dp_hw_grp = \u0026ag-\u003edp_hw_grp;\n \tstruct ieee80211_rx_status rx_status = {};\n+\tstruct sk_buff *msdu, *skb, *tmp;\n \tstruct ath12k_skb_rxcb *rxcb;\n-\tstruct sk_buff *msdu;\n \tstruct ath12k *ar;\n \tstruct ath12k_pdev_dp *dp_pdev;\n \tstruct ath12k_hw_link *hw_links = ag-\u003ehw_links;\n@@ -624,6 +616,7 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,\n \tstruct hal_rx_desc_data rx_info;\n \tstruct ath12k_dp *partner_dp;\n \tu8 drv_link_id, pdev_idx, device_id;\n+\tLIST_HEAD(list);\n \tint ret;\n \n \tif (skb_queue_empty(msdu_list))\n@@ -659,7 +652,8 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,\n \t\t\tcontinue;\n \t\t}\n \n-\t\tret = ath12k_wifi7_dp_rx_process_msdu(dp_pdev, msdu, msdu_list, \u0026rx_info);\n+\t\tret = ath12k_wifi7_dp_rx_process_msdu(dp_pdev, msdu, msdu_list,\n+\t\t\t\t\t\t      \u0026rx_info, \u0026list);\n \t\tif (ret) {\n \t\t\tath12k_dbg(dp-\u003eab, ATH12K_DBG_DATA,\n \t\t\t\t   \"Unable to process msdu %d\", ret);\n@@ -670,7 +664,11 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,\n \t\t\tdp-\u003edevice_stats.sent_to_stack[ring_id][partner_dp-\u003edevice_id]++;\n \t\telse\n \t\t\tWARN_ON_ONCE(1);\n-\t\tath12k_dp_rx_deliver_msdu(dp_pdev, napi, msdu, \u0026rx_info);\n+\t}\n+\n+\tlist_for_each_entry_safe(skb, tmp, \u0026list, list) {\n+\t\tskb_list_del_init(skb);\n+\t\tnapi_gro_receive(napi, skb);\n \t}\n \n \trcu_read_unlock();\n@@ -1034,7 +1032,7 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,\n \tstruct ieee80211_rx_status *rxs = IEEE80211_SKB_RXCB(msdu);\n \tstruct ieee80211_key_conf *key_conf;\n \tstruct ieee80211_hdr *hdr;\n-\tu8 mic[IEEE80211_CCMP_MIC_LEN];\n+\tu8 mic[MICHAEL_MIC_LEN];\n \tint head_len, tail_len;\n \tsize_t data_len;\n \tu32 hdr_len, hal_rx_desc_sz = hal-\u003ehal_desc_sz;\n@@ -1050,7 +1048,7 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,\n \thdr = (struct ieee80211_hdr *)(msdu-\u003edata + hal_rx_desc_sz);\n \thdr_len = ieee80211_hdrlen(hdr-\u003eframe_control);\n \thead_len = hdr_len + hal_rx_desc_sz + IEEE80211_TKIP_IV_LEN;\n-\ttail_len = IEEE80211_CCMP_MIC_LEN + IEEE80211_TKIP_ICV_LEN + FCS_LEN;\n+\ttail_len = MICHAEL_MIC_LEN + IEEE80211_TKIP_ICV_LEN + FCS_LEN;\n \n \tif (!is_multicast_ether_addr(hdr-\u003eaddr1))\n \t\tkey_idx = peer-\u003eucast_keyidx;\n@@ -1059,12 +1057,17 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,\n \n \tkey_conf = peer-\u003ekeys[key_idx];\n \n+\tif (msdu-\u003elen \u003c head_len + tail_len) {\n+\t\tdev_kfree_skb_any(msdu);\n+\t\treturn -EINVAL;\n+\t}\n+\n \tdata = msdu-\u003edata + head_len;\n \tdata_len = msdu-\u003elen - head_len - tail_len;\n \tkey = \u0026key_conf-\u003ekey[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY];\n \n \tmichael_mic(key, hdr, data, data_len, mic);\n-\tif (memcmp(mic, data + data_len, IEEE80211_CCMP_MIC_LEN))\n+\tif (memcmp(mic, data + data_len, MICHAEL_MIC_LEN))\n \t\tgoto mic_fail;\n \n \treturn 0;\n@@ -1086,9 +1089,12 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,\n \t}\n \n \tath12k_dp_rx_h_ppdu(dp_pdev, rx_info);\n-\tath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC, true,\n-\t\t\t       rx_info, NULL);\n-\tieee80211_rx(ath12k_pdev_dp_to_hw(dp_pdev), msdu);\n+\tif (!ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,\n+\t\t\t\t    true, rx_info, NULL))\n+\t\tieee80211_rx(ath12k_pdev_dp_to_hw(dp_pdev), msdu);\n+\telse\n+\t\tdev_kfree_skb_any(msdu);\n+\n \treturn -EINVAL;\n }\n \n@@ -1741,8 +1747,10 @@ static bool ath12k_wifi7_dp_rx_h_tkip_mic_err(struct ath12k_pdev_dp *dp_pdev,\n \trx_info-\u003erx_status-\u003eflag |= (RX_FLAG_MMIC_STRIPPED | RX_FLAG_MMIC_ERROR |\n \t\t\t\t     RX_FLAG_DECRYPTED);\n \n-\tath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC, false,\n-\t\t\t       rx_info, NULL);\n+\tif (ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,\n+\t\t\t\t   false, rx_info, NULL))\n+\t\treturn true;\n+\n \treturn false;\n }\n \n"
}

2/1 2026/11/17 20:55 agent patch-evaluator
3m Model:
core

Args:
null

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies RX packet processing and decap handling in the Qualcomm ath12k Wi-Fi 7 driver (ath12k). This driver requires specific physical Qualcomm Wi-Fi 7 PCIe or AHB hardware and firmware that are not emulated in standard QEMU/GCE virtualization environments, rendering the modified code structurally unreachable for fuzzing.",
  "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 84eb3ec0c6e83224520c4bab3686fad23e394d3a
Author: syz-cluster <triage@syzkaller.com>
Date:   Tue Nov 17 20:55:43 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.c b/drivers/net/wireless/ath/ath12k/dp_rx.c
index 52838ade1b1d5d..74c2d2affb0d54 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.c
@@ -999,64 +999,103 @@ static void ath12k_dp_rx_h_undecap_nwifi(struct ath12k_pdev_dp *dp_pdev,
 	memcpy(skb_push(msdu, hdr_len), decap_hdr, hdr_len);
 }
 
-static void ath12k_dp_rx_h_undecap_raw(struct ath12k_pdev_dp *dp_pdev,
-				       struct sk_buff *msdu,
-				       enum hal_encrypt_type enctype,
-				       struct ieee80211_rx_status *status,
-				       bool decrypted)
+static int ath12k_dp_rx_h_undecap_raw(struct ath12k_pdev_dp *dp_pdev,
+				      struct sk_buff *msdu,
+				      enum hal_encrypt_type enctype,
+				      struct ieee80211_rx_status *status,
+				      bool decrypted)
 {
 	struct ath12k_dp *dp = dp_pdev->dp;
 	struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu);
-	struct ieee80211_hdr *hdr;
 	size_t hdr_len;
 	size_t crypto_len;
+	int err;
 
 	if (!rxcb->is_first_msdu ||
 	    !(rxcb->is_first_msdu && rxcb->is_last_msdu)) {
 		WARN_ON_ONCE(1);
-		return;
+		return 0;
 	}
 
-	skb_trim(msdu, msdu->len - FCS_LEN);
+	if (msdu->len <= FCS_LEN)
+		return -EINVAL;
 
-	if (!decrypted)
-		return;
+	err = pskb_trim(msdu, msdu->len - FCS_LEN);
+	if (err)
+		return err;
 
-	hdr = (void *)msdu->data;
+	if (!decrypted)
+		return 0;
 
 	/* Tail */
 	if (status->flag & RX_FLAG_IV_STRIPPED) {
-		skb_trim(msdu, msdu->len -
-			 ath12k_dp_rx_crypto_mic_len(dp, enctype));
+		int icv_len = ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype);
+		int mic_len = ath12k_dp_rx_crypto_mic_len(dp, enctype);
 
-		skb_trim(msdu, msdu->len -
-			 ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype));
+		if (msdu->len < mic_len + icv_len)
+			return -EINVAL;
+
+		err = pskb_trim(msdu, msdu->len - (mic_len + icv_len));
+		if (err)
+			return err;
 	} else {
 		/* MIC */
-		if (status->flag & RX_FLAG_MIC_STRIPPED)
-			skb_trim(msdu, msdu->len -
-				 ath12k_dp_rx_crypto_mic_len(dp, enctype));
+		if (status->flag & RX_FLAG_MIC_STRIPPED) {
+			int mic_len = ath12k_dp_rx_crypto_mic_len(dp, enctype);
+
+			if (msdu->len < mic_len)
+				return -EINVAL;
+
+			err = pskb_trim(msdu, msdu->len - mic_len);
+			if (err)
+				return err;
+		}
 
 		/* ICV */
-		if (status->flag & RX_FLAG_ICV_STRIPPED)
-			skb_trim(msdu, msdu->len -
-				 ath12k_dp_rx_crypto_icv_len(dp_pdev, enctype));
+		if (status->flag & RX_FLAG_ICV_STRIPPED) {
+			int icv_len;
+
+			icv_len = ath12k_dp_rx_crypto_icv_len(dp_pdev,
+							      enctype);
+			if (msdu->len < icv_len)
+				return -EINVAL;
+
+			err = pskb_trim(msdu, msdu->len - icv_len);
+			if (err)
+				return err;
+		}
 	}
 
 	/* MMIC */
-	if ((status->flag & RX_FLAG_MMIC_STRIPPED) &&
-	    !ieee80211_has_morefrags(hdr->frame_control) &&
-	    enctype == HAL_ENCRYPT_TYPE_TKIP_MIC)
-		skb_trim(msdu, msdu->len - IEEE80211_CCMP_MIC_LEN);
+	if (status->flag & RX_FLAG_MMIC_STRIPPED) {
+		struct ieee80211_hdr *hdr = (void *)msdu->data;
+
+		if (enctype == HAL_ENCRYPT_TYPE_TKIP_MIC &&
+		    !ieee80211_has_morefrags(hdr->frame_control)) {
+			if (msdu->len < MICHAEL_MIC_LEN)
+				return -EINVAL;
+
+			err = pskb_trim(msdu, msdu->len - MICHAEL_MIC_LEN);
+			if (err)
+				return err;
+		}
+	}
 
 	/* Head */
 	if (status->flag & RX_FLAG_IV_STRIPPED) {
+		struct ieee80211_hdr *hdr = (void *)msdu->data;
+
 		hdr_len = ieee80211_hdrlen(hdr->frame_control);
 		crypto_len = ath12k_dp_rx_crypto_param_len(dp_pdev, enctype);
 
+		if (msdu->len < hdr_len + crypto_len)
+			return -EINVAL;
+
 		memmove(msdu->data + crypto_len, msdu->data, hdr_len);
 		skb_pull(msdu, crypto_len);
 	}
+
+	return 0;
 }
 
 static void ath12k_get_dot11_hdr_from_rx_desc(struct ath12k_pdev_dp *dp_pdev,
@@ -1143,11 +1182,11 @@ static void ath12k_dp_rx_h_undecap_eth(struct ath12k_pdev_dp *dp_pdev,
 	ether_addr_copy(ieee80211_get_SA(hdr), sa);
 }
 
-void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,
-			    enum hal_encrypt_type enctype,
-			    bool decrypted,
-			    struct hal_rx_desc_data *rx_info,
-			    struct ath12k_dp_peer *peer)
+int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,
+			   enum hal_encrypt_type enctype,
+			   bool decrypted,
+			   struct hal_rx_desc_data *rx_info,
+			   struct ath12k_dp_peer *peer)
 {
 	enum ath12k_dp_rx_decap_type decap_type = rx_info->decap_type;
 	struct ethhdr *ehdr;
@@ -1156,10 +1195,16 @@ void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu
 	case DP_RX_DECAP_TYPE_NATIVE_WIFI:
 		ath12k_dp_rx_h_undecap_nwifi(dp_pdev, msdu, enctype, rx_info);
 		break;
-	case DP_RX_DECAP_TYPE_RAW:
-		ath12k_dp_rx_h_undecap_raw(dp_pdev, msdu, enctype, rx_info->rx_status,
-					   decrypted);
+	case DP_RX_DECAP_TYPE_RAW: {
+		int err;
+
+		err = ath12k_dp_rx_h_undecap_raw(dp_pdev, msdu, enctype,
+						 rx_info->rx_status,
+						 decrypted);
+		if (err)
+			return err;
 		break;
+	}
 	case DP_RX_DECAP_TYPE_ETHERNET2_DIX:
 		ehdr = (struct ethhdr *)msdu->data;
 
@@ -1201,6 +1246,8 @@ void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu
 		}
 		rx_info->rx_status->flag |= RX_FLAG_8023;
 	}
+
+	return 0;
 }
 EXPORT_SYMBOL(ath12k_dp_rx_h_undecap);
 
diff --git a/drivers/net/wireless/ath/ath12k/dp_rx.h b/drivers/net/wireless/ath/ath12k/dp_rx.h
index a78efa1d95699b..5bc5b28670b726 100644
--- a/drivers/net/wireless/ath/ath12k/dp_rx.h
+++ b/drivers/net/wireless/ath/ath12k/dp_rx.h
@@ -197,11 +197,11 @@ void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,
 	hal->ops->extract_rx_desc_data(rx_info, rx_desc, ldesc);
 }
 
-void ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,
-			    enum hal_encrypt_type enctype,
-			    bool decrypted,
-			    struct hal_rx_desc_data *rx_info,
-			    struct ath12k_dp_peer *peer);
+int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,
+			   enum hal_encrypt_type enctype,
+			   bool decrypted,
+			   struct hal_rx_desc_data *rx_info,
+			   struct ath12k_dp_peer *peer);
 void ath12k_dp_rx_deliver_msdu(struct ath12k_pdev_dp *dp_pdev, struct napi_struct *napi,
 			       struct sk_buff *msdu,
 			       struct hal_rx_desc_data *rx_info);
diff --git a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
index 473887ed4bb1cf..c51faac4eb20fb 100644
--- a/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
+++ b/drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c
@@ -359,6 +359,7 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,
 	struct ath12k_dp_peer *peer;
 	struct ieee80211_rx_status *rx_status = rx_info->rx_status;
 	u32 err_bitmap = rx_info->err_bitmap;
+	int err;
 
 	RCU_LOCKDEP_WARN(!rcu_read_lock_held(),
 			 "dp_rx_h_mpdu called without rcu lock");
@@ -424,8 +425,10 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,
 	}
 
 	ath12k_wifi7_dp_rx_h_csum_offload(msdu, rx_info);
-	ath12k_dp_rx_h_undecap(dp_pdev, msdu, enctype, is_decrypted, rx_info,
-			       peer);
+	err = ath12k_dp_rx_h_undecap(dp_pdev, msdu, enctype, is_decrypted,
+				     rx_info, peer);
+	if (err)
+		return err;
 
 	if (!is_decrypted || rx_info->is_mcbc)
 		return 0;
@@ -438,114 +441,28 @@ static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,
 	return 0;
 }
 
-static int ath12k_wifi7_dp_rx_msdu_coalesce(struct ath12k_hal *hal,
-					    struct sk_buff_head *msdu_list,
-					    struct sk_buff *first, struct sk_buff *last,
-					    u8 l3pad_bytes, int msdu_len,
-					    struct hal_rx_desc_data *rx_info)
-{
-	struct sk_buff *skb;
-	struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(first);
-	int buf_first_hdr_len, buf_first_len;
-	struct hal_rx_desc *ldesc;
-	int space_extra, rem_len, buf_len;
-	u32 hal_rx_desc_sz = hal->hal_desc_sz;
-	bool is_continuation;
-
-	/* As the msdu is spread across multiple rx buffers,
-	 * find the offset to the start of msdu for computing
-	 * the length of the msdu in the first buffer.
-	 */
-	buf_first_hdr_len = hal_rx_desc_sz + l3pad_bytes;
-	buf_first_len = DP_RX_BUFFER_SIZE - buf_first_hdr_len;
-
-	if (WARN_ON_ONCE(msdu_len <= buf_first_len)) {
-		skb_put(first, buf_first_hdr_len + msdu_len);
-		skb_pull(first, buf_first_hdr_len);
-		return 0;
-	}
-
-	ldesc = (struct hal_rx_desc *)last->data;
-	rxcb->is_first_msdu = rx_info->is_first_msdu;
-	rxcb->is_last_msdu = rx_info->is_last_msdu;
-
-	/* MSDU spans over multiple buffers because the length of the MSDU
-	 * exceeds DP_RX_BUFFER_SIZE - HAL_RX_DESC_SIZE. So assume the data
-	 * in the first buf is of length DP_RX_BUFFER_SIZE - HAL_RX_DESC_SIZE.
-	 */
-	skb_put(first, DP_RX_BUFFER_SIZE);
-	skb_pull(first, buf_first_hdr_len);
-
-	/* When an MSDU spread over multiple buffers MSDU_END
-	 * tlvs are valid only in the last buffer. Copy those tlvs.
-	 */
-	ath12k_dp_rx_desc_end_tlv_copy(hal, rxcb->rx_desc, ldesc);
-
-	space_extra = msdu_len - (buf_first_len + skb_tailroom(first));
-	if (space_extra > 0 &&
-	    (pskb_expand_head(first, 0, space_extra, GFP_ATOMIC) < 0)) {
-		/* Free up all buffers of the MSDU */
-		while ((skb = __skb_dequeue(msdu_list)) != NULL) {
-			rxcb = ATH12K_SKB_RXCB(skb);
-			if (!rxcb->is_continuation) {
-				dev_kfree_skb_any(skb);
-				break;
-			}
-			dev_kfree_skb_any(skb);
-		}
-		return -ENOMEM;
-	}
-
-	rem_len = msdu_len - buf_first_len;
-	while ((skb = __skb_dequeue(msdu_list)) != NULL && rem_len > 0) {
-		rxcb = ATH12K_SKB_RXCB(skb);
-		is_continuation = rxcb->is_continuation;
-		if (is_continuation)
-			buf_len = DP_RX_BUFFER_SIZE - hal_rx_desc_sz;
-		else
-			buf_len = rem_len;
-
-		if (buf_len > (DP_RX_BUFFER_SIZE - hal_rx_desc_sz)) {
-			WARN_ON_ONCE(1);
-			dev_kfree_skb_any(skb);
-			return -EINVAL;
-		}
-
-		skb_put(skb, buf_len + hal_rx_desc_sz);
-		skb_pull(skb, hal_rx_desc_sz);
-		skb_copy_from_linear_data(skb, skb_put(first, buf_len),
-					  buf_len);
-		dev_kfree_skb_any(skb);
-
-		rem_len -= buf_len;
-		if (!is_continuation)
-			break;
-	}
-
-	return 0;
-}
-
 static int ath12k_wifi7_dp_rx_process_msdu(struct ath12k_pdev_dp *dp_pdev,
 					   struct sk_buff *msdu,
 					   struct sk_buff_head *msdu_list,
-					   struct hal_rx_desc_data *rx_info)
+					   struct hal_rx_desc_data *rx_info,
+					   struct list_head *list)
 {
-	struct ath12k_dp *dp = dp_pdev->dp;
+	struct ieee80211_rx_status *rx_status = IEEE80211_SKB_RXCB(msdu);
+	struct ieee80211_rx_status *status = rx_info->rx_status;
+	struct ath12k_skb_rxcb *rxcb = ATH12K_SKB_RXCB(msdu);
+	struct sk_buff *last_buf, *frag_list = NULL;
+	struct ieee80211_link_sta *link_sta = NULL;
 	struct hal_rx_desc *rx_desc, *lrx_desc;
-	struct ath12k_skb_rxcb *rxcb;
-	struct sk_buff *last_buf;
+	int ret, msdu_len, rx_desc_headroom;
+	struct ath12k_dp *dp = dp_pdev->dp;
 	struct ath12k_hal *hal = dp->hal;
-	u8 l3_pad_bytes;
-	u16 msdu_len;
-	int ret;
-	u32 hal_rx_desc_sz = hal->hal_desc_sz;
+	struct ath12k_dp_peer *peer;
 
 	last_buf = ath12k_dp_rx_get_msdu_last_buf(msdu_list, msdu);
 	if (!last_buf) {
 		ath12k_warn(dp->ab,
 			    "No valid Rx buffer to access MSDU_END tlv\n");
-		ret = -EIO;
-		goto free_out;
+		return -EIO;
 	}
 
 	rx_desc = (struct hal_rx_desc *)msdu->data;
@@ -554,56 +471,131 @@ static int ath12k_wifi7_dp_rx_process_msdu(struct ath12k_pdev_dp *dp_pdev,
 	ath12k_dp_extract_rx_desc_data(hal, rx_info, rx_desc, lrx_desc);
 	if (!rx_info->msdu_done) {
 		ath12k_warn(dp->ab, "msdu_done bit in msdu_end is not set\n");
-		ret = -EIO;
-		goto free_out;
+		return -EIO;
 	}
 
-	rxcb = ATH12K_SKB_RXCB(msdu);
 	rxcb->rx_desc = rx_desc;
+	rxcb->is_first_msdu = rx_info->is_first_msdu;
+	rxcb->is_last_msdu = rx_info->is_last_msdu;
 	msdu_len = rx_info->msdu_len;
-	l3_pad_bytes = rx_info->l3_pad_bytes;
+	rx_desc_headroom = hal->hal_desc_sz + rx_info->l3_pad_bytes;
+	/* When an MSDU spread over multiple buffers MSDU_END
+	 * tlvs are valid only in the last buffer. Copy those tlvs.
+	 */
+	if (rxcb->is_continuation)
+		ath12k_dp_rx_desc_end_tlv_copy(hal, rxcb->rx_desc, lrx_desc);
 
 	if (rxcb->is_frag) {
-		skb_pull(msdu, hal_rx_desc_sz);
-	} else if (!rxcb->is_continuation) {
-		if ((msdu_len + hal_rx_desc_sz) > DP_RX_BUFFER_SIZE) {
-			ret = -EINVAL;
-			ath12k_warn(dp->ab, "invalid msdu len %u\n", msdu_len);
-			ath12k_dbg_dump(dp->ab, ATH12K_DBG_DATA, NULL, "", rx_desc,
-					sizeof(*rx_desc));
-			goto free_out;
-		}
-		skb_put(msdu, hal_rx_desc_sz + l3_pad_bytes + msdu_len);
-		skb_pull(msdu, hal_rx_desc_sz + l3_pad_bytes);
+		skb_pull(msdu, hal->hal_desc_sz);
 	} else {
-		ret = ath12k_wifi7_dp_rx_msdu_coalesce(hal, msdu_list,
-						       msdu, last_buf,
-						       l3_pad_bytes, msdu_len,
-						       rx_info);
-		if (ret) {
-			ath12k_warn(dp->ab,
-				    "failed to coalesce msdu rx buffer%d\n", ret);
-			goto free_out;
+		if (!rxcb->is_continuation &&
+		    msdu_len + hal->hal_desc_sz > DP_RX_BUFFER_SIZE) {
+			ath12k_warn(dp->ab, "invalid msdu len %u\n", msdu_len);
+			ath12k_dbg_dump(dp->ab, ATH12K_DBG_DATA, NULL, "",
+					rx_desc, sizeof(*rx_desc));
+			return -EINVAL;
 		}
+
+		if (!rxcb->is_continuation ||
+		    msdu_len <= DP_RX_BUFFER_SIZE - rx_desc_headroom)
+			skb_put(msdu, rx_desc_headroom + msdu_len);
+		else
+			skb_put(msdu, DP_RX_BUFFER_SIZE);
+		skb_pull(msdu, rx_desc_headroom);
 	}
 
-	if (unlikely(!ath12k_dp_rx_check_nwifi_hdr_len_valid(dp, msdu,
-							     rx_info))) {
-		ret = -EINVAL;
-		goto free_out;
+	if (!rxcb->is_frag && rxcb->is_continuation) {
+		unsigned int frag_len = 0, truesize = 0;
+		struct sk_buff *skb, *last_frag;
+
+		/* The MSDU is spread across multiple rx buffers */
+		msdu_len -= (DP_RX_BUFFER_SIZE - rx_desc_headroom);
+
+		while (msdu_len > 0) {
+			struct ath12k_skb_rxcb *cb;
+			int len;
+
+			skb = __skb_dequeue(msdu_list);
+			if (!skb) {
+				WARN_ON_ONCE(msdu_len > 0);
+				goto free_frag_list;
+			}
+
+			cb = ATH12K_SKB_RXCB(skb);
+			if (cb->is_continuation)
+				len = DP_RX_BUFFER_SIZE - hal->hal_desc_sz;
+			else
+				len = msdu_len;
+
+			if (len > DP_RX_BUFFER_SIZE - hal->hal_desc_sz) {
+				dev_kfree_skb_any(skb);
+				goto free_frag_list;
+			}
+
+			skb_put(skb, len + hal->hal_desc_sz);
+			skb_pull(skb, hal->hal_desc_sz);
+
+			if (!frag_list)
+				frag_list = skb;
+			else
+				last_frag->next = skb;
+
+			skb->next = NULL;
+			last_frag = skb;
+
+			msdu_len -= len;
+			frag_len += skb->len;
+			truesize += skb->truesize;
+			if (!cb->is_continuation)
+				break;
+		}
+
+		if (frag_list) {
+			skb_shinfo(msdu)->frag_list = frag_list;
+			msdu->data_len = frag_len;
+			msdu->len += frag_len;
+			msdu->truesize += truesize;
+			msdu->next = NULL;
+		}
 	}
 
+	if (!ath12k_dp_rx_check_nwifi_hdr_len_valid(dp, msdu, rx_info))
+		return -EINVAL;
+
 	ath12k_dp_rx_h_ppdu(dp_pdev, rx_info);
 	ret = ath12k_wifi7_dp_rx_h_mpdu(dp_pdev, msdu, rx_info);
 	if (ret)
-		goto free_out;
+		return ret;
+
+	peer = ath12k_dp_peer_find_by_peerid(dp_pdev, rxcb->peer_id);
+	if (peer) {
+		struct ieee80211_sta *sta = peer->sta;
 
-	rx_info->rx_status->flag |= RX_FLAG_SKIP_MONITOR | RX_FLAG_DUP_VALIDATED;
+		if (sta && sta->valid_links) {
+			int link_id = peer->link_id_map[rxcb->drv_link_id];
+
+			link_sta = rcu_dereference(sta->link[link_id]);
+		} else if (sta) {
+			link_sta = &sta->deflink;
+		}
+	}
+
+	status->flag |= RX_FLAG_SKIP_MONITOR | RX_FLAG_DUP_VALIDATED;
+	*rx_status = *status;
+
+	ieee80211_rx_list(ath12k_pdev_dp_to_hw(dp_pdev), link_sta, msdu, list);
 
 	return 0;
 
-free_out:
-	return ret;
+free_frag_list:
+	while (frag_list) {
+		struct sk_buff *skb = frag_list;
+
+		frag_list = frag_list->next;
+		dev_kfree_skb_any(skb);
+	}
+
+	return -EINVAL;
 }
 
 static void
@@ -615,8 +607,8 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,
 	struct ath12k_hw_group *ag = dp->ag;
 	struct ath12k_dp_hw_group *dp_hw_grp = &ag->dp_hw_grp;
 	struct ieee80211_rx_status rx_status = {};
+	struct sk_buff *msdu, *skb, *tmp;
 	struct ath12k_skb_rxcb *rxcb;
-	struct sk_buff *msdu;
 	struct ath12k *ar;
 	struct ath12k_pdev_dp *dp_pdev;
 	struct ath12k_hw_link *hw_links = ag->hw_links;
@@ -624,6 +616,7 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,
 	struct hal_rx_desc_data rx_info;
 	struct ath12k_dp *partner_dp;
 	u8 drv_link_id, pdev_idx, device_id;
+	LIST_HEAD(list);
 	int ret;
 
 	if (skb_queue_empty(msdu_list))
@@ -659,7 +652,8 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,
 			continue;
 		}
 
-		ret = ath12k_wifi7_dp_rx_process_msdu(dp_pdev, msdu, msdu_list, &rx_info);
+		ret = ath12k_wifi7_dp_rx_process_msdu(dp_pdev, msdu, msdu_list,
+						      &rx_info, &list);
 		if (ret) {
 			ath12k_dbg(dp->ab, ATH12K_DBG_DATA,
 				   "Unable to process msdu %d", ret);
@@ -670,7 +664,11 @@ ath12k_wifi7_dp_rx_process_received_packets(struct ath12k_dp *dp,
 			dp->device_stats.sent_to_stack[ring_id][partner_dp->device_id]++;
 		else
 			WARN_ON_ONCE(1);
-		ath12k_dp_rx_deliver_msdu(dp_pdev, napi, msdu, &rx_info);
+	}
+
+	list_for_each_entry_safe(skb, tmp, &list, list) {
+		skb_list_del_init(skb);
+		napi_gro_receive(napi, skb);
 	}
 
 	rcu_read_unlock();
@@ -1034,7 +1032,7 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,
 	struct ieee80211_rx_status *rxs = IEEE80211_SKB_RXCB(msdu);
 	struct ieee80211_key_conf *key_conf;
 	struct ieee80211_hdr *hdr;
-	u8 mic[IEEE80211_CCMP_MIC_LEN];
+	u8 mic[MICHAEL_MIC_LEN];
 	int head_len, tail_len;
 	size_t data_len;
 	u32 hdr_len, hal_rx_desc_sz = hal->hal_desc_sz;
@@ -1050,7 +1048,7 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,
 	hdr = (struct ieee80211_hdr *)(msdu->data + hal_rx_desc_sz);
 	hdr_len = ieee80211_hdrlen(hdr->frame_control);
 	head_len = hdr_len + hal_rx_desc_sz + IEEE80211_TKIP_IV_LEN;
-	tail_len = IEEE80211_CCMP_MIC_LEN + IEEE80211_TKIP_ICV_LEN + FCS_LEN;
+	tail_len = MICHAEL_MIC_LEN + IEEE80211_TKIP_ICV_LEN + FCS_LEN;
 
 	if (!is_multicast_ether_addr(hdr->addr1))
 		key_idx = peer->ucast_keyidx;
@@ -1059,12 +1057,17 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,
 
 	key_conf = peer->keys[key_idx];
 
+	if (msdu->len < head_len + tail_len) {
+		dev_kfree_skb_any(msdu);
+		return -EINVAL;
+	}
+
 	data = msdu->data + head_len;
 	data_len = msdu->len - head_len - tail_len;
 	key = &key_conf->key[NL80211_TKIP_DATA_OFFSET_RX_MIC_KEY];
 
 	michael_mic(key, hdr, data, data_len, mic);
-	if (memcmp(mic, data + data_len, IEEE80211_CCMP_MIC_LEN))
+	if (memcmp(mic, data + data_len, MICHAEL_MIC_LEN))
 		goto mic_fail;
 
 	return 0;
@@ -1086,9 +1089,12 @@ static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,
 	}
 
 	ath12k_dp_rx_h_ppdu(dp_pdev, rx_info);
-	ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC, true,
-			       rx_info, NULL);
-	ieee80211_rx(ath12k_pdev_dp_to_hw(dp_pdev), msdu);
+	if (!ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,
+				    true, rx_info, NULL))
+		ieee80211_rx(ath12k_pdev_dp_to_hw(dp_pdev), msdu);
+	else
+		dev_kfree_skb_any(msdu);
+
 	return -EINVAL;
 }
 
@@ -1741,8 +1747,10 @@ static bool ath12k_wifi7_dp_rx_h_tkip_mic_err(struct ath12k_pdev_dp *dp_pdev,
 	rx_info->rx_status->flag |= (RX_FLAG_MMIC_STRIPPED | RX_FLAG_MMIC_ERROR |
 				     RX_FLAG_DECRYPTED);
 
-	ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC, false,
-			       rx_info, NULL);
+	if (ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,
+				   false, rx_info, NULL))
+		return true;
+
 	return false;
 }
 

3/2 2026/11/17 20:55 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 12285
							output: 45
							thoughts: 443
						

Thoughts:
**Analyzing the Patch: Ath12k and Fuzzing Potential**

Okay, let's dive into this patch. I see modifications in `drivers/net/wireless/ath/ath12k/dp_rx.c`, `drivers/net/wireless/ath/ath12k/dp_rx.h`, and `drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c`. Right away, my expert instinct flags this as an ath12k patch. That's Qualcomm's Wi-Fi 7 driver, isn't it? My first question always is, is this reachable? Can we even get to this code in a standard fuzzing environment like syzkaller, QEMU, or even GCE?

The guidelines are clear: reachability is the deciding factor. If it's structurally unreachable, no fuzzing, no matter what complex logic it touches. Section 2 hammers this home with examples: vendor-specific hardware like PCIe switches, SmartNICs, or GPU drivers are off-limits because they need specific hardware not emulated in QEMU.

Now, let's think about ath12k. Is it PCI, AHB, something else? Does it have any kind of virtual emulation path or, ideally, mac80211_hwsim support? Wait a minute... mac80211 is the stack, and mac80211_hwsim is *software* driver, designed for this sort of thing, but ath12k is a *vendor-specific hardware* driver. That's the key distinction. Time to check `drivers/net/wireless/ath/ath12k/` to see what buses and devices it actually binds to. That'll be the deciding factor here, whether or not this patch can be targeted by fuzzing.



4/2 2026/11/17 20:56 tool grepper
0m Args:
{
  "Expression": "MODULE_DEVICE_TABLE|pci_register_driver",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/pci.c=1830=static const struct dev_pm_ops __maybe_unused ath12k_pci_pm_ops = {\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1836-\ndrivers/net/wireless/ath/ath12k/pci.c:1837:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.c-1838-\t\t\t       struct ath12k_pci_driver *driver)\n--\ndrivers/net/wireless/ath/ath12k/pci.c-1863-\ndrivers/net/wireless/ath/ath12k/pci.c:1864:\treturn pci_register_driver(pci_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1865-}\ndrivers/net/wireless/ath/ath12k/pci.c:1866:EXPORT_SYMBOL(ath12k_pci_register_driver);\ndrivers/net/wireless/ath/ath12k/pci.c-1867-\n--\ndrivers/net/wireless/ath/ath12k/pci.h=183=void ath12k_pci_power_down(struct ath12k_base *ab, bool is_suspend);\ndrivers/net/wireless/ath/ath12k/pci.h:184:int ath12k_pci_register_driver(const enum ath12k_device_family device_id,\ndrivers/net/wireless/ath/ath12k/pci.h-185-\t\t\t       struct ath12k_pci_driver *driver);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c=46=static const struct of_device_id ath12k_wifi7_ahb_of_match[] = {\n--\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-58-\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c:59:MODULE_DEVICE_TABLE(of, ath12k_wifi7_ahb_of_match);\ndrivers/net/wireless/ath/ath12k/wifi7/ahb.c-60-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=31=static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-37-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:38:MODULE_DEVICE_TABLE(pci, ath12k_wifi7_pci_id_table);\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-39-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c=181=int ath12k_wifi7_pci_init(void)\n--\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-184-\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c:185:\tret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI7,\ndrivers/net/wireless/ath/ath12k/wifi7/pci.c-186-\t\t\t\t\t \u0026ath12k_wifi7_pci_driver);\n"
}

5/2 2026/11/17 20:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 14112
							output: 47
							thoughts: 40
						

Thoughts:
Okay, here's my interpretation of those thoughts, summarized from my perspective as someone familiar with embedded systems and wireless drivers:

**Analyzing ath12k Hardware Support**

Alright, so the `ath12k` driver is architected to handle both PCI and AHB-based hardware. That's good to know – flexibility is always a plus. It means this thing isn't tied to a single bus type, which opens up its potential applications. Now, I need to understand exactly what hardware IDs this driver officially recognizes under the PCI interface, specifically. I should take a look at `ath12k_wifi7_pci_id_table`. Examining that ID table will be crucial to assessing supported hardware. That table should give me the Vendor ID and Device ID, and maybe Revision ID, so I can see what Wi-Fi 7 devices are supposed to work with this driver. This should provide insights into the specific hardware this driver is intended to support.



6/2 2026/11/17 20:56 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath12k/wifi7/pci.c",
  "FirstLine": 30,
  "LineCount": 20
}

Results:
{
  "Contents": "  30:\t\n  31:\tstatic const struct pci_device_id ath12k_wifi7_pci_id_table[] = {\n  32:\t\t{ PCI_VDEVICE(QCOM, QCN9274_DEVICE_ID) },\n  33:\t\t{ PCI_VDEVICE(QCOM, WCN7850_DEVICE_ID) },\n  34:\t\t{ PCI_VDEVICE(QCOM, QCC2072_DEVICE_ID) },\n  35:\t\t{}\n  36:\t};\n  37:\t\n  38:\tMODULE_DEVICE_TABLE(pci, ath12k_wifi7_pci_id_table);\n  39:\t\n  40:\tstatic const struct ath12k_pci_ops ath12k_wifi7_pci_ops_qcn9274 = {\n  41:\t\t.wakeup = NULL,\n  42:\t\t.release = NULL,\n  43:\t};\n  44:\t\n  45:\tstatic int ath12k_wifi7_pci_bus_wake_up(struct ath12k_base *ab)\n  46:\t{\n  47:\t\tstruct ath12k_pci *ab_pci = ath12k_pci_priv(ab);\n  48:\t\n  49:\t\treturn mhi_device_get_sync(ab_pci-\u003emhi_ctrl-\u003emhi_dev);\n"
}

7/2 2026/11/17 20:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 14774
							output: 30
							thoughts: 146
						

Thoughts:
**My Assessment of ath12k and its Environment**

Okay, so ath12k is the driver specifically designed for Qualcomm's Wi-Fi 7 chips – the QCN9274, WCN7850, those types. My immediate question is, are these devices – and I'm thinking PCIe, AHB, that kind of thing – actually *present* in the environment I'm working in, whether it's QEMU or Google Compute Engine? And the answer, as far as I can tell, is a definite *no*. QEMU doesn't offer any kind of emulation for Qualcomm's Wi-Fi 7 PCI devices.  No support for the MHI bus either, and critically, no way to load the firmware blobs that ath12k needs to operate.

Hold on, before I completely dismiss this, let me think a bit more broadly. Does ath12k have any sort of virtual test driver or USB interface that I might be able to leverage? A way to simulate or test some functionality without needing the actual hardware? I need to check that before giving up on some kind of emulation. So, I'm going to delve into the `drivers/net/wireless/ath/ath12k/` directory. That's where I need to look for alternative bus drivers or any kind of virtual interfaces that might provide a workaround.



8/2 2026/11/17 20:56 tool codesearch-dir-index
0m Args:
{
  "Dir": "drivers/net/wireless/ath/ath12k"
}

Results:
{
  "Files": [
    "acpi.c",
    "acpi.h",
    "ahb.c",
    "ahb.h",
    "ce.c",
    "ce.h",
    "cmn_defs.h",
    "core.c",
    "core.h",
    "coredump.c",
    "coredump.h",
    "dbring.c",
    "dbring.h",
    "debug.c",
    "debug.h",
    "debugfs.c",
    "debugfs.h",
    "debugfs_htt_stats.c",
    "debugfs_htt_stats.h",
    "debugfs_sta.c",
    "debugfs_sta.h",
    "dp.c",
    "dp.h",
    "dp_cmn.h",
    "dp_htt.c",
    "dp_htt.h",
    "dp_mon.c",
    "dp_mon.h",
    "dp_peer.c",
    "dp_peer.h",
    "dp_rx.c",
    "dp_rx.h",
    "dp_stats.h",
    "dp_tx.c",
    "dp_tx.h",
    "fw.c",
    "fw.h",
    "hal.c",
    "hal.h",
    "hif.h",
    "htc.c",
    "htc.h",
    "hw.h",
    "mac.c",
    "mac.h",
    "mhi.c",
    "mhi.h",
    "p2p.c",
    "p2p.h",
    "pci.c",
    "pci.h",
    "pcic.c",
    "pcic.h",
    "peer.c",
    "peer.h",
    "qmi.c",
    "qmi.h",
    "reg.c",
    "reg.h",
    "testmode.c",
    "testmode.h",
    "thermal.c",
    "thermal.h",
    "trace.c",
    "trace.h",
    "wmi.c",
    "wmi.h",
    "wow.c",
    "wow.h"
  ],
  "Subdirs": [
    "wifi7"
  ]
}

9/2 2026/11/17 20:56 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 15751
							output: 33
							thoughts: 25
						

Thoughts:
Here's my summary, as though I'm thinking it:

**Digging Deeper into the Wi-Fi 7 Driver Landscape**

Okay, so we've been looking at the general wireless driver structure, and that's been helpful, but I need to get down to specifics. The current investigation is somewhat general, so I need to check something that's highly likely to be the location of specific functionality. Since we are interested in Wifi 7 drivers, it makes sense to go beyond broad directory trees. Let's see what we can find in the `drivers/net/wireless/ath/ath12k/wifi7/` directory. That seems like the most logical place to begin to look for the implementation of features related to this standard. This location should be the hotspot for the newer driver versions, I need to check there.



10/2 2026/11/17 20:57 tool codesearch-dir-index
0m Args:
{
  "Dir": "drivers/net/wireless/ath/ath12k/wifi7"
}

Results:
{
  "Files": [
    "ahb.c",
    "ahb.h",
    "ce.c",
    "ce.h",
    "core.c",
    "core.h",
    "dp.c",
    "dp.h",
    "dp_mon.c",
    "dp_mon.h",
    "dp_rx.c",
    "dp_rx.h",
    "dp_tx.c",
    "dp_tx.h",
    "hal.c",
    "hal.h",
    "hal_desc.h",
    "hal_qcc2072.c",
    "hal_qcc2072.h",
    "hal_qcn9274.c",
    "hal_qcn9274.h",
    "hal_rx.c",
    "hal_rx.h",
    "hal_rx_desc.h",
    "hal_tx.c",
    "hal_tx.h",
    "hal_wcn7850.c",
    "hal_wcn7850.h",
    "hw.c",
    "hw.h",
    "mhi.c",
    "mhi.h",
    "pci.c",
    "pci.h",
    "wmi.c",
    "wmi.h"
  ],
  "Subdirs": null
}

11/2 2026/11/17 20:57 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 16292
							output: 28
							thoughts: 402
						

Thoughts:
**Analyzing the Reachability of `ath12k` in a Fuzzing Context**

Okay, so `ath12k` is only designed to work with PCIe (like QCN9274, WCN7850, and QCC2072) and AHB (IPQ5332) hardware. A quick thought: could I even *reach* `ath12k` within QEMU? No, that's not likely. It needs actual Qualcomm hardware, things like PCIe cards or a Qualcomm SoC AHB setup, plus all that MHI, QMI, and proprietary firmware. None of that is emulated in QEMU or even syzkaller, which is a major hurdle.

Let's confirm this by reviewing the instructions: Section 2 outlines "Structurally unreachable hardware," specifically mentioning vendor-specific PCIe switches, SmartNICs, or GPU drivers. They require physical ASIC/PCIe cards that aren't emulated in standard QEMU. That's a good comparison. Then, Section 1 hammers this home with "- REACHABILITY IS THE PRIMARY GATE": Fuzzing only works on code that can *actually* execute in standard virtualized environments (like GCE or QEMU, using software emulated devices). If the modified code is structurally unreachable, as described in Section 2, it's a no-go for fuzzing, regardless of how complex or assertion-laden the code is.

Wait, before I completely dismiss this, I need to check something else. Even if it's unlikely, is there any other part of the kernel that might indirectly call `ath12k_dp_rx_h_undecap` or anything else I modified in this patch? Let's clarify what this patch modifies: `ath12k_dp_rx_h_undecap_raw` (that's static, so less likely) and `ath12k_dp_rx_h_undecap` (an exported symbol, but the critical question is *who* calls it?). To be absolutely sure, I'll run a `grep` across the entire kernel source looking for `ath12k_dp_rx_h_undecap`. That should give me a definitive answer.



12/2 2026/11/17 20:57 tool grepper
0m Args:
{
  "Expression": "ath12k_dp_rx_h_undecap"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath12k/dp_rx.c=929=static int ath12k_dp_rx_crypto_icv_len(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-953-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:954:static void ath12k_dp_rx_h_undecap_nwifi(struct ath12k_pdev_dp *dp_pdev,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-955-\t\t\t\t\t struct sk_buff *msdu,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1001-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1002:static int ath12k_dp_rx_h_undecap_raw(struct ath12k_pdev_dp *dp_pdev,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1003-\t\t\t\t      struct sk_buff *msdu,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c=1101=static void ath12k_get_dot11_hdr_from_rx_desc(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1142-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1143:static void ath12k_dp_rx_h_undecap_eth(struct ath12k_pdev_dp *dp_pdev,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1144-\t\t\t\t       struct sk_buff *msdu,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1184-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1185:int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1186-\t\t\t   enum hal_encrypt_type enctype,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1195-\tcase DP_RX_DECAP_TYPE_NATIVE_WIFI:\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1196:\t\tath12k_dp_rx_h_undecap_nwifi(dp_pdev, msdu, enctype, rx_info);\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1197-\t\tbreak;\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1200-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1201:\t\terr = ath12k_dp_rx_h_undecap_raw(dp_pdev, msdu, enctype,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1202-\t\t\t\t\t\t rx_info-\u003erx_status,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1213-\t\t\tATH12K_SKB_RXCB(msdu)-\u003eis_eapol = true;\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1214:\t\t\tath12k_dp_rx_h_undecap_eth(dp_pdev, msdu, enctype, rx_info,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1215-\t\t\t\t\t\t   decap_type);\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1220-\t\t    rx_info-\u003eis_from_ds \u0026\u0026 rx_info-\u003eis_to_ds) {\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1221:\t\t\tath12k_dp_rx_h_undecap_eth(dp_pdev, msdu, enctype, rx_info,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1222-\t\t\t\t\t\t   decap_type);\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1229-\t\tif (ATH12K_SKB_RXCB(msdu)-\u003eis_mcbc \u0026\u0026 decrypted) {\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1230:\t\t\tath12k_dp_rx_h_undecap_eth(dp_pdev, msdu, enctype, rx_info,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1231-\t\t\t\t\t\t   decap_type);\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1242-\t\tif (ATH12K_SKB_RXCB(msdu)-\u003eis_mcbc \u0026\u0026 decrypted) {\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1243:\t\t\tath12k_dp_rx_h_undecap_eth(dp_pdev, msdu, enctype, rx_info,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1244-\t\t\t\t\t\t   decap_type);\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1251-}\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1252:EXPORT_SYMBOL(ath12k_dp_rx_h_undecap);\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1253-\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c=1504=int ath12k_dp_rx_peer_frag_setup(struct ath12k *ar, const u8 *peer_mac, int vdev_id)\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1543-\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1544:void ath12k_dp_rx_h_undecap_frag(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1545-\t\t\t\t enum hal_encrypt_type enctype, u32 flags)\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1574-}\ndrivers/net/wireless/ath/ath12k/dp_rx.c:1575:EXPORT_SYMBOL(ath12k_dp_rx_h_undecap_frag);\ndrivers/net/wireless/ath/ath12k/dp_rx.c-1576-\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h=192=void ath12k_dp_extract_rx_desc_data(struct ath12k_hal *hal,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h-199-\ndrivers/net/wireless/ath/ath12k/dp_rx.h:200:int ath12k_dp_rx_h_undecap(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\ndrivers/net/wireless/ath/ath12k/dp_rx.h-201-\t\t\t   enum hal_encrypt_type enctype,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h=212=void ath12k_dp_rx_h_sort_frags(struct ath12k_hal *hal,\n--\ndrivers/net/wireless/ath/ath12k/dp_rx.h-214-\t\t\t       struct sk_buff *cur_frag);\ndrivers/net/wireless/ath/ath12k/dp_rx.h:215:void ath12k_dp_rx_h_undecap_frag(struct ath12k_pdev_dp *dp_pdev, struct sk_buff *msdu,\ndrivers/net/wireless/ath/ath12k/dp_rx.h-216-\t\t\t\t enum hal_encrypt_type enctype, u32 flags);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=351=static int ath12k_wifi7_dp_rx_h_mpdu(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-427-\tath12k_wifi7_dp_rx_h_csum_offload(msdu, rx_info);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:428:\terr = ath12k_dp_rx_h_undecap(dp_pdev, msdu, enctype, is_decrypted,\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-429-\t\t\t\t     rx_info, peer);\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1023=static int ath12k_wifi7_dp_rx_h_verify_tkip_mic(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1091-\tath12k_dp_rx_h_ppdu(dp_pdev, rx_info);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1092:\tif (!ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1093-\t\t\t\t    true, rx_info, NULL))\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1101=static int ath12k_wifi7_dp_rx_h_defrag(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1137-\t\t\tskb_trim(skb, skb-\u003elen - FCS_LEN);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1138:\t\tath12k_dp_rx_h_undecap_frag(dp_pdev, skb, enctype, flags);\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1139-\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c=1716=static bool ath12k_wifi7_dp_rx_h_tkip_mic_err(struct ath12k_pdev_dp *dp_pdev,\n--\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1749-\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c:1750:\tif (ath12k_dp_rx_h_undecap(dp_pdev, msdu, HAL_ENCRYPT_TYPE_TKIP_MIC,\ndrivers/net/wireless/ath/ath12k/wifi7/dp_rx.c-1751-\t\t\t\t   false, rx_info, NULL))\n"
}

13/2 2026/11/17 20:57 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 20240
							output: 38
							thoughts: 61
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Analyzing the Callers of `ath12k_dp_rx_h_undecap`**

Right, so all callers of `ath12k_dp_rx_h_undecap` are definitively within the `ath12k` driver – specifically, within `drivers/net/wireless/ath/ath12k/wifi7/dp_rx.c`. That's good, narrows the scope considerably. Now, before I dive deeper into the code, I need to check the build configuration. What I'm really after is to quickly ensure the `ath12k` driver is enabled, and maybe glance at any related Kconfig symbols that might influence the behavior of this particular function or its callers. Time to crack open the Kconfig files. A quick check of the relevant Kconfig options will probably save some digging later.



14/2 2026/11/17 20:58 tool grepper
0m Args:
{
  "Expression": "config ATH12K",
  "PathPrefixes": [
    "drivers/net/wireless/ath/ath12k"
  ]
}

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 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 \"Qualcomm 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 \"Qualcomm 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"
}

15/2 2026/11/17 20:58 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 21049
							output: 41
							thoughts: 21
						

Thoughts:
Okay, let's dive into this Kconfig file, `drivers/net/wireless/ath/ath12k/Kconfig`. Right, so I know this is where the configuration options for the ath12k wireless driver are defined. My brain's already starting to parse the structure – it's going to be a collection of `config` symbols, with potentially `depends on`, `select`, `help`, and `default` statements guiding their behavior. I'm expecting to see options related to features like different wireless standards (802.11ax, 802.11be), security protocols (WPA3, perhaps some proprietary stuff), hardware features specific to the Atheros chipset, power management, debugging, and maybe some vendor-specific settings.

I'll be looking for any hints about how the driver is structured in terms of modules or sub-features. I'll need to understand which options are enabled by default and what the dependencies are between them, because that will reveal important details about the overall design and architecture. I'm also anticipating that there will be options that are only relevant to certain hardware revisions or firmware versions. Finally, I'll be on the lookout for anything that might indicate the scope of the device's capabilities, or potential performance tunables.



16/2 2026/11/17 20:58 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath12k/Kconfig",
  "FirstLine": 1,
  "LineCount": 40
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: BSD-3-Clause-Clear\n   2:\tconfig ATH12K\n   3:\t\ttristate \"Qualcomm Wi-Fi 7 support (ath12k)\"\n   4:\t\tdepends on MAC80211 \u0026\u0026 HAS_DMA \u0026\u0026 PCI\n   5:\t\tselect QCOM_QMI_HELPERS\n   6:\t\tselect MHI_BUS\n   7:\t\tselect QRTR\n   8:\t\tselect QRTR_MHI\n   9:\t\tselect PCI_PWRCTRL_PWRSEQ if HAVE_PWRCTRL\n  10:\t\thelp\n  11:\t\t  Enable support for Qualcomm Technologies Wi-Fi 7 (IEEE\n  12:\t\t  802.11be) family of chipsets, for example WCN7850 and\n  13:\t\t  QCN9274.\n  14:\t\n  15:\t\t  If you choose to build a module, it'll be called ath12k.\n  16:\t\n  17:\tconfig ATH12K_AHB\n  18:\t\tbool \"Qualcomm ath12k AHB support\"\n  19:\t\tdepends on ATH12K \u0026\u0026 REMOTEPROC\n  20:\t\tselect QCOM_MDT_LOADER\n  21:\t\tselect QCOM_PAS\n  22:\t\thelp\n  23:\t\t  Enable support for Ath12k AHB bus chipsets, example IPQ5332.\n  24:\t\n  25:\tconfig ATH12K_DEBUG\n  26:\t\tbool \"ath12k debugging\"\n  27:\t\tdepends on ATH12K\n  28:\t\thelp\n  29:\t\t  Enable debug support, for example debug messages which must\n  30:\t\t  be enabled separately using the debug_mask module parameter.\n  31:\t\n  32:\t\t  If unsure, say Y to make it easier to debug problems. But if\n  33:\t\t  you want optimal performance choose N.\n  34:\t\n  35:\tconfig ATH12K_DEBUGFS\n  36:\t\tbool \"Qualcomm ath12k debugfs support\"\n  37:\t\tdepends on ATH12K \u0026\u0026 MAC80211_DEBUGFS\n  38:\t\thelp\n  39:\t\t  Enable ath12k debugfs support\n  40:\t\n"
}

17/2 2026/11/17 20:58 llm patch-evaluator
0m Model:
gemini-3.8-flash

Args:
null

Results:
null

Tokens:
							input: 21957
							output: 103
							thoughts: 755
						

Thoughts:
**Analyzing the Fuzzing Potential of the ath12k Driver Patch**

Okay, let's break this down. My initial assessment is that this patch, focused on the `ath12k` driver, isn't suitable for fuzzing. The `ath12k` driver is fundamentally dependent on `MAC80211`, `HAS_DMA`, and `PCI`, which isn't a surprise. We're talking about Qualcomm's Wi-Fi 7 chipsets – the WCN7850, QCN9274, IPQ5332, and QCC2072, specifically. This `ath12k` is a vendor-specific hardware driver designed for Qualcomm's PCIe or AHB connected Wi-Fi 7 devices.

The patch modifies several RX datapath functions, specifically internal RX functions. We're looking at things like `ath12k_dp_rx_h_undecap_raw`, `ath12k_wifi7_dp_rx_process_msdu` and all those others. These are *deep* within the RX data path, dealing with how the driver handles incoming frames. But here's the kicker: this code will only ever execute on real Qualcomm Wi-Fi 7 hardware connected via PCIe or AHB. The question is, can I hit any of this code in a standard virtualized environment like QEMU or GCE? The answer is a definitive *no*. Standard QEMU doesn't emulate Qualcomm's `ath12k` PCIe devices.

Let's carefully evaluate the fuzzing guidelines. We have the "negative criteria" to consider: "Structurally unreachable hardware: Vendor-specific PCIe switches, SmartNICs, or GPU drivers... requiring physical ASIC/PCIe cards not emulated in standard QEMU". This *exactly* fits our situation! We're dealing with a vendor-specific PCIe/AHB wireless driver – Qualcomm's `ath12k` – which depends on specialized hardware not emulated in standard environments. This makes it structurally unreachable for fuzzing.

Therefore, `WorthFuzzing` is definitively `false`. No `FocusSymbols` are needed because there's nothing reachable, and therefore, no `EnableConfigs` are applicable. The `Reasoning` is solid: We are dealing with a device driver (ath12k) that requires physical Qualcomm Wi-Fi 7 PCIe/AHB hardware and proprietary firmware. That's not available in virtual environments. Any modified RX datapath code simply isn't going to be hit during fuzzing.

As a final check, I need to call the `set-results` tool. The parameters will be:

*   `WorthFuzzing: false`
*   `FocusSymbols: []`
*   `EnableConfigs: []`
*   `Reasoning: "The patch modifies RX datapath processing in the Qualcomm ath12k Wi-Fi 7 driver (ath12k_dp_rx_h_undecap_raw, ath12k_wifi7_dp_rx_process_msdu, etc.). ath12k requires physical Qualcomm Wi-Fi 7 PCIe/AHB hardware and proprietary firmware that are not emulated in standard QEMU/GCE virtualization environments, making the code structurally unreachable for syzkaller fuzzing."`

And, with that, the assessment is complete.



18/2 2026/11/17 20:59 tool set-results
0m Args:
{
  "EnableConfigs": [],
  "FocusSymbols": [],
  "Reasoning": "The patch modifies RX packet processing and decap handling in the Qualcomm ath12k Wi-Fi 7 driver (ath12k). This driver requires specific physical Qualcomm Wi-Fi 7 PCIe or AHB hardware and firmware that are not emulated in standard QEMU/GCE virtualization environments, rendering the modified code structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

Results:
{
  "EnableConfigs": null,
  "FocusSymbols": [],
  "Reasoning": "The patch modifies RX packet processing and decap handling in the Qualcomm ath12k Wi-Fi 7 driver (ath12k). This driver requires specific physical Qualcomm Wi-Fi 7 PCIe or AHB hardware and firmware that are not emulated in standard QEMU/GCE virtualization environments, rendering the modified code structurally unreachable for fuzzing.",
  "WorthFuzzing": false
}

19/1 2026/11/17 20:59 action If
0m Args:
{
  "WorthFuzzing": false
}

Results:
null

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