public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/5] mptcp: fix stalled connections
@ 2023-09-16 10:52 Matthieu Baerts
  2023-09-16 10:52 ` [PATCH net 1/5] mptcp: fix bogus receive window shrinkage with multiple subflows Matthieu Baerts
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Matthieu Baerts @ 2023-09-16 10:52 UTC (permalink / raw)
  To: mptcp, Mat Martineau, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Davide Caratti
  Cc: netdev, linux-kernel, Matthieu Baerts, stable

Daire reported a few issues with MPTCP where some connections were
stalled in different states. Paolo did a great job fixing them.

Patch 1 fixes bogus receive window shrinkage with multiple subflows. Due
to a race condition and unlucky circumstances, that may lead to
TCP-level window shrinkage, and the connection being stalled on the
sender end.

Patch 2 is a preparation for patch 3 which processes pending subflow
errors on close. Without that and under specific circumstances, the
MPTCP-level socket might not switch to the CLOSE state and stall.

Patch 4 is also a preparation patch for the next one. Patch 5 fixes
MPTCP connections not switching to the CLOSE state when all subflows
have been closed but no DATA_FIN have been exchanged to explicitly close
the MPTCP connection. Now connections in such state will switch to the
CLOSE state after a timeout, still allowing the "make-after-break"
feature but making sure connections don't stall forever. It will be
possible to modify this timeout -- currently matching TCP TIMEWAIT value
(60 seconds) -- in a future version.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
---
Paolo Abeni (5):
      mptcp: fix bogus receive window shrinkage with multiple subflows
      mptcp: move __mptcp_error_report in protocol.c
      mptcp: process pending subflow error on close
      mptcp: rename timer related helper to less confusing names
      mptcp: fix dangling connection hang-up

 net/mptcp/options.c  |   5 +-
 net/mptcp/protocol.c | 165 +++++++++++++++++++++++++++++++--------------------
 net/mptcp/protocol.h |  24 +++++++-
 net/mptcp/subflow.c  |  39 +-----------
 4 files changed, 130 insertions(+), 103 deletions(-)
---
base-commit: 615efed8b63f60ddd69c0b8f32f7783859034fc2
change-id: 20230915-upstream-net-20230915-mptcp-hanging-conn-0609338b1728

Best regards,
-- 
Matthieu Baerts <matthieu.baerts@tessares.net>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-09-18 11:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-16 10:52 [PATCH net 0/5] mptcp: fix stalled connections Matthieu Baerts
2023-09-16 10:52 ` [PATCH net 1/5] mptcp: fix bogus receive window shrinkage with multiple subflows Matthieu Baerts
2023-09-16 10:52 ` [PATCH net 2/5] mptcp: move __mptcp_error_report in protocol.c Matthieu Baerts
2023-09-16 10:52 ` [PATCH net 3/5] mptcp: process pending subflow error on close Matthieu Baerts
2023-09-16 10:52 ` [PATCH net 4/5] mptcp: rename timer related helper to less confusing names Matthieu Baerts
2023-09-16 10:52 ` [PATCH net 5/5] mptcp: fix dangling connection hang-up Matthieu Baerts
2023-09-18 11:50 ` [PATCH net 0/5] mptcp: fix stalled connections patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox