From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4FC0B365A19; Tue, 12 May 2026 18:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778609592; cv=none; b=ny69yFwTqaXh3FuIfmx7DkF41phpfZP5i6CpiHu1QWACVwE+Xr0mRIM5WQ503TJMvHfo1owKAzQDGnP2ztHK/Vkth0ILrrXXsq71wuTUraHfWAxsD4DKgbCM+FLxqmnZQhMz1TIsk1b7YaZmMXiOTp1RgFaGE6xtoZvXPxL6rAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778609592; c=relaxed/simple; bh=Ip7e00kDKRS5sVA/eg4zfTFmpqUlrgo1R06wkI8aQV4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dukPRz/iwDkqQ6LFGKWYu/jMV5diFvAvKIv2Zg5jdXQd1tG8hAew8Y99DBe2DfrME49huacDvKI++LqPKwkBwlRz8ASae1v32fv2ZlNrr9SzAGt7cXquSQOceXaGw/P5grvmmFZk7s8dp89fKITsjnL9FzwskQdWzzP51wUy8lo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kzGP4eas; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="kzGP4eas" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DAA4FC2BCB0; Tue, 12 May 2026 18:13:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778609592; bh=Ip7e00kDKRS5sVA/eg4zfTFmpqUlrgo1R06wkI8aQV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kzGP4easUSNEJJwG3n8yuoVMMMn8zlcei2xIBrrXf2wVHYimKmEdSWSOu9Qj7n5qX rx1sdJeoFIo6q/VhvByuYdupixk0Yi8V0QSqzkChLtl1SITSjsCsEOTYX7EsmBZYTW SBGAaiN9IvrubNnodB4huDXxAurJVcLBqRDTAE0M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Paolo Abeni , "Matthieu Baerts (NGI0)" , Jakub Kicinski Subject: [PATCH 7.0 256/307] mptcp: fix rx timestamp corruption on fastopen Date: Tue, 12 May 2026 19:40:51 +0200 Message-ID: <20260512173945.529717622@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173940.117428952@linuxfoundation.org> References: <20260512173940.117428952@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paolo Abeni commit 6254a16d6f0c672e3809ca5d7c9a28a55d71f764 upstream. The skb cb offset containing the timestamp presence flag is cleared before loading such information. Cache such value before MPTCP CB initialization. Fixes: 36b122baf6a8 ("mptcp: add subflow_v(4,6)_send_synack()") Cc: stable@vger.kernel.org Signed-off-by: Paolo Abeni Reviewed-by: Matthieu Baerts (NGI0) Signed-off-by: Matthieu Baerts (NGI0) Link: https://patch.msgid.link/20260501-net-mptcp-misc-fixes-7-1-rc3-v1-3-b70118df778e@kernel.org Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/mptcp/fastopen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/net/mptcp/fastopen.c +++ b/net/mptcp/fastopen.c @@ -12,6 +12,7 @@ void mptcp_fastopen_subflow_synack_set_p struct sock *sk, *ssk; struct sk_buff *skb; struct tcp_sock *tp; + bool has_rxtstamp; /* on early fallback the subflow context is deleted by * subflow_syn_recv_sock() @@ -40,12 +41,13 @@ void mptcp_fastopen_subflow_synack_set_p */ tp->copied_seq += skb->len; subflow->ssn_offset += skb->len; + has_rxtstamp = TCP_SKB_CB(skb)->has_rxtstamp; /* Only the sequence delta is relevant */ MPTCP_SKB_CB(skb)->map_seq = -skb->len; MPTCP_SKB_CB(skb)->end_seq = 0; MPTCP_SKB_CB(skb)->offset = 0; - MPTCP_SKB_CB(skb)->has_rxtstamp = TCP_SKB_CB(skb)->has_rxtstamp; + MPTCP_SKB_CB(skb)->has_rxtstamp = has_rxtstamp; MPTCP_SKB_CB(skb)->cant_coalesce = 1; mptcp_data_lock(sk);