Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH iwlwifi-next 0/4] wifi: iwlwifi: validate more indices from the firmware
@ 2026-11-25  8:37 Maoyi Xie
  2026-11-25  8:37 ` [PATCH iwlwifi-next 1/4] wifi: iwlwifi: mvm: validate TID in TX response handlers Maoyi Xie
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Maoyi Xie @ 2026-11-25  8:37 UTC (permalink / raw)
  To: Miri Korenblit; +Cc: linux-wireless

These patches add range checks for a TID, a BAID and a TX queue number
that the firmware reports. Other code paths already have these checks.
The patches are independent.

The missing checks were found with a CodeQL-based static analysis tool
that we are developing. Each out-of-range access was reproduced in a
userspace harness under sanitizers, which report nothing with the
patches. Nothing was tested on hardware. The patches were compile-tested
with W=1 on next-20261116.

I used an LLM to help write the harnesses and these patches.

Maoyi Xie (4):
  wifi: iwlwifi: mvm: validate TID in TX response handlers
  wifi: iwlwifi: mvm: validate BAID in the RX path
  wifi: iwlwifi: mld: validate BAID in the RX timestamp update
  wifi: iwlwifi: pcie: validate txq_id in reclaim

 drivers/net/wireless/intel/iwlwifi/mld/rx.c   | 4 ++++
 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 8 ++++++++
 drivers/net/wireless/intel/iwlwifi/mvm/tx.c   | 8 +++++++-
 drivers/net/wireless/intel/iwlwifi/pcie/tx.c  | 9 ++++++++-
 4 files changed, 27 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-25  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  8:37 [PATCH iwlwifi-next 0/4] wifi: iwlwifi: validate more indices from the firmware Maoyi Xie
2026-11-25  8:37 ` [PATCH iwlwifi-next 1/4] wifi: iwlwifi: mvm: validate TID in TX response handlers Maoyi Xie
2026-11-25  8:37 ` [PATCH iwlwifi-next 2/4] wifi: iwlwifi: mvm: validate BAID in the RX path Maoyi Xie
2026-11-25  8:37 ` [PATCH iwlwifi-next 3/4] wifi: iwlwifi: mld: validate BAID in the RX timestamp update Maoyi Xie
2026-11-25  8:37 ` [PATCH iwlwifi-next 4/4] wifi: iwlwifi: pcie: validate txq_id in reclaim Maoyi Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox