Skip to content

mptcp: Fix for 32-bit DATA_FIN

Mat Martineau mptcp netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mptcp: Consistently use READ_ONCE/WRITE_ONCE with msk->ack_seqnet/mptcp/options.c net/mptcp/protocol.c+6 -60 replies
2/2mptcp: Handle incoming 32-bit DATA_FIN valuesnet/mptcp/options.c net/mptcp/protocol.h net/mptcp/subflow.c+18 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] mptcp: Fix for 32-bit DATA_FIN

The main fix is contained in patch 2, and that commit message explains the issue with not properly converting truncated DATA_FIN sequence numbers sent by the peer.

With patch 2 adding an unlocked read of msk->ack_seq, patch 1 cleans up access to that data with READ_ONCE/WRITE_ONCE.

This does introduce two merge conflicts with net-next, but both have straightforward resolution. Patch 1 modifies a line that got removed in net-next so the modification can be dropped when merging. Patch 2 will require a trivial conflict resolution for a modified function declaration.

Mat Martineau (2):
mptcp: Consistently use READ_ONCE/WRITE_ONCE with msk->ack_seq
mptcp: Handle incoming 32-bit DATA_FIN values

 net/mptcp/options.c  | 11 ++++++-----
 net/mptcp/protocol.c |  8 ++++----
 net/mptcp/protocol.h |  2 +-
 net/mptcp/subflow.c  | 16 +++++++++++++---
 4 files changed, 24 insertions(+), 13 deletions(-)

base-commit: c92a79829c7c169139874aa1d4bf6da32d10c38a

Signature · 1 line
2.28.0