Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795019871; b=SRKzSdvuUHRiyn5nHoevrsxjSO2cipad2jmYsrS6Ef9+4vUzgx44EbCwOMu7VnQ/HfIF goZV3lifR9IAfMFgiSPnSS/ZezCYhghzgykPclZ670veZ/e2mWC0d4W1yC6bJUykW3TLx tQsAcKffnf9kK3i43G6hY52rYA1tolHRSyGW0/cP0+c6traDSJaaWHGHu7E/eB7GwFe9N 7EqRRtTEho6dhd77wck26tflujDewoo/p5VJzlwFXej0zkgGa/y1qh/lyItbo1WVv2xEw TI4Lxs7Sgwbk9EHkXKdJavCHZ5wL3Z0XSDRf9VRS095iRirFtOMaX1n4XxNJK2L/U/g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795019871; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=OLvOpvlgM7dT1OKRri4Cw2D5JBWBunBfDL+UTwUcR9Q=; b=hUeO9URqAJs7P1eZ5mI3sduf/3AI9WwIhWZ0iG8ae6n37JeBtg5KvQWUTXy3GDP0A75G tHf46/z/yKgXeq+CO7qHjN3zDo1WvM5+v2gwqQWRdrFVZ9ogcGCH6xH4TbqIQ4aGw4573 76zoTOO8H6DTiryEgP2ORusy3hCObYN2I+50xV2MUQu86r/dfsi2aVud86qt2yXHbZQyB VqrWkR/yiw65nyIQN/x6+GO9zMg1/0zKIbNGdfe+HOtyuMUjxfzQpAR6XW0EAPUqa0THg STgLha2fDrKA4q6xNMPYDbIH15dJLzsaQOvshpS749hxKOpWLcLhTPkdfhQYFppUY8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=LhfJrHUz; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14672606A31C; Wed, 18 Nov 2026 16:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=LhfJrHUz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41E911F000C4; Wed, 18 Nov 2026 16:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795019870; bh=OLvOpvlgM7dT1OKRri4Cw2D5JBWBunBfDL+UTwUcR9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LhfJrHUzbKDuWptqC8c8moMEAUREcWbPh1o6KnD5dN4hzexbMRssMV+1CoSD7XLi5 vQ5wBuNE17jNaI2OqDKf9lHj3AUzQ6DK7F08/nEsdOx5Cnb8FoZV0dGO0BnSy6HJtl p1w4/as8QZw3oGWCw4E9QK+k+nIBFOwvk8evzqMY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Chien Wong , Johannes Berg , Sasha Levin Subject: [PATCH 7.3 1709/2651] wifi: mac80211: reserve MME tailroom for protected beacons Date: Wed, 18 Nov 2026 15:49:09 +0100 Message-ID: <20261118150349.162233611@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150247.972732815@linuxfoundation.org> References: <20261118150247.972732815@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Chien Wong [ Upstream commit 48002331da85c7c962cfbc09c8bd84d219a6fe1c ] Beacon protection appends an MME to beacons, but the skb allocation does not reserve tailroom for it. If the available tailroom is too small, the crypto path drops the beacon. Two factors often mask this: the 256-byte TIM reservation is rarely fully used, and dev_alloc_skb() may round up the allocation, leaving extra tailroom. Neither guarantees enough room for the MME. Reserve enough room for the largest MME. Fixes: 0a3a84360b37 ("mac80211: Beacon protection using the new BIGTK (AP)") Signed-off-by: Chien Wong Link: https://patch.msgid.link/20261012140738.70178-3-m@xv97.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 4e23f89867e35..0492205459f0a 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -5769,7 +5769,8 @@ __ieee80211_beacon_get_ap(struct ieee80211_hw *hw, skb = dev_alloc_skb(local->tx_headroom + beacon->head_len + beacon->tail_len + 256 + - local->hw.extra_beacon_tailroom + mbssid_len); + local->hw.extra_beacon_tailroom + mbssid_len + + IEEE80211_ENCRYPT_TAILROOM); if (!skb) return NULL; -- 2.53.0