From: sashiko-bot@kernel.org
To: "Matthieu Baerts (NGI0)" <matttbe@kernel.org>,
"MPTCP Linux" <mptcp@lists.linux.dev>
Subject: Re: [PATCH mptcp-next mptcp-net v4 16/20] mptcp: push pending data after a fallback on reception
Date: Fri, 27 Nov 2026 20:29:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-238242@kernel.org> (raw)
In-Reply-To: <20261127-mptcp-cmason-fixes-v4-16-3f393ea8c48d@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mptcp: missing snd_una update and rtx_queue cleanup in
mptcp_data_ready()
--
commit 7e3a760d0b9eb64d294440dba08a325c185e5bb7
Author: Matthieu Baerts (NGI0) <matttbe@kernel.org>
mptcp: push pending data after a fallback on reception
This commit pushes pending send data from mptcp_data_ready() when an
incoming data packet triggers a fallback to plain TCP after
mptcp_incoming_options() has already run.
> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
> index 178792ebcc787..64fc04ea997c8 100644
> --- a/net/mptcp/protocol.c
> +++ b/net/mptcp/protocol.c
> @@ -1077,6 +1077,10 @@ void mptcp_data_ready(struct sock *sk, struct sock *ssk)
> } else {
> __mptcp_move_skbs_from_subflow(msk, ssk, false);
> }
> +
> + /* mptcp_incoming_options() can't push if this data caused a fallback */
> + if (__mptcp_check_fallback(msk) && sk_stream_memory_free(ssk))
> + __mptcp_check_push(sk, ssk);
> mptcp_data_unlock(sk);
> }
[Severity: Medium]
Should this fallback path also advance msk->snd_una to msk->snd_nxt and
call __mptcp_data_acked(sk), like the fallback block in
mptcp_incoming_options() does?
net/mptcp/options.c:mptcp_incoming_options() {
if (__mptcp_check_fallback(msk)) {
...
if (sk_stream_memory_free(sk))
__mptcp_check_push(subflow->conn, sk);
/* on fallback we just need to ignore the msk-level snd_una, as
* this is really plain TCP
*/
__mptcp_snd_una_update(msk, READ_ONCE(msk->snd_nxt));
__mptcp_data_acked(subflow->conn);
mptcp_data_unlock(subflow->conn);
return true;
}
When an incoming data packet triggers a fallback after
mptcp_incoming_options() has already run, omitting those calls leaves
dfrags up to msk->snd_nxt on msk->rtx_queue and charged to
sk->sk_wmem_queued until the peer sends another packet. If the local
sender filled sk->sk_sndbuf and the peer waits for more data before
sending again, mptcp_write_space() sees sk->sk_wmem_queued still full and
never wakes the blocked writer. It also leaves
sk->mptcp_retransmit_timer armed, causes mptcp_ioctl_outq() to overreport
SIOCOUTQ, and skips the mptcp_pending_data_fin_ack() check in
__mptcp_clean_una().
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127-mptcp-cmason-fixes-v4-0-3f393ea8c48d@kernel.org?part=16
next prev parent reply other threads:[~2026-11-27 20:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 20:01 [PATCH mptcp-net v4 00/20] mptcp: misc fixes Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 01/20] mptcp: reset MP_JOIN subflows on simult connect Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 02/20] mptcp: keep the first byte after a " Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 03/20] mptcp: move to ESTABLISHED " Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 04/20] mptcp: fix MSG_PEEK after a partly peeked skb Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 05/20] mptcp: send the DATA_ACK after moving the backlog Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 06/20] selftests: mptcp: join: infinite map: no spurious rtx Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 07/20] selftests: mptcp: connect: trunc: wait for acks Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 08/20] selftests: mptcp: connect: splice: handle MPTFO Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 09/20] selftests: mptcp: diag: wait longer before closing Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 10/20] mptcp: order write_seq and DATA_FIN flag Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 11/20] mptcp: order write_seq and DATA_FIN flag for fallback Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 12/20] mptcp: reset the rtx interval to the min RTO Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 13/20] mptcp: sched: avoid truncating the pacing rate in the scheduler Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 14/20] Squash to "bpf: Add mptcp packet scheduler struct_ops" Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-net v4 15/20] Squash to "bpf: Export mptcp packet scheduler helpers" Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-next mptcp-net v4 16/20] mptcp: push pending data after a fallback on reception Matthieu Baerts (NGI0)
2026-11-27 20:29 ` sashiko-bot [this message]
2026-11-27 20:01 ` [PATCH mptcp-next mptcp-net v4 17/20] mptcp: report errors as TCP does when closing Matthieu Baerts (NGI0)
2026-11-27 20:39 ` sashiko-bot
2026-11-27 20:01 ` [PATCH mptcp-next mptcp-net v4 18/20] mptcp: trace: name all the mapping statuses Matthieu Baerts (NGI0)
2026-11-27 20:01 ` [PATCH mptcp-next mptcp-net v4 19/20] mptcp: set ECONNRESET on disconnect, as TCP does Matthieu Baerts (NGI0)
2026-11-27 20:24 ` sashiko-bot
2026-11-27 20:01 ` [PATCH RFC mptcp-next mptcp-net v4 20/20] mptcp: reset when the DSS disappears after a DATA_ACK Matthieu Baerts (NGI0)
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=sashiko-outbox-238242@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
/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