)]}'
{
  "commit": "820b8cff81c796ba20573e04722ab62500713f97",
  "tree": "8fbd5587fae3008b62609cf5b8890a8c6f3b7d54",
  "parents": [
    "d9be5e75530772fc31637070d51e5717d6aeaa2a"
  ],
  "author": {
    "name": "Nicolas Escande",
    "email": "nico.escande@gmail.com",
    "time": "Fri Jul 31 16:58:30 2026 +0200"
  },
  "committer": {
    "name": "Jeff Johnson",
    "email": "jeff.johnson@oss.qualcomm.com",
    "time": "Mon Sep 14 11:43:31 2026 -0700"
  },
  "message": "wifi: ath11k: cleanup arsta in ath11k_mac_peer_cleanup_all()\n\nWhen mac80211 removes a sta, it calls .sta_state() which in turn calls\nath11k_mac_station_remove(). In that function we clean up both peers \u0026\narsta related resources.\n\nBut when the firmware crashes, ath11k calls ieee80211_restart_hw(), which\nassumes that all driver related resources are cleaned up beforehand. This\ncleanup is supposedly done by ath11k_mac_peer_cleanup_all() but does not\nin fact free arsta-\u003erx_stats / tx_stats.\n\nExtract the arsta cleanup from ath11k_mac_station_remove() into a\nnew ath11k_mac_station_cleanup() and call it from both there and\nath11k_mac_peer_cleanup_all().\n\nThis should handle kmemleaks reports like:\n\tunreferenced object 0xffffff801ae66400 (size 1024):\n\t  comm \"hostapd\", pid 1306, jiffies 4295011565\n\t  hex dump (first 32 bytes):\n\t    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n\t    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\n\t  backtrace (crc d61c08ec):\n\t    kmemleak_alloc+0x3c/0x50\n\t    __kmalloc_cache_noprof+0x2b0/0x3e0\n\t    ath11k_mac_op_sta_state+0x1dc/0xb10\n\t    drv_sta_state+0xac/0x6f8\n\t    sta_info_insert_rcu+0x314/0x5e0\n\t    sta_info_insert+0x14/0x38\n\t    ieee80211_add_station+0x10c/0x1a0\n\t    nl80211_new_station+0x3e8/0x680\n\t    genl_family_rcv_msg_doit+0xc0/0x120\n\t    genl_rcv_msg+0x1b4/0x258\n\t    netlink_rcv_skb+0x4c/0x108\n\t    genl_rcv+0x38/0x60\n\t    netlink_unicast+0x190/0x278\n\t    netlink_sendmsg+0x15c/0x370\n\t    ____sys_sendmsg+0x120/0x290\n\t    ___sys_sendmsg+0x70/0xa0\n\nTested-on: QCN9074 hw1.0 PCI WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1\n\nFixes: d5c65159f289 (\"ath11k: driver for Qualcomm IEEE 802.11ax devices\")\nSigned-off-by: Nicolas Escande \u003cnico.escande@gmail.com\u003e\nReviewed-by: Rameshkumar Sundaram \u003crameshkumar.sundaram@oss.qualcomm.com\u003e\nReviewed-by: Baochen Qiang \u003cbaochen.qiang@oss.qualcomm.com\u003e\nLink: https://patch.msgid.link/20260731145830.769811-1-nico.escande@gmail.com\nSigned-off-by: Jeff Johnson \u003cjeff.johnson@oss.qualcomm.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2d55cdc4d165dee77c0efa212db54ad216193608",
      "old_mode": 33188,
      "old_path": "drivers/net/wireless/ath/ath11k/mac.c",
      "new_id": "ae91b57c8422f1f278bce7c75ca47ed5650cd8fb",
      "new_mode": 33188,
      "new_path": "drivers/net/wireless/ath/ath11k/mac.c"
    }
  ]
}
