summary refs log tree commit diff
path: root/drivers/nfc/pn533/pn533.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2022-05-18 13:05:43 +0100
committerDavid S. Miller <davem@davemloft.net>2022-05-18 13:05:43 +0100
commit575fb4fb02b391ed60e5b041acda136f78e7779c (patch)
tree80ed5a6fcfb75df26fa2c223b0663d86112563a9 /drivers/nfc/pn533/pn533.c
parent680b892685ea7043addb5819ddec9147d4263195 (diff)
parentae66fb2ba6c3dcaf8b9612b65aa949a1a4bed150 (diff)
downloadlinux-575fb4fb02b391ed60e5b041acda136f78e7779c.tar.gz
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 <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/pn533/pn533.c')
0 files changed, 0 insertions, 0 deletions