From mboxrd@z Thu Jan 1 00:00:00 1970 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=1796384769; b=ZXHzJZi8U+VVgAezJcympul7wf8wOaZWPB4tAPRBFMiOJvcc7V65NlC9yOJDPinxFDGs tszs6uXXAlDjxze3UfZn5b41g1A2yW5bTmGX9gMIulvMgDD6eHtYupT8Bkf4Hzs04xuc7 RhO19grHthbj19umAf2Wvm3MlCnvX7+VEM3jjD5ATm8SLL4uRokWk0YJZ3IryuGXXuSLH 80Bk9ewzzYwYMZ0vYu7WCiOcPFICjwJ1aaZwEPiEXAC2Hn7J8n7Iq9BIO09yazoJv3Ohf N257St9SZ8UV/CC1mNDl3EXu3VukEaBUcoeJUpQV7Ep/8Sr/hE4C9va8GIz8ND7SHpQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384769; 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=9yESZ114vtStqZodBh/C5TiZJbe6670vTpRiisRMN40=; b=2s79RkJcnR1oTuPioac9wOI2fR3jfSR7HfSb8CunxTJxmOJ4sDGEqvbwBmcWHCXosJIE 1Uf+nwmvm+e4xqji0bwAGdtB8Pm4HX2GfRIMlWrWwxr+ZqZ1EADjgeS6gn+8Wh7vDRDgn ARbnqG5reQlsEZSC43a0kYsr8nwjzvLwMUE+Tw7GFeiAxn5hu0wAvMVTNITH/xAx3JC5H eGLUwqgpWpr8CwE38h2sPTEGMaMCzahBAHFfl5FjUX408yhj69EVC2SgekxDn2j73hGij C8cdaDE5pd7Pn/lEP/BLdE+uo+708/Y7xTjT8wQSeaGswfzNnIdXfOoQlXT31PMMw0A== 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=F6pom8Qy; 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 CA2DC606A32F; Fri, 4 Dec 2026 11:46:09 +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=F6pom8Qy Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43B081F0092C; Fri, 4 Dec 2026 11:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796384769; bh=9yESZ114vtStqZodBh/C5TiZJbe6670vTpRiisRMN40=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=F6pom8Qyp3gZBhNN1Ue+WTsp8UIc26Uul6SQxOJb8XpFGnIMIbQzA0fA7Q4dGTHzC twlXcyd/jLwuD4JODCctPx6xpHueEF0mZQzkUTv0RgSe9YUaLmhhrBV26TVX54m7tn JTaBKuGGcHhLaLgxSZjMdjR1POuaf1ahvEoFN0os= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Johannes Berg , Sasha Levin Subject: [PATCH 6.6 0235/1167] wifi: mac80211: mesh: dont linearize SKBs unnecessarily Date: Fri, 4 Dec 2026 18:54:22 +0900 Message-ID: <20261204100708.191406883@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Johannes Berg [ Upstream commit 6a6db144d96352967623f38692dfc4b4fb814518 ] If mesh fast-xmit cannot be used due to aggregation not being fully set up yet, there's no need to linearize the SKB. Avoid that, which addresses a stale pointer issue in the caller. Change-Id: I6b93e6c7587faf8749f8366ed574ee2b79fd47a5 Fixes: 8b0f5cb6bc7c ("wifi: mac80211: use mesh header cache to speed up mesh forwarding") Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/rx.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index a58870b452720..30a32c8c8a564 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -2755,9 +2755,6 @@ ieee80211_rx_mesh_fast_forward(struct ieee80211_sub_if_data *sdata, if (!sta) return false; - if (skb_linearize(skb)) - return false; - tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; tid_tx = rcu_dereference(sta->ampdu_mlme.tid_tx[tid]); if (tid_tx) { @@ -2768,6 +2765,10 @@ ieee80211_rx_mesh_fast_forward(struct ieee80211_sub_if_data *sdata, tid_tx->last_tx = jiffies; } + /* this function must not fail after this */ + if (skb_linearize(skb)) + return false; + ieee80211_aggr_check(sdata, sta, skb); if (ieee80211_get_8023_tunnel_proto(skb->data + hdrlen, -- 2.53.0