From: David S. Miller Date: Wed, 18 May 2022 12:05:43 +0000 (+0100) Subject: Merge branch 'mptcp-checksums' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=575fb4fb02b391ed60e5b041acda136f78e7779c;p=linux.git Merge branch 'mptcp-checksums' Mat Martineau says: ==================== 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. ==================== Signed-off-by: David S. Miller --- 575fb4fb02b391ed60e5b041acda136f78e7779c