From: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
To: khorenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.1 v4 01/11] ms/mptcp: fix retransmission loop when csum is enabled
Date: Wed, 18 Nov 2026 07:35:09 +0200 [thread overview]
Message-ID: <20261118053958.1022750-2-eva.kurchatova@virtuozzo.com> (raw)
In-Reply-To: <20261118053958.1022750-1-eva.kurchatova@virtuozzo.com>
From: Paolo Abeni <pabeni@redhat.com>
Sashiko noted that retransmission with csum enabled can actually
transmit new data, but currently the relevant code does not update
accordingly snd_nxt.
The may cause incoming ack drop and an endless retransmission loop.
Address the issue incrementing snd_nxt as needed.
Fixes: 4e14867d5e91 ("mptcp: tune re-injections for csum enabled mode")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20260602-net-mptcp-misc-fixes-7-1-rc7-v2-2-856831229976@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit d1918b36edcaed0ec4ef6888b2358c6b1ddcff47)
https://virtuozzo.atlassian.net/browse/VSTOR-153491
Feature: fix ms/net
Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
---
net/mptcp/protocol.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 366a4b8167d8..36858f4b25a6 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -2667,6 +2667,10 @@ static void __mptcp_retrans(struct sock *sk)
msk->bytes_retrans += len;
dfrag->already_sent = max(dfrag->already_sent, len);
+ /* With csum enabled retransmission can send new data. */
+ if (after64(dfrag->already_sent + dfrag->data_seq, msk->snd_nxt))
+ WRITE_ONCE(msk->snd_nxt, dfrag->already_sent + dfrag->data_seq);
+
reset_timer:
mptcp_check_and_set_pending(sk);
--
2.56.1
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-18 5:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 5:35 [Devel] [PATCH hci-8.1 v4 00/11] ms/mptcp: stability fixes Eva Kurchatova
2026-11-18 5:35 ` Eva Kurchatova [this message]
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 02/11] ms/mptcp: move the retrans loop to a separate helper Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 03/11] ms/mptcp: move the stale logic out of retrans scheduler Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 04/11] ms/mptcp: let the retrans scheduler do its job Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 05/11] ms/mptcp: close TOCTOU race while computing rcv_wnd Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 06/11] ms/mptcp: allow subflow rcv wnd to shrink Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 07/11] ms/mptcp: cleanup fallback dummy mapping generation Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 08/11] ms/mptcp: explicitly drop over memory limits Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 09/11] ms/mptcp: implemented OoO queue pruning Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 10/11] ms/mptcp: being below memory limit is a likely() condition Eva Kurchatova
2026-11-18 5:35 ` [Devel] [PATCH hci-8.1 v4 11/11] ms/mptcp: avoid pruning for OoW data Eva Kurchatova
2026-11-18 10:48 ` [Devel] [PATCH hci-8.1 v4 00/11] ms/mptcp: stability fixes Konstantin Khorenko
2026-11-18 10:48 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261118053958.1022750-2-eva.kurchatova@virtuozzo.com \
--to=eva.kurchatova@virtuozzo.com \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox