Centos-kernel-stream-9/net/mptcp
Paolo Abeni 65330c619e mptcp: fix checksum byte order
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2100072
Tested: LNST, Tier1
Conflicts: context differences because rhel-9 already has
	the upstream commit 1e39e5a32ad7 ("mptcp: infinite mapping sending")

Upstream commit:
commit ba2c89e0ea74a904d5231643245753d77422e7f5
Author: Paolo Abeni <pabeni@redhat.com>
Date:   Tue May 17 11:02:11 2022 -0700

    mptcp: fix checksum byte order

    The MPTCP code typecasts the checksum value to u16 and
    then converts it to big endian while storing the value into
    the MPTCP option.

    As a result, the wire encoding for little endian host is
    wrong, and that causes interoperabilty interoperability
    issues with other implementation or host with different endianness.

    Address the issue writing in the packet the unmodified __sum16 value.

    MPTCP checksum is disabled by default, interoperating with systems
    with bad mptcp-level csum encoding should cause fallback to TCP.

    Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/275
    Fixes: c5b39e26d0 ("mptcp: send out checksum for DSS")
    Fixes: 390b95a5fb ("mptcp: receive checksum for DSS")
    Signed-off-by: Paolo Abeni <pabeni@redhat.com>
    Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-06-22 17:25:54 +02:00
..
Kconfig kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
Makefile mptcp: handle local addrs announced by userspace PMs 2022-05-06 11:03:26 +02:00
crypto.c kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
crypto_test.c
ctrl.c mptcp: Add a per-namespace sysctl to set the default path manager type 2022-05-06 11:03:23 +02:00
diag.c
mib.c mptcp: add more offered MIBs counter 2022-05-24 18:12:47 +02:00
mib.h mptcp: add more offered MIBs counter 2022-05-24 18:12:47 +02:00
mptcp_diag.c mptcp: listen diag dump support 2022-05-06 11:03:18 +02:00
options.c mptcp: fix checksum byte order 2022-06-22 17:25:54 +02:00
pm.c mptcp: fix subflow accounting on close 2022-05-18 18:11:49 +02:00
pm_netlink.c mptcp: netlink: allow userspace-driven subflow establishment 2022-05-06 11:03:28 +02:00
pm_userspace.c mptcp: netlink: allow userspace-driven subflow establishment 2022-05-06 11:03:28 +02:00
protocol.c mptcp: never shrink offered window 2022-05-24 18:12:41 +02:00
protocol.h mptcp: fix checksum byte order 2022-06-22 17:25:54 +02:00
sockopt.c mptcp: remove locking in mptcp_diag_fill_info 2022-05-06 11:03:18 +02:00
subflow.c mptcp: fix checksum byte order 2022-06-22 17:25:54 +02:00
syncookies.c mptcp: don't return sockets in foreign netns 2022-01-12 10:49:53 +01:00
token.c mptcp: full disconnect implementation 2022-05-06 11:00:59 +02:00
token_test.c mptcp: don't return sockets in foreign netns 2022-01-12 10:49:53 +01:00