Skip to content

mptcp: Fix checksum byte order on little-endian

Mat Martineau mptcp netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mptcp: fix checksum byte ordernet/mptcp/options.c net/mptcp/protocol.h net/mptcp/subflow.c+26 -140 repliesApplied
2/2mptcp: Do TCP fallback on early DSS checksum failurenet/mptcp/protocol.h net/mptcp/subflow.c+20 -40 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchPaolo Abeni
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] mptcp: Fix checksum byte order on little-endian

These patches address a bug in the byte ordering of MPTCP checksums on little-endian architectures. The __sum16 type is always big endian, but was being cast to u16 and then byte-swapped (on little-endian archs) when reading/writing the checksum field in MPTCP option headers.

MPTCP checksums are off by default, but are enabled if one or both peers request it in the SYN/SYNACK handshake.

The corrected code is verified to interoperate between big-endian and little-endian machines.

Patch 1 fixes the checksum byte order, patch 2 partially mitigates interoperation with peers sending bad checksums by falling back to TCP instead of resetting the connection.

Mat Martineau (1):
mptcp: Do TCP fallback on early DSS checksum failure

Paolo Abeni (1):
mptcp: fix checksum byte order

 net/mptcp/options.c  | 36 ++++++++++++++++++++++++------------
 net/mptcp/protocol.h |  5 +++--
 net/mptcp/subflow.c  | 23 +++++++++++++++++++----
 3 files changed, 46 insertions(+), 18 deletions(-)

base-commit: edf410cb74dc612fd47ef5be319c5a0bcd6e6ccd

Signature · 1 line
2.36.1