Article View: linux.kernel.netdev
Article #591[PATCH] mptcp: push queued data on passive TFO subflows becoming established
From: T S Rameshkumar
Date: Thu, 08 Oct 2026 09:52
Date: Thu, 08 Oct 2026 09:52
63 lines
10331 bytes
10331 bytes
With TCP Fast Open on an MPTCP listener, if the server application
writes data while the passive subflow is still in SYN_RECV (after
consuming the client's SYN data but before the MP_CAPABLE third ACK
arrives), __mptcp_subflow_active() refuses transmission and the data
is queued into the msk write queue.
When the MPC third ACK arrives, check_fully_established() marks the
subflow established, but because the third ACK carries no DSS data,
the queued bytes remain stranded until the peer sends more data.
Fix this by:
1. Invoking __mptcp_check_push() in check_fully_established() when
subflow->is_mptfo is set.
2. Setting MPTCP_PUSH_PENDING and scheduling the MPTCP worker in
subflow_state_change() so that once the underlying subflow transitions
to TCP_ESTABLISHED, pending queued bytes are immediately flushed.
Reported-by: Petar Sakic <petar.sakic@ink.fish>
Closes: https://lore.kernel.org/netdev/CAFPPu1gU2Y-D+d4i3F0MoNkYK+e1U+=X3qf6QycjfKBw+8snPg@mail.gmail.com/
Fixes: e00b63056fb4 ("fastopen: only mark MPTFO subflows with SYN data")
Signed-off-by: T S Rameshkumar <rameshkumar.t@phytecembedded.in>
---
net/mptcp/options.c | 7 +++++++
net/mptcp/subflow.c | 5 +++++
2 files changed, 12 insertions(+)
diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index ce0de02f5..d5238fa11 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -1042,6 +1042,13 @@ static bool check_fully_established(struct mptcp_sock *msk, struct sock *ssk,
mptcp_data_lock((struct sock *)msk);
__mptcp_subflow_fully_established(msk, subflow, mp_opt);
+ /* Passive TFO: the application may have written data while the
+ * subflow was still in SYN_RECV; __mptcp_subflow_active() refused
+ * it then and nothing else spools the msk write queue when the
+ * MPC third ack (no DSS) arrives. Push it now.
+ */
+ if (subflow->is_mptfo)
+ __mptcp_check_push((struct sock *)msk, ssk);
mptcp_data_unlock((struct sock *)msk);
check_notify:
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index f0a6725d2..f499073a6 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -1894,6 +1894,11 @@ static void subflow_state_change(struct sock *sk)
if (subflow->resetting)
return;
+ if (subflow->is_mptfo) {
+ set_bit(MPTCP_PUSH_PENDING, &mptcp_sk(parent)->cb_flags);
+ mptcp_schedule_work(parent);
+ }
+
/* as recvmsg() does not acquire the subflow socket for ssk selection
* a fin packet carrying a DSS can be unnoticed if we don't trigger
* the data available machinery here.
--
2.34.1
Technical Details
Message-ID:
<20261008095231.103186-1-rameshkumar.t@phytecembedded.in>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342873-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342873-linux-kernel-netdev=dewy.ru
From: rameshsv06@gmail.com (T S Rameshkumar)
Newsgroups: linux.kernel.netdev
Subject: [PATCH] mptcp: push queued data on passive TFO subflows becoming established
Date: Thu, 8 Oct 2026 15:22:31 +0530
Organization: Usenet Network
Message-ID: <20261008095231.103186-1-rameshkumar.t@phytecembedded.in>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="848923"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:MqKqS6APY/1rraikLblxHGKo5bk= sha256:NDboiSOm3CGDlDyqzhBCco/IlIc1l18FKO8mMtixHDk=
sha1:0G3K+e2TSYv/Z9cp9DX76EM7kVQ= sha256:fY7zjrFrB8+Onm1VrGF+kkM5Y/JI536U+67/I5zmbeU=
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 8510910F385; Thu, 8 Oct 2026 12:54:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 vqZ6zrUpXDB2;
Thu, 8 Oct 2026 12:54:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342873-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id EC38110F37E; Thu, 8 Oct 2026 12:54:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 48EA129CED; Thu, 8 Oct 2026 09:53:21 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 878C548A8B4;
Thu, 8 Oct 2026 09:53:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C3kyBGjn"
X-Received: from mail-dy1-f177.google.com (mail-dy1-f177.google.com [74.125.82.177])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5020347D477
for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 09:53:15 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.177
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791453197; cv=none; b=HEVawQa7vsmi3i2nZE+4Dezy3KeVswqCb8IX6Ap96Hyuo/uFGJEvKggUKg0xqdiJVYKxUpFuEW9DvU+ijpWNnwgH7bvzigX8oEnZIKPsUKrEPPxwZ+Gml04W6tpVjQ9GOgRM/zfcldbJGRsJvjzKQtTGs20eZyf949oClWzbsHc=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791453197; c=relaxed/simple;
bh=wUjYNkz1DPayKi6xom1xAiMmjrkORcjqSBD+DP9E8q0=;
h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=a8C0jyfLUzjURSwRSdIhD1shNOnq96stOhzlQTbP7dq+n2asT4AoIOhaTNLqC1+R5bEYvyFa8vWKS2psTgh0qwaDiLp79j7nQKFyskWs7xpdSqQEBq5FlEmrVVkpQbhOKPf2SN8xL78s0JMHkb216qYj3P5PaFd+RrjvRbphidg=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=C3kyBGjn; arc=none smtp.client-ip=74.125.82.177
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dy1-f177.google.com with SMTP id 5a478bee46e88-351775aa1c0so956234eec.0
for <netdev@vger.kernel.org>; Thu, 08 Oct 2026 02:53:15 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791453194; x=1792057994; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=9YmqIKYdaFgNycQM+T7TwOEsRpUEkjHzmaTjKIGKx+A=;
b=C3kyBGjnXzC9pWH5rqjTbgtG31Ap/N90idKbaUgkxF4ebWRBhzBL862z62Xl+bHols
e+69EbIN7kMB4WIWVHhnX3ZZkD7L7blwk5OcE4IcD2ilQm2Zy3bsuBDW4mmg1ZbankVz
DEfAOlTcFFp6l9BQH+KiB+g0gcUGJiH6FYd21V/4rJE0o+PTU+vso9Xp2yBAmB8pScBY
gnWVhSM9r91yEVQmeOxngMGOuwheH/S+f9Kjk4nUyeXi6LXi8/oumIaLbx11UZC+/OEZ
dy4w5MhaOm45NnN8oeImjlqGONED+lFps9yfGNW073qFLXK0ByFk7ww7hsXspfWxkfTr
zZgw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791453194; x=1792057994;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=9YmqIKYdaFgNycQM+T7TwOEsRpUEkjHzmaTjKIGKx+A=;
b=O5hpoExhSTRUyfoUyPNnuOr1Jekg9T8pjgGLiFnbVWiCTaPOBJvqKtm8ytPdElQEUb
i4pyXsUUFQ/RLsGGWbAkMXYe6uIfbRvqvGrysDJSPvx7cUOolS43eTKLzYCvSAmGvhPV
f4X7jmTENBRtPUlXLGiGAz92Xg/vZGw0UlSij9M36wG9bzAczfq0lKm0oDN7iFVuj9BP
rTXuNwrV5A5flP/U9Msp5Q5Lsak/gLwUnf/4af1gWs5GEN+cSbq+5NtKU6UX9lyhtMbH
rkQ69DfrG+OrjGqOFzQby+qA+2aiT4VcpTChssjE82OtEKPd59hEPz4EPrWr8jiKe4u8
IXZA==
X-Gm-Message-State: AFuF++nBOJER86c0e6MMmkPhQdd7CFIBG98eQiWfzXK8kXzRVtpmTQeb
Sw0pODjnYIOLw8lFz4KkHBo/Ghh16NkDhlwXxtyI5Xpc5EWn8gAzlfPETo0dFknphLn8hw==
X-Gm-Gg: AYBFou2ie2FU7G+jj5hXfJJjQ7duqyYKcLPlr39TQP9j4yyLEA2xEBSFZKdVSPHacGP
m2A9ashTZq2D160EY202r/pxpZCRmA11N62t/Wxdm/8cGeqA1Q8dAfmwhl5VjDxSTON8aHAdcks
XhHbIJTv7c+PVUKDWDsA7VLBQk9rkq3fWvuoaoBqrARFvnscJt7ekYe73HUQsXAuIaieDirhP1w
OnWjMCkOo1kwbR6K9ZvgYR6qYjMC0gVncVZYco98wa6uOuUvbRO6q9kr0i/mmGVh6XSfdEqfl0D
IYX1H4hyed2G8mGeiIUAj3ZsAcq/CvcR5fBIkWyezcPPPe9/6EGzhXQUWevpi0P4QUfCYom0yYM
EhuLSKm7YUsC+mbL1+gqaWU7jMU2cz2QM56Yt6w+q7x3nA8Vpwv9o2cc7isDl9rFGtnGhPoIO1U
L5woBqBGUmYW9D+oFJkOT5Ecxuq4RhaxKP+sWnhkCY6PIMsqCcRDLSULicHvUt+lY4R8Fyg7YuZ
KsysGfS
X-Received: by 2002:a05:7300:d194:b0:33b:a766:ea6a with SMTP id 5a478bee46e88-3515dee3e47mr5439589eec.32.1791453194219;
Thu, 08 Oct 2026 02:53:14 -0700 (PDT)
X-Received: from ramesh.. ([124.123.89.203])
by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3515afab2c5sm14137064eec.21.2026.10.08.02.53.10
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 08 Oct 2026 02:53:13 -0700 (PDT)
X-Google-Original-From: T S Rameshkumar <rameshkumar.t@phytecembedded.in>
X-Cc: netdev@vger.kernel.org,
mptcp@lists.linux.dev,
linux-kernel@vger.kernel.org,
Petar Sakic <petar.sakic@ink.fish>,
T S Rameshkumar <rameshkumar.t@phytecembedded.in>
X-Mailer: git-send-email 2.34.1
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>