From: Gang Yan <yangang@kylinos.cn>
Changelog:
V5:
- Patch 1 fixes missing initialization of msk->backlog_unaccounted in
__mptcp_init_sock() to match the commit message.
- Patch 4 removes the 'else' branch to fix potential TOCTOU race and
fix typo in title.
- Patch 5 drops the redundant tcp_rmem restore.
- Add notes in some patches of the series in response to the AI
review.
v4:
- Pass 'delta' to 'move_skbs_to_msk' to fix the potential problems,
and add a helper named 'move_skbs_from_backlog' to achieve this.
- Add a test case in mptcp_join.sh which can reproduce such stall
prolems.
- Fix a dead_lock problems which is imported in the 1d77124a6322
('mptcp: fix the stall problems with data_ready.').
v3:
- Replace backlog list with backlog_queue(rb-tree) to solve the
stall problems.
Link: https://patchwork.kernel.org/project/mptcp/cover/cover.1773735950.git.yangang@kylinos.cn/
v2:
Link: https://patchwork.kernel.org/project/mptcp/patch/20260209084717.506379-1-gang.yan@linux.dev/
v1:
Link: https://patchwork.kernel.org/project/mptcp/cover/cover.1770273341.git.yangang@kylinos.cn/
Gang Yan (5):
mptcp: replace backlog_list with backlog_queue
mptcp: fix the stall problems using backlog_queue
mptcp: fix the stall problems with data_ready
mptcp: fix the dead_lock in mptcp_data_ready
selftests: mptcp: test transmission with small rcvbuf
net/mptcp/protocol.c | 110 +++++++++++++++---
net/mptcp/protocol.h | 2 +-
.../testing/selftests/net/mptcp/mptcp_join.sh | 17 +++
3 files changed, 112 insertions(+), 17 deletions(-)
--
2.43.0