From: Geliang Tang <geliang@kernel.org>
To: mptcp@lists.linux.dev
Subject: [PATCH mptcp-net 0/4] mptcp: fixes for SIOCINQ
Date: Sun, 22 Nov 2026 11:37:45 +0800 [thread overview]
Message-ID: <cover.1795318567.git.tanggeliang@kylinos.cn> (raw)
From: Geliang Tang <tanggeliang@kylinos.cn>
The goal of this series is to make MPTCP's SIOCINQ fully consistent with
TCP's: both report the number of readable data bytes, excluding the FIN
byte.
Patch 1 fixes mptcp_pending_data_fin() to use >= instead of == so that
DATA_FIN is processed when ack_seq advances past rcv_data_fin_seq due to
OFO queue processing.
Patch 2 adds missing smp_wmb/smp_rmb barriers for rcv_data_fin_seq on
weakly-ordered architectures.
Patch 3 fixes mptcp_inq_hint() INT_MAX overflow on passive TFO by using
mptcp_data_avail() instead of ack_seq minus map_seq, and introduces a
mptcp_data_fin_seq() helper to guard the FIN byte (+1).
Patch 4 adds mptcp_inq() that excludes the FIN byte, matching TCP's
tcp_inq() behavior, and switches SIOCINQ to it.
Geliang Tang (4):
mptcp: handle ack_seq advancing past rcv_data_fin_seq
mptcp: add missing memory barriers for rcv_data_fin_seq
mptcp: fix TFO SIOCINQ overflow in mptcp_inq_hint
mptcp: add mptcp_inq() for SIOCINQ
net/mptcp/options.c | 1 +
net/mptcp/protocol.c | 55 +++++++++++++++++++++++++++++++-------------
2 files changed, 40 insertions(+), 16 deletions(-)
--
2.55.0
next reply other threads:[~2026-11-22 3:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 3:37 Geliang Tang [this message]
2026-11-22 3:37 ` [PATCH mptcp-net 1/4] mptcp: handle ack_seq advancing past rcv_data_fin_seq Geliang Tang
2026-11-22 3:37 ` [PATCH mptcp-net 2/4] mptcp: add missing memory barriers for rcv_data_fin_seq Geliang Tang
2026-11-22 3:37 ` [PATCH mptcp-net 3/4] mptcp: fix TFO SIOCINQ overflow in mptcp_inq_hint Geliang Tang
2026-11-22 3:54 ` sashiko-bot
2026-11-22 3:37 ` [PATCH mptcp-net 4/4] mptcp: add mptcp_inq() for SIOCINQ Geliang Tang
2026-11-22 5:54 ` [PATCH mptcp-net 0/4] mptcp: fixes " MPTCP CI
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=cover.1795318567.git.tanggeliang@kylinos.cn \
--to=geliang@kernel.org \
--cc=mptcp@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.