linux/net/mptcp
Paolo Abeni 68cc924729 mptcp: fix duplicate data handling
When a subflow receives and discards duplicate data, the mptcp
stack assumes that the consumed offset inside the current skb is
zero.

With multiple subflows receiving data simultaneously such assertion
does not held true. As a result the subflow-level copied_seq will
be incorrectly increased and later on the same subflow will observe
a bad mapping, leading to subflow reset.

Address the issue taking into account the skb consumed offset in
mptcp_subflow_discard_data().

Fixes: 04e4cd4f7c ("mptcp: cleanup mptcp_subflow_discard_data()")
Cc: stable@vger.kernel.org
Link: https://github.com/multipath-tcp/mptcp_net-next/issues/501
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2024-08-01 12:30:13 +02:00
..
bpf.c bpf: Add update_socket_protocol hook 2023-08-16 10:22:16 -07:00
crypto_test.c mptcp: fill in missing MODULE_DESCRIPTION() 2023-12-17 20:54:22 +00:00
crypto.c
ctrl.c sysctl: treewide: constify the ctl_table argument of proc_handlers 2024-07-24 20:59:29 +02:00
diag.c mptcp: drop duplicate header inclusions 2024-03-06 20:24:10 -08:00
fastopen.c mptcp: corner case locking for rx path fields initialization 2024-02-12 10:08:13 +00:00
Kconfig
Makefile net: mptcp: use policy generated by YAML spec 2023-10-24 13:00:32 -07:00
mib.c mptcp: mib: count MPJ with backup flag 2024-07-30 10:27:30 +02:00
mib.h mptcp: mib: count MPJ with backup flag 2024-07-30 10:27:30 +02:00
mptcp_diag.c mptcp: drop duplicate header inclusions 2024-03-06 20:24:10 -08:00
mptcp_pm_gen.c mptcp: add token for get-addr in yaml 2024-03-04 13:07:45 +00:00
mptcp_pm_gen.h mptcp: add token for get-addr in yaml 2024-03-04 13:07:45 +00:00
options.c mptcp: distinguish rcv vs sent backup flag in requests 2024-07-30 10:27:29 +02:00
pm_netlink.c mptcp: pm: fix backup support in signal endpoints 2024-07-30 10:27:30 +02:00
pm_userspace.c mptcp: pm: fix backup support in signal endpoints 2024-07-30 10:27:30 +02:00
pm.c mptcp: pm: fix backup support in signal endpoints 2024-07-30 10:27:30 +02:00
protocol.c mptcp: fix bad RCVPRUNED mib accounting 2024-08-01 12:30:13 +02:00
protocol.h mptcp: pm: fix backup support in signal endpoints 2024-07-30 10:27:30 +02:00
sched.c mptcp: add net.mptcp.available_schedulers 2024-05-13 18:29:23 -07:00
sockopt.c mptcp: add mptcp_space_from_win helper 2024-06-06 15:13:47 +02:00
subflow.c mptcp: fix duplicate data handling 2024-08-01 12:30:13 +02:00
syncookies.c
token_test.c mptcp: token kunit: set protocol 2024-02-26 18:42:12 -08:00
token.c mptcp: add statistics for mptcp socket in use 2023-01-09 07:30:50 +00:00