From nobody Mon Dec 8 15:44:08 2025 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 4dQ5rG0Fqsz6JyYP for ; Mon, 08 Dec 2025 15:44:14 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dQ5r84b4sz441Q for ; Mon, 08 Dec 2025 15:44:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765208648; 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=Cf9fbFlXSv9TnobXZt1XDlmvZSa5l+9AqDjjey5F8l0=; b=X9AfrpY+izYYp7H7tUiNPfiilIVEQbhfwMvJhVPfJ61BtMEXna6EPEw0Ejno6GGUvzeVtv j2EjciVDEZjo2pA0Jy/6A/dO1lrNGowgT5bhUGUkW43+p0AHb1tKAoLoVc/foZLpaHHADp c1UAiD09hbSBz9Af6eu75wHMVfLG5wbWbrDeGYIDolyOQeAxTc6lG6pVVXXMG49YcUf41r Lu1+1EAS7R/nVKLKzUKwxZoHpcUVKBgW07PK+wmax9EU1KGaVqzku354TWUIVRbU/vNxnL T8yfaxdjGsHV2VXjug0TkwPwSg/bIN6YKTfNZ7QLgARl3yqJAlGvmJ9mrKPt4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1765208648; 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=Cf9fbFlXSv9TnobXZt1XDlmvZSa5l+9AqDjjey5F8l0=; b=lQ/yLgkkbEEK1UZNnnBjD8hhg/0ake8a/Q56T3R+44ndaKbL0lgKzF0RjjRKDqkignr8C/ TjT0qcdomL+jQcgPIaniaR2EJEnPLaMFm39x+sIzfBZEezvch3B+gkaaiZMIhoOxneGtkV lHHZhRF7uVS2AKmnRz3IULg4khbuiE9QDs/bZ6X06GAZdE/E/RMAmqoiiiDh8L2vcYXQX3 DU3Ab3xzegmUOsDvqkSJjf2dF7n0Ru0M4gwhcMNEZkJrl1S7uZC2V622zEUyj4u4bvd/0m UuLyQBp8lHWvlT8HsVmZeKb0PWQqrawRjSy0MLp2QID5Ukc8TVwynl4cKHINzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1765208648; a=rsa-sha256; cv=none; b=jZkY5Am/wFQVy2PYrDpO+zwBzgJGyfEx2ln2zE8H2jwO+9gg7LWrVcDClt4TvzS0fPwI+I qawCOFBkuambKVGvB63q3Bb22nDMUDcuZDx4HZd73GrEc0dPAOX+S0UhinTuXO6zSnLpZ5 GiXfz9gbZVQ8thjK00DOZdI3Cvt3Pq96JLKMIBxIKdffY65hPNtzDZSFQVopOUuy6GsVt1 FjwJu5fvIVQtLIE3Z3yljKo8q+r6jwFTMpk8MgeGpN5/jaaW/OTGcNxJJV015p3CHNT5cf JZiB/Z9NVLsgUowKZDuAxs0LlPVKG2WQwg/FLLlILNMuvejZMeXH2z5ob1zsww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dQ5r8418cz3hV for ; Mon, 08 Dec 2025 15:44:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 36d5a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 08 Dec 2025 15:44:08 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: d389d1ac1699 - stable/15 - LinuxKPI: 802.11: initialize the passed in chandef in cfg80211_chandef_create 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 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: d389d1ac1699aea517a18cf73486e7077cfbda46 Auto-Submitted: auto-generated Date: Mon, 08 Dec 2025 15:44:08 +0000 Message-Id: <6936f248.36d5a.519688a9@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d389d1ac1699aea517a18cf73486e7077cfbda46 commit d389d1ac1699aea517a18cf73486e7077cfbda46 Author: Bjoern A. Zeeb AuthorDate: 2025-11-17 22:54:07 +0000 Commit: Bjoern A. Zeeb CommitDate: 2025-12-08 15:43:50 +0000 LinuxKPI: 802.11: initialize the passed in chandef in cfg80211_chandef_create cfg80211_chandef_create() gets passed a pointer to a cfg80211_chan_def. It seems that several users are passing in an uninitialized variable from the stack and expect cfg80211_chandef_create() to initialize it. Run memset() on the struct, which for all callers currently seems to do the right thing, to avoid later accesses to uninitialized struct members like "punctured". Reported by: CI (gcc build) Sponsonred by: The FreeBSD Foundation (cherry picked from commit 640205bc22c8b2bd31c766f4d0c409c183a8b8dc) --- sys/compat/linuxkpi/common/include/net/cfg80211.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/net/cfg80211.h b/sys/compat/linuxkpi/common/include/net/cfg80211.h index f769cfdd4075..305026b34451 100644 --- a/sys/compat/linuxkpi/common/include/net/cfg80211.h +++ b/sys/compat/linuxkpi/common/include/net/cfg80211.h @@ -1450,7 +1450,7 @@ cfg80211_chandef_create(struct cfg80211_chan_def *chandef, KASSERT(chandef != NULL, ("%s: chandef is NULL\n", __func__)); KASSERT(chan != NULL, ("%s: chan is NULL\n", __func__)); - /* memset(chandef, 0, sizeof(*chandef)); */ + memset(chandef, 0, sizeof(*chandef)); chandef->chan = chan; chandef->center_freq1 = chan->center_freq; /* chandef->width, center_freq2, punctured */