From nobody Sat Feb 7 11:38:13 2026 Received: from air.basealt.ru (air.basealt.ru [194.107.17.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DCDAB13FEE; Fri, 9 Aug 2024 14:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.107.17.39 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723213905; cv=none; b=aogYSDUwvTBX7DYYt/hfUJhGsLkGrQQclHPgcii3BN8WdlVDr0mykF7Ipkswt8up0Ghgfp4DnlK6H1tdhQ+rekpUpxiCcXr17U8hr/pAlP6BxVN50fmcmBud3Ns7ecsqKIWd/OwgxN/A75VrW35Kx0kuejrDhc+hj2cE83h/j5Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723213905; c=relaxed/simple; bh=D7BrfeSltrCH0avDP7QS/TjumZjqfLCIg9JFiWEDlbo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DdFnRqKZhlUxEnUmytYVweAf7o0AKIsgxlfoaa96wSe7aOCSaziFM9ef9XpzwH8IpWzRAkaas/DMJdMa9MukLd6xgdkYkH3HeesVKfVpuxPjU+sUzqGXgFET6aOaeSdPTxPXUmH5SY/aISvwhAbbEMY/5laHj8ONEr8V+zOqvrs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org; spf=pass smtp.mailfrom=altlinux.org; arc=none smtp.client-ip=194.107.17.39 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=altlinux.org Received: by air.basealt.ru (Postfix, from userid 490) id 341432F20284; Fri, 9 Aug 2024 14:31:40 +0000 (UTC) X-Spam-Level: Received: from dutyrok-pc.ipa.basealt.ru (unknown [194.247.22.88]) by air.basealt.ru (Postfix) with ESMTPSA id D222E2F2027C; Fri, 9 Aug 2024 14:31:39 +0000 (UTC) From: Alexandr Shashkin To: linux-kernel@vger.kernel.org Cc: Alexandr Shashkin , stable@vger.kernel.org, lvc-project@linuxtesting.org, Johannes Berg , "David S. Miller" , Jakub Kicinski , Greg Kroah-Hartman , kovalev@altlinux.org, syzbot+de87c09cc7b964ea2e23@syzkaller.appspotmail.com, Johannes Berg , Alexander Ofitserov Subject: [PATCH v2 5.10/5.15] wifi: mac80211: apply mcast rate only if interface is up Date: Fri, 9 Aug 2024 17:31:22 +0300 Message-ID: <20240809143122.534704-1-dutyrok@altlinux.org> X-Mailer: git-send-email 2.42.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" [ Upstream commit 02c665f048a439c0d58cc45334c94634bd7c18e6 ] If the interface isn't enabled, don't apply multicast rate changes immediately. Reported-by: syzbot+de87c09cc7b964ea2e23@syzkaller.appspotmail.com Signed-off-by: Johannes Berg [oficerovas: Backported to 5.10 and 5.15] Signed-off-by: Alexander Ofitserov Signed-off-by: Alexandr Shashkin --- Changes in v2: - edit comment of oficerovas and add upstream commit --- net/mac80211/cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 0c3da7771b48..13ac16026129 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -2560,7 +2560,8 @@ static int ieee80211_set_mcast_rate(struct wiphy *wip= hy, struct net_device *dev, memcpy(sdata->vif.bss_conf.mcast_rate, rate, sizeof(int) * NUM_NL80211_BANDS); =20 - ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_MCAST_RATE); + if (ieee80211_sdata_running(sdata)) + ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_MCAST_RATE); =20 return 0; } --=20 2.42.2