Article View: linux.kernel.netdev
Article #18161Re: [PATCH net 5/7] mptcp: push queued data on subflows falling back at the handshake
From: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 22:29
Date: Tue, 17 Nov 2026 22:29
92 lines
11420 bytes
11420 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] check_fully_established() (net/mptcp/options.c) now pushes
pending MPTCP data in its fallback branch every time that branch runs,โฆ
--
mptcp: push queued data on subflows falling back at the handshake
This commit pushes pending MPTCP data from check_fully_established() when
a subflow that is not yet fully established falls back to TCP, because
the first established packet carries no MP_CAPABLE option. This covers
both passive TFO subflows and clients with data held back by a small
SYN+ACK window.
> diff --git a/net/mptcp/options.c b/net/mptcp/options.c
> index bcf3440d1901b..617358ff7f990 100644
> --- a/net/mptcp/options.c
> +++ b/net/mptcp/options.c
> @@ -1035,6 +1035,10 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk,
> MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_FALLBACKFAILED);
> goto reset;
> }
> + /* this ACK will not reach the fallback path: push from here */
> + mptcp_data_lock(sk);
> + __mptcp_check_push(sk, ssk);
> + mptcp_data_unlock(sk);
> return false;
> }
[Severity: Low]
Can this push also run while an incoming RST is being processed?
tcp_reset() calls into MPTCP before it tears the subflow down:
net/ipv4/tcp_input.c:tcp_reset() {
...
if (sk_is_mptcp(sk))
mptcp_incoming_options(sk, skb);
...
tcp_done_with_error(sk, err);
}
Take an active client whose mp_capable subflow has sent the third ACK but
has not yet received a DSS DATA_ACK, so subflow->fully_established is
still 0. Suppose an RST arrives with seq == rcv_nxt == ssn_offset + 1.
tcp_validate_incoming() accepts it and calls tcp_reset().
A plain RST from a middlebox, or an RST that only carries MP_RST, has no
OPTIONS_MPTCP_MPC. So check_fully_established() enters this fallback
branch, and mptcp_try_fallback() succeeds.
The new code then goes through:
__mptcp_check_push()
__mptcp_subflow_push_pending()
mptcp_sched_get_send()
__subflow_push_pending()
tcp_push()
mptcp_reset_rtx_timer()
In fallback mode, mptcp_sched_get_send() only checks
__tcp_can_send(msk->first) and sk_stream_memory_free(). The subflow is
still TCP_ESTABLISHED at this point, so it gets picked.
Right after this returns, tcp_done_with_error() purges the subflow write
queue and closes the subflow.
Usually TCP's own snd_wnd keeps the data off the wire. The work is still
wasted, though: dfrags are copied into a queue that is purged at once,
msk->snd_nxt moves forward, and the msk rtx timer is armed during
teardown.
What if the TCP window allows more than the msk window? For example,
data could have been left behind by an allocation failure, or snd_wnd
could have been updated by a segment without a DSS. Could data segments
then go on the wire after a valid RST was accepted?
The fallback block at the top of mptcp_incoming_options() already does
this for an msk that fell back earlier. This patch makes the same thing
reachable from the not-yet-fully-established case.
The comment says "this ACK", but the packet here can be an RST. Would it
make sense to skip the push when the skb has the RST flag set?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261116-net-mptcp-misc-fixes-7-4-rc4-v1-0-bf7656de653e%40kernel.org
Technical Details
Message-ID:
<179495458948.3136.10805605417711396515@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365675-linux-kernel-netdev=dewy.ruReferences:
<20261116-net-mptcp-misc-fixes-7-4-rc4-v1-5-bf7656de653e@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365675-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 5/7] mptcp: push queued data on subflows falling back at the handshake Date: Tue, 17 Nov 2026 22:29:49 +0000 Organization: Usenet Network Message-ID: <179495458948.3136.10805605417711396515@kernel.org> References: <20261116-net-mptcp-misc-fixes-7-4-rc4-v1-5-bf7656de653e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2443607"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:yPs5Zh57EsTHW7jMzLJTByZMRnU= sha256:K3d30x/GHWU3OyuIK8bxGIB1R3Z/lY+OwUeQtpHGG1U= sha1:NNWcGTUwd9XYLIh8rvtiyH1pkQw= sha256:6tl7qQP00B2tn6mnijek+aBeeaGzegcynn/cxPQ6eJU= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 9480A1150D4; Wed, 18 Nov 2026 01:30:29 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lUXJ6HxIUzV0; Wed, 18 Nov 2026 01:30:25 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365675-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 7E9F71150CE; Wed, 18 Nov 2026 01:30:17 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id BE6963EF04; Tue, 17 Nov 2026 22:29:55 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794954591; b=T3DjRA3mZ9X7sZpGQ0cXRrugEM1QtPJH4bjgFuS2Z3zVrKjbpYCNNZth/GBkacc/pUOT O926nhE3GT+GACy6njYlIz4MNj3QY7JnVTopNlYwd3TCo3bAXstdKMLZaK4q48nLPsLKo iJe+oqFG37wE1fwc4YKP7M7esueB6qN5/NOwl6kH7okS5DvQReHC5DbObBqh1mAEwIBJu uof+7t6K7FlGIIVYP/tD/szqCzp56IL6i3GK1Q44zmK0++79h5TVuEZ2kGMRAB9DrWS6y j3DI0XYZvr2/Fs6qUYOk2wQ6+haTN1M7a/7wLfCjIrp8xJwvr5NI8OSW8aIHjKhFlEg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794954591; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=heh1kZ+qgjKo/AgXK7ewjk75P489JDGfLaGMmKnq1aQ=; b=UFNJ2r16ZFNmfM05/H9MHydjXaC4mHGXK+c8/cymc3ul+oGsPp7EsaLnaYUkUdMvFLFi hxPDn8q0DCXnjPAq5UCiwcOx57APmj2GNNi0oYs8GlN8hadD/CMBPebo7biA/vqYSadSP p40paxUK4Fi59oRsoEKOX0+g5fitZnceGfkHeqy2u6nFcyIovU6/FteizZ3xBtnbJLxyC WKTQKfxs9VSAE//iAFKyp/cDXbhxt8wf8/Jky3TDGdxNUw/CwarlaLOXiAGfIWBO8P/Id xbItnEk2FDn34Ke5O+E31o90jDfnUCmHVwYufqedfUzOXKh00tmXnFd8lKAhDk13Ejw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KtHkIJpK; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9AA6606A8AB; Tue, 17 Nov 2026 22:29:51 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KtHkIJpK X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794954591; b=SHyDZ6vQNmrRnxwMJy8tNT761ekL3uVbxWt+7I78/RFiWaFgtwbiUN8DGV24H4DJ/O+I L8hOio11HlfxKvW9rVTkhiPrdD1P/hj/gFkANOJqcxGg54MLbdUMOOu5rSXKtDiHbpvUC KQjUbG41jI3Znifi2e4MMNsvqvzzaEcRAsQr0VdVYbzLicyLK8K3hiQ4y9pxzDiUVCNx+ q8TpXrD3N6EYz7T1fGhZkQwS3+kXfFle5noz+6x3HMhQmY19ChcjHuq5Jt5yhyM1rmoZw 7OlTslH6eqlN06ZtFW/TBuOdAf8tOnMP8nLyWNHjI8+P1sM9LKQuSS1zkifbBJxNlHQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794954591; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=heh1kZ+qgjKo/AgXK7ewjk75P489JDGfLaGMmKnq1aQ=; b=l/eIHQbUHGvuxqEjmVd6lM+H1ewjA7zQfzLDwWz5QZjpb/KYaalaHxjNdwO6VhjOTE/B IBaL+JSE0+dq2mIKn3aBnC+bYXkaX8r/fHDRKNhSLo4gi9LcmJxPcrEcqYUlXyArDDluu hO6wUHGn/7tGKnt7Ws6mX7hZKvzVcBWWRTTmf9XUouqOvRnyI9qxzaerU+PFZZdggcte/ 64zPMJBJNTxLTklT9Q3cqFnPIh9M+2QnhU+NRepyJfIG3qe3Y5vYE+f4ZyyQAwHNMzDEv osY/LzUvpafHapkgXP6xBR2p9oolAq+zBsa6eWdsF4z6672NkY8ZGOLtkK7BA/4Hggw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KtHkIJpK; arc=none smtp.remote-ip=100.103.45.18 X-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 EB52C606A89D; Tue, 17 Nov 2026 22:29:50 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E73601F000CF; Tue, 17 Nov 2026 22:29:49 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794954590; bh=heh1kZ+qgjKo/AgXK7ewjk75P489JDGfLaGMmKnq1aQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=KtHkIJpKdbvxPV5VSpqfs60sYKIwf8OO81qJqLVZEjOcPv9TyF1UdkC/gLQ3JMdm2 Hs33WbfXbDp0VLd811I6Oeo83qiFNrKmoL8VsgeM/nDLbQRzqx30p6Zyn4Mjt97jOy oAZ51/bD8DanPwUswTJLdf40xt5DOhlreYqbziGLR3Xecsem8LmYHAZTeTnZQDG9M9 T4bf9mdi2J67pPLY6VccFnWzUA2Tytb0dFmNGi6vuDXkBPXYKrKtRyZ+SITNQBj2zY KmniKyytqLQW0DRp989Wjle89CpcpWsNne4csDWhFKSGHNmNSLQvh4jQEONNNGZhQ5 l6/zVu2Pelztg== X-Cc: martineau@kernel.org, geliang@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, fw@strlen.de, dmytro@shytyi.net, netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org, mason@kernel.org X-In-Reply-To: <20261116-net-mptcp-misc-fixes-7-4-rc4-v1-5-bf7656de653e@kernel.org> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list