Linux wireless drivers development
 help / color / mirror / Atom feed
From: Maoyi Xie <maoyixie.tju@gmail.com>
To: Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: linux-wireless@vger.kernel.org, brcm80211@lists.linux.dev,
	brcm80211-dev-list.pdl@broadcom.com
Subject: [PATCH wireless 0/2] wifi: brcmfmac: check a glom length and a ring index from the device
Date: Tue,  1 Dec 2026 17:12:13 +0800	[thread overview]
Message-ID: <20261201091215.3661018-1-maoyixie.tju@gmail.com> (raw)

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


             reply	other threads:[~2026-12-01  9:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:12 Maoyi Xie [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201091215.3661018-1-maoyixie.tju@gmail.com \
    --to=maoyixie.tju@gmail.com \
    --cc=arend.vanspriel@broadcom.com \
    --cc=brcm80211-dev-list.pdl@broadcom.com \
    --cc=brcm80211@lists.linux.dev \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox