Article View: muc.lists.freebsd.bugs
Article #114[Bug 299427] iwm: mask closed_rb_num to the RX ring size (9000 step A0 hardening)
From: bugzilla-noreply
Date: Fri, 16 Oct 2026 03:57
Date: Fri, 16 Oct 2026 03:57
44 lines
3461 bytes
3461 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299427
Bug ID: 299427
Summary: iwm: mask closed_rb_num to the RX ring size (9000 step
A0 hardening)
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: david@crap.solutions
Created attachment 275746
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=275746&action=edit
iwm: mask closed_rb_num to the RX ring size (9000 step A0 hardening)
iwm_notif_intr() reads hw = le16toh(sc->rxq.stat->closed_rb_num) & 0xfff and
loops while (sc->rxq.cur != hw) without masking hw to the ring size (512
entries
for 9000-series MQ RX, 256 for legacy). If the hardware reports a value at or
above the ring size, cur never equals hw: the loop walks stale ring entries
indefinitely and the write-pointer update uses a bogus index. Linux iwlwifi
masks the value (5eae443eb5e2) and OpenBSD has done the same since 9000-series
support was added (3287dca4fa10).
This was found while debugging an iwm crash on another BSD using the same
driver lineage (DragonFly, upstream bug 3449)
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-299427-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 299427] iwm: mask closed_rb_num to the RX ring size (9000 step A0 hardening) Date: Fri, 16 Oct 2026 03:57:45 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-bugs@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-299427-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="96890"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1792123066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n/b2CZHimOB4a4BQyyiiE01B84Mmd7gmfw7LSAPtXQI=; b=E28gz6AGszcsl6keP5Wd4hcRpB8j41qQCLPx3jfB0WaNStEyYDVSRdgrux9u97fUD5Lr1g yyOHoR+WNWSuMFhr1RQDBfX/MtTDocnbh7QDxcI+Jq8vqTt6mQ+6roxiwPKrD5fQNwWzaw KT+sQJ2eC4S9not9TnP/6a1wg9ptOxmvNpD4vnLGg2OFC41Z2DYOz3t0g7oVB1ChrEKBcb 3i4GRot5Px9rVW21o/UfYInLFC4gf/MySNH4IaslWzliQmcLYEuMf912byaRlTrKh0UI42 6jmEBJ/Kd73+Po2u24AHiO2Ks2MCHL2vodJ1WvzlMT/VSEp5jilMZTVc8rgNvg== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes