From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 942EA322B8F for ; Thu, 28 May 2026 10:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779962577; cv=none; b=a8q0BKPL/KrbLbDFBBD9B6Myw1iWMl9ZinRJtJofkTcaAXuxkj0rjdE4UEnFw4n0RG+iIoM8PAtUgLB6/t78q/ya0J4+SpQ7exfYq+eTdGMlCzBTQAruzAXwUNmV3xqlpUP6/82NbO2a4vLRrJbrXmuDnui6yzqas/MjXbalPPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779962577; c=relaxed/simple; bh=IhPBytaA8BFUuTw7/0oOG6FIDxP7rjYF2sGHOKZY+oo=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=i9pSMTYvLmLN2RDrPrhNxm2m7tz5yRurz5/AIuyEisSxLNFDIBjRCkuvrcPerggcMAKrEMwVlL35kW5hoyPdzj5nEruVN3XRfaEXaXZqUR6R5b35+83Mvi0wTYOBFDosk7rlUkwaqqR391GBEpMoG7vw9xtipLsAVGTSVkS0Bcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=en6pthxf; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="en6pthxf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DC3E71F000E9; Thu, 28 May 2026 10:02:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779962576; bh=fBU42wiXkgsgV3tVUE9I5BXfcF7eaZn8wDyu77jEXlM=; h=Subject:To:Cc:From:Date; b=en6pthxftK64TguShwkGXJTw2nqqkCaMbbRXo5oZGCUu46DEIYzL+webKFnFGdwTG FvTprwGXNKSMYEmzU2GQX8xD6yq3XMJz8xsd+PTGTk9uV2hVVksbB5PTsfmDK7svof ePrQPyXOALYaw17nSrW/WWVlvlwUUqAcj5qcZa3k= Subject: FAILED: patch "[PATCH] mptcp: reset rcv wnd on disconnect" failed to apply to 6.1-stable tree To: pabeni@redhat.com,matttbe@kernel.org Cc: From: Date: Thu, 28 May 2026 12:01:52 +0200 Message-ID: <2026052852-legend-goldmine-0cfb@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x 0981f90e1a05773a4c29c6e720f5ea1e3c8f1876 # git commit -s git send-email --to '' --in-reply-to '2026052852-legend-goldmine-0cfb@gregkh' --subject-prefix 'PATCH 6.1.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 0981f90e1a05773a4c29c6e720f5ea1e3c8f1876 Mon Sep 17 00:00:00 2001 From: Paolo Abeni Date: Fri, 15 May 2026 06:27:35 +0200 Subject: [PATCH] mptcp: reset rcv wnd on disconnect If the MPTCP socket fallback to TCP before the MP handshake completion, the IASN remain 0, and the rcv_wnd_sent field is not explicitly initialized, just incremented over time with the data transfer. At disconnect time such value is not cleared. If the next connection falls back to TCP before the MP handshake completion, the data transfer will keep incrementing the receive window end sequence starting from the last value used in the previous connection: the announced window will be unrelated from the actual receiver buffer size and likely too big. Address the issue zeroing the field at disconnect time. Fixes: b29fcfb54cd7 ("mptcp: full disconnect implementation") 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/20260515-net-mptcp-misc-fixes-7-1-rc4-v2-4-701e96419f2f@kernel.org Signed-off-by: Paolo Abeni diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c index 859df49e16dc..a72a6ad6ee8b 100644 --- a/net/mptcp/protocol.c +++ b/net/mptcp/protocol.c @@ -3487,6 +3487,7 @@ static int mptcp_disconnect(struct sock *sk, int flags) /* for fallback's sake */ WRITE_ONCE(msk->ack_seq, 0); + atomic64_set(&msk->rcv_wnd_sent, 0); WRITE_ONCE(sk->sk_shutdown, 0); sk_error_report(sk);