Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH wireless 0/2] wifi: brcmfmac: check a glom length and a ring index from the device
@ 2026-12-01  9:12 Maoyi Xie
  2026-12-01  9:12 ` [PATCH wireless 1/2] wifi: brcmfmac: sdio: reject glom chains longer than U16_MAX Maoyi Xie
  2026-12-01  9:12 ` [PATCH wireless 2/2] wifi: brcmfmac: msgbuf: reject an out-of-range D2H ring write index Maoyi Xie
  0 siblings, 2 replies; 3+ messages in thread
From: Maoyi Xie @ 2026-12-01  9:12 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, brcm80211, brcm80211-dev-list.pdl

These patches add two checks on values that the device sends. Patch 1
rejects an SDIO glom descriptor whose lengths add up to more than
U16_MAX. Patch 2 rejects a D2H ring write index at or above the ring
depth on PCIe.

Both bugs were found with a CodeQL-based static analysis tool that we
are developing. Each bug was reproduced in a userspace harness under
AddressSanitizer. Not tested on hardware. Compile-tested with W=1 on
next-20261116.

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

Maoyi Xie (2):
  wifi: brcmfmac: sdio: reject glom chains longer than U16_MAX
  wifi: brcmfmac: msgbuf: reject an out-of-range D2H ring write index

 .../wireless/broadcom/brcm80211/brcmfmac/commonring.c    | 8 ++++++++
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c  | 9 ++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-12-01  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  9:12 [PATCH wireless 0/2] wifi: brcmfmac: check a glom length and a ring index from the device Maoyi Xie
2026-12-01  9:12 ` [PATCH wireless 1/2] wifi: brcmfmac: sdio: reject glom chains longer than U16_MAX Maoyi Xie
2026-12-01  9:12 ` [PATCH wireless 2/2] wifi: brcmfmac: msgbuf: reject an out-of-range D2H ring write index Maoyi Xie

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