Skip to content

wifi: mt76: validate WCID index before WTBL lookup

Joshua Klinesmith linux-wireless stable 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- When a pair lookup fails (out-of-range or non-station WCID), also clear the carried wcid/sta/link_sta state so that subsequent non-pair MSDU and header entries in the same TX free event do not attribute statistics or pass a stale station pointer to mt76_connac2_txwi_free().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: mt76: mt7915: validate WCID index before WTBL lookupdrivers/net/wireless/mediatek/mt76/mt7915/mac.c+13 -10 replies
2/2wifi: mt76: mt7996: validate WCID index before WTBL lookupdrivers/net/wireless/mediatek/mt76/mt7996/mac.c+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH wireless v2 0/2] wifi: mt76: validate WCID index before WTBL lookup

Validate WCID indices from TX free events and TX status reports before WTBL lookups in mt7915 and mt7996, matching the bounds checks already present in mt7615/mt7921/mt7925 drivers.

Changes since v1:
- When a pair lookup fails (out-of-range or non-station WCID), also clear the carried wcid/sta/link_sta state so that subsequent non-pair MSDU and header entries in the same TX free event do not attribute statistics or pass a stale station pointer to mt76_connac2_txwi_free().

Joshua Klinesmith (2):
wifi: mt76: mt7915: validate WCID index before WTBL lookup
wifi: mt76: mt7996: validate WCID index before WTBL lookup

 drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 14 +++++++++++++-
 drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 10 ++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0