linux-stable/net/mptcp
Matthieu Baerts (NGI0) 09176f8099 mptcp: distinguish rcv vs sent backup flag in requests
commit efd340bf3d 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-08-11 12:36:01 +02:00
..
bpf.c
crypto.c
crypto_test.c
ctrl.c
diag.c mptcp: fix possible deadlock in subflow diag 2024-03-06 14:45:12 +00:00
Kconfig
Makefile
mib.c
mib.h
mptcp_diag.c
options.c mptcp: distinguish rcv vs sent backup flag in requests 2024-08-11 12:36:01 +02:00
pm.c mptcp: update userspace pm infos 2023-06-14 11:15:27 +02:00
pm_netlink.c mptcp: fix user-space PM announced address accounting 2024-08-11 12:36:01 +02:00
pm_userspace.c mptcp: map v4 address to v6 when destroying subflow 2024-03-06 14:45:11 +00:00
protocol.c mptcp: sched: check both directions for backup 2024-08-11 12:36:00 +02:00
protocol.h mptcp: distinguish rcv vs sent backup flag in requests 2024-08-11 12:36:01 +02:00
sockopt.c mptcp: fix full TCP keep-alive support 2024-06-16 13:41:32 +02:00
subflow.c mptcp: distinguish rcv vs sent backup flag in requests 2024-08-11 12:36:01 +02:00
syncookies.c
token.c
token_test.c