From nobody Mon Aug 31 16:54:17 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hYZpL1wdZz6r3dh for ; Mon, 31 Aug 2026 16:54:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hYZpK6tlyz3CLc for ; Mon, 31 Aug 2026 16:54:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788195258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zk3zws9+eTE1M0HvjMQmc78yycurJ+MtUGtAivKMPpw=; b=I5yUgJLtGHgCpv4ti4PH7d2Vg5QLipGGUNYxLaqTljQGMdSIRR4b/5hOkkb2ZTIPT9vBAo SrJybKcYI6aVCtkigfGKEe7iFAJqSOly83N6tLa7cFAUumNZcSfESLf11Rdc4+FjiZTRDr CnriYjQbGSqL1aX1vHRC8z4/B5Bsbg/RPy4ALd9l7b2iYhszE8bMvp0chdJ6oP/Ym1GpHq Pq3VV9YPQh7vsO51OpGgcL8LX4ad3S0MjUmKPzIy98LclDbKaBvPnrh23AKQxC+I/ednVE 6CN0gBPjSk+npwAAnvsn1cDmlqMCh+HZr4HZmPxPPHoltRnzg/L5718clf3+Kw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1788195258; a=rsa-sha256; cv=none; b=hio2Jk2/JJ1GOBiOPH3fVHdHPtzjFjgpI4cMHvafmG7xMiL3lHr5nsX8VZKBI7EVzNFvFL Z3rKgODMBkaW2Wez6uS10TZV82Wa8j9+RZRTaqkTjK8zZo8Qrij4eEKOgUg0ZVan8E882R emcK9cYfvG8HdJVnTcByKa+pSCrwagu7umiyQkqicBWWIpzEMFdk1hY2TBCvWSbFw2mypT TIt0ZISPU9Cp6KSaAuHdQjxw1y3ygC8VXpET9a+Fdja6YLiCj6yblNwZeg4fk4WEE4ZZsP o1OERm76iXgs15IVWpUHdhumxvvlqW3fKD1Sn698Zasfh+ArJMeIIsCgyrGyCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1788195258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zk3zws9+eTE1M0HvjMQmc78yycurJ+MtUGtAivKMPpw=; b=N00MHQvgyxe6tJrVvfqCFuPzYSkWB49QFFACQAAqhFsm6nx8Jh+CvsnV6x9TKXgVly4Uj/ rK6VK44yKSgPuA0fA/bhcWOhghcdYGHuZohqI/svK+wXivBTKmHJsnk9MY18/cvBd+W1fn v2VBKTyEm93HKXCtqv8Af3k7qAZ0A25oLUBCgrjUrgyKkmfNRt1qZ3zXGNymzybSktUBsU +MYDqk8ys9g0d3cEKkR/QK6AbM/+QBzw94r4QAmPtk7fUHs6UiGP3NRezK9kPJQo3U27uq LI+92BodiYVyVOv/CbTKkxurWKJO6znqEKLAge9102yJWTR54rTed4X7cP0PcA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hYZpK54n6z4dB for ; Mon, 31 Aug 2026 16:54:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3666c by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 31 Aug 2026 16:54:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Kim Shrier From: Bjoern A. Zeeb Subject: git: 0211e64ce1e5 - main - LinuxKPI: 802.11: add != NULL check in ieee80211_tx_status_ext() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0211e64ce1e5ba208f4b96453ce6740a49689b91 Auto-Submitted: auto-generated Date: Mon, 31 Aug 2026 16:54:17 +0000 Message-Id: <6a95b1b9.3666c.41f0b7e6@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=0211e64ce1e5ba208f4b96453ce6740a49689b91 commit 0211e64ce1e5ba208f4b96453ce6740a49689b91 Author: Kim Shrier AuthorDate: 2026-08-31 16:28:51 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-08-31 16:46:55 +0000 LinuxKPI: 802.11: add != NULL check in ieee80211_tx_status_ext() There seems to be another possible race with net80211 state machine changing the bss from under us (another lvif_bss_synched case). Just do the != NULL check to avoid a NULL pointer deref in ieee80211_ratectl_rate(). (bz extended the original comment and wrote the commit message). Sponosred by: The FreeBSD Foundation (commit) PR: 297184 MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index fd92f1dcf75b..f1eef91af0da 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -9128,7 +9128,15 @@ linuxkpi_ieee80211_tx_status_ext(struct ieee80211_hw *hw, IMPROVE("only update rate if needed but that requires us to get a proper rate from mo_sta_statistics"); ieee80211_ratectl_tx_complete(ni, &txs); - ieee80211_ratectl_rate(ni->ni_vap->iv_bss, NULL, 0); + /* + * A tx completion can land here after the vap has been torn + * down (iv_bss cleared on the way to INIT) while frames were + * still in flight; there is no bss node left to rate-adjust. + * This is another case of !lvif->lvif_bss_synched but checking + * that seems too cumbersome. + */ + if (ni->ni_vap->iv_bss != NULL) + ieee80211_ratectl_rate(ni->ni_vap->iv_bss, NULL, 0); #ifdef LINUXKPI_DEBUG_80211 if (linuxkpi_debug_80211 & D80211_TRACE_TX) {