All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH rtw-next 0/4] wifi: rtw89: check lengths and indices reported by the chip
@ 2026-12-01  9:01 Maoyi Xie
  2026-12-01  9:01 ` [PATCH rtw-next 1/4] wifi: rtw89: pci: reject oversized RX packets Maoyi Xie
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Maoyi Xie @ 2026-12-01  9:01 UTC (permalink / raw)
  To: Ping-Ke Shih; +Cc: linux-wireless

These patches add checks for two lengths and two indices that the chip
reports. The patches are independent.

Found with a CodeQL-based static analysis tool that we are developing.
Each case was reproduced in a userspace harness under AddressSanitizer.
Not tested on hardware. Compile-tested with W=1 on rtw-next.

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

Maoyi Xie (4):
  wifi: rtw89: pci: reject oversized RX packets
  wifi: rtw89: pci: validate hardware index of BD ring
  wifi: rtw89: phy: check LPS report C2H event length
  wifi: rtw89: phy: check cur_idx of TAS power report

 drivers/net/wireless/realtek/rtw89/pci.c | 18 ++++++++++++++++++
 drivers/net/wireless/realtek/rtw89/phy.c |  6 ++++++
 2 files changed, 24 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2026-12-02  3:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  9:01 [PATCH rtw-next 0/4] wifi: rtw89: check lengths and indices reported by the chip Maoyi Xie
2026-12-01  9:01 ` [PATCH rtw-next 1/4] wifi: rtw89: pci: reject oversized RX packets Maoyi Xie
2026-12-02  2:57   ` Ping-Ke Shih
2026-12-01  9:01 ` [PATCH rtw-next 2/4] wifi: rtw89: pci: validate hardware index of BD ring Maoyi Xie
2026-12-02  2:59   ` Ping-Ke Shih
2026-12-01  9:01 ` [PATCH rtw-next 3/4] wifi: rtw89: phy: check LPS report C2H event length Maoyi Xie
2026-12-02  3:03   ` Ping-Ke Shih
2026-12-01  9:01 ` [PATCH rtw-next 4/4] wifi: rtw89: phy: check cur_idx of TAS power report Maoyi Xie
2026-12-02  3:04   ` Ping-Ke Shih

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.