WSL2-Linux-Kernel/net
Matthieu Baerts (NGI0) 6f01f41b6a mptcp: distinguish rcv vs sent backup flag in requests
commit efd340bf3d7779a3a8ec954d8ec0fb8a10f24982 upstream.

When sending an MP_JOIN + SYN + ACK, it is possible to mark the subflow
as 'backup' by setting the flag with the same name. Before this patch,
the backup was set if the other peer set it in its MP_JOIN + SYN
request.

It is not correct: the backup flag should be set in the MPJ+SYN+ACK only
if the host asks for it, and not mirroring what was done by the other
peer. It is then required to have a dedicated bit for each direction,
similar to what is done in the subflow context.

Fixes: f296234c98 ("mptcp: Add handling of incoming MP_JOIN requests")
Cc: stable@vger.kernel.org
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
[ Conflicts in subflow.c, because the context has changed in commit
  4cf86ae84c ("mptcp: strict local address ID selection"), and in
  commit 967d3c27127e ("mptcp: fix data races on remote_id"), which are
  not in this version. These commits are unrelated to this
  modification. ]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-19 05:45:48 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth Bluetooth: l2cap: always unlock channel in l2cap_conless_channel() 2024-08-19 05:45:36 +02:00
bpf
bpfilter
bridge net: bridge: mcast: wait for previous gc cycles when removing port 2024-08-19 05:45:35 +02:00
caif
can
ceph
core net: linkwatch: use system_unbound_wq 2024-08-19 05:45:35 +02:00
dcb
dccp
dns_resolver
dsa
ethernet
ethtool
hsr
ieee802154
ife
ipv4 netfilter: iptables: Fix null-ptr-deref in iptable_nat_table_init(). 2024-08-19 05:45:32 +02:00
ipv6 ipv6: fix ndisc_is_useropt() handling for PIO 2024-08-19 05:45:32 +02:00
iucv net/iucv: fix use after free in iucv_sock_close() 2024-08-19 05:45:32 +02:00
kcm
key
l2tp l2tp: fix lockdep splat 2024-08-19 05:45:36 +02:00
l3mdev
lapb
llc
mac80211 wifi: mac80211: disable softirqs for queued frame handling 2024-07-27 10:46:15 +02:00
mac802154
mctp
mpls
mptcp mptcp: distinguish rcv vs sent backup flag in requests 2024-08-19 05:45:48 +02:00
ncsi
netfilter netfilter: ipset: Add list flush to cancel_gc 2024-08-19 05:45:34 +02:00
netlabel
netlink
netrom
nfc
nsh
openvswitch
packet af_packet: Handle outgoing VLAN packets without hardware offloading 2024-08-19 05:45:11 +02:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc
sched sched: act_ct: take care of padding in struct zones_ht_key 2024-08-19 05:45:31 +02:00
sctp sctp: Fix null-ptr-deref in reuseport_add_sock(). 2024-08-19 05:45:35 +02:00
smc net/smc: set rmb's SG_MAX_SINGLE_ALLOC limitation only when CONFIG_ARCH_NO_SG_CHAIN is defined 2024-08-19 05:44:56 +02:00
strparser
sunrpc SUNRPC: Fix a race to wake a sync task 2024-08-19 05:45:39 +02:00
switchdev
tipc tipc: Return non-zero value from tipc_udp_addr2str() on error 2024-08-19 05:45:24 +02:00
tls
unix
vmw_vsock
wireless wifi: nl80211: don't give key data to userspace 2024-08-19 05:45:37 +02:00
x25
xdp
xfrm
Kconfig
Makefile
compat.c
devres.c
socket.c
sysctl_net.c