From nobody Wed May 27 06:26:20 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 4gQKQ940gNz6fT0b for ; Wed, 27 May 2026 06:26:25 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gQKQ921w7z47hh for ; Wed, 27 May 2026 06:26:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1779863185; 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=OPjpk30jIjqgHD/P+jWixMML3vhA92hb7vC20ioKl9w=; b=dT7dSxXa2phBdbrqy9cZ0gmc+9dRxtOsdpFRCEGtGG1GtX7rJCnt4kIJWYyB5/pg5Ivsok Vd0j2zuUchbPewJYdGxehfl7fP7kp3mMZsUe0mFpfvvYO/MpS1061KBGoQ9blOltbqCZJe VjCh7183dcX1b2rPruZJJEsihmufnXIOscX+AJjqBoUd2XzaK6jSkt4+mj+pYczuAkdKll HWEMlauWFs49IahVZqES4jN+18nS/goBC2qOpwAwkuiLy0I3sqEnqQg/+oCEgtYeLaGTo7 dT6zpQKj4cXSrKcGDMTSzPRB9maqzri3xueqi+xtn/c2nfo0f19ytFbfJmwvew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1779863185; a=rsa-sha256; cv=none; b=MHttds/j0D8j10loKRAcVfGgiA3DI0qZ59GUg7xBKOJ0nlejBZYYh3UXvdlpxxefM3Cfzg rCCDaKsT5N2uY7CFON0cQEMuXn4SkToZR7ePwdOhi0sXz0w5UpFXj8HYMF+xxKRhsijz21 VOXuZZD0E17tjNISTBOowZjbCNz48zWnPea0SoWuOOpo3f7HhYXCaHOEU11DdnSTQP1YOi I2VBEh+lfyT3q8eghahqKo6lEm+4U34RaitFSK6P7JXx1OD4Hxo3jASJLJbapkMebFG6Yo FQaQr4tDQk7QYEDJYuuQl4YeJlWLCOGcJAmn2StzbjW4h46aoh0Fsi5Q/sNMcQ== 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=1779863185; 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=OPjpk30jIjqgHD/P+jWixMML3vhA92hb7vC20ioKl9w=; b=XeJBo75SQytlmfFeklM49+FRTYgBa1goq499+REAs8kfxTezB0/u9YHhwSkVLX8Dn15ocP XvCZeGyx+52UYSegBaXxaH7sjPoA6qP77eKzJtYP4SbAjcNIg4V7xRQUoCg9mP54OjZvgc ki6/RhnV+0b4v56oH42Qh+a0mFeXlaBeYUm69u2VnueRa4XfTWT9zge2ywaRFNB6FWHCAm /ZalOZy0jSOOhIX+huve3c8bOh91lTdEvKNxR3skFWiX/vwHNc+SkWPmjgGrgcbnusLaZF WUJJDxJHyQ1JNm6GhpPMeSk32xlKz0VaEjEPZgawPfe3SzI0WMgY4Y224fomOA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gQKQ91PHLznCN for ; Wed, 27 May 2026 06:26:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 45b02 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 27 May 2026 06:26:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: de65e20f8579 - stable/15 - LinuxKPI: 802.11: reset chanctx when recycling 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/stable/15 X-Git-Reftype: branch X-Git-Commit: de65e20f8579e659adce86a1de05e194199427cf Auto-Submitted: auto-generated Date: Wed, 27 May 2026 06:26:20 +0000 Message-Id: <6a168e8c.45b02.46e05830@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=de65e20f8579e659adce86a1de05e194199427cf commit de65e20f8579e659adce86a1de05e194199427cf Author: Bjoern A. Zeeb AuthorDate: 2026-05-23 21:06:32 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-05-27 01:31:01 +0000 LinuxKPI: 802.11: reset chanctx when recycling When we no longer need a channel context and put it back on the reserved list, zero it for all but the vif so that we get the same state as if it was freshly allocated. Sponsored by: The FreeBSD Foundation Fixes: e62c92c0a5cf, 88cb1e17f471 (cherry picked from commit 8ead19207e56790bd4c64dba4ddbf2e0eb6922f7) --- sys/compat/linuxkpi/common/src/linux_80211.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index b9528295ad8e..efd1d9bae3cc 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -2426,6 +2426,8 @@ lkpi_set_chanctx_conf(struct ieee80211_hw *hw, struct ieee80211_vif *vif, rcu_assign_pointer(vif->bss_conf.chanctx_conf, NULL); lchanctx = CHANCTX_CONF_TO_LCHANCTX(chanctx_conf); list_del(&lchanctx->entry); + memset(lchanctx, 0, sizeof(*lchanctx)); + lchanctx->lvif = VIF_TO_LVIF(vif); list_add_rcu(&lchanctx->entry, &lhw->lchanctx_list_reserved); } @@ -2460,6 +2462,8 @@ lkpi_remove_chanctx(struct ieee80211_hw *hw, struct ieee80211_vif *vif) lchanctx = CHANCTX_CONF_TO_LCHANCTX(chanctx_conf); list_del(&lchanctx->entry); lhw = HW_TO_LHW(hw); + memset(lchanctx, 0, sizeof(*lchanctx)); + lchanctx->lvif = VIF_TO_LVIF(vif); list_add_rcu(&lchanctx->entry, &lhw->lchanctx_list_reserved); } @@ -6806,6 +6810,7 @@ linuxkpi_ieee80211_iffree(struct ieee80211_hw *hw) lkpi_80211_mo_remove_chanctx(hw, chanctx_conf); } list_del(&lchanctx->entry); + /* No need to reset the lchanctx here as we will free it below. */ list_add_rcu(&lchanctx->entry, &lhw->lchanctx_list_reserved); } }