kernel_samsung_a53x/net/mptcp
Paolo Abeni 3f4af240b0 mptcp: handle consistently DSS corruption
commit e32d262c89e2b22cb0640223f953b548617ed8a6 upstream.

Bugged peer implementation can send corrupted DSS options, consistently
hitting a few warning in the data path. Use DEBUG_NET assertions, to
avoid the splat on some builds and handle consistently the error, dumping
related MIBs and performing fallback and/or reset according to the
subflow type.

Fixes: 6771bfd9ee24 ("mptcp: update mptcp ack sequence from work queue")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20241008-net-mptcp-fallback-fixes-v1-1-c6fb8e93e551@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
[ Conflicts in mib.[ch], because commit 104125b82e5c ("mptcp: add mib
  for infinite map sending") is linked to a new feature, not available
  in this version. Resolving the conflicts is easy, simply adding the
  new lines declaring the new "DSS corruptions" MIB entries.
  Also removed in protocol.c and subflow.c all DEBUG_NET_WARN_ON_ONCE
  because they are not defined in this version: enough with the MIB
  counters that have been added in this commit. ]
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:57 +01:00
..
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ctrl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag.c mptcp: correct MPTCP_SUBFLOW_ATTR_SSN_OFFSET reserved size 2024-11-23 23:20:43 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mib.c mptcp: handle consistently DSS corruption 2024-11-23 23:21:57 +01:00
mib.h mptcp: handle consistently DSS corruption 2024-11-23 23:21:57 +01:00
mptcp_diag.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
options.c mptcp: validate 'id' when stopping the ADD_ADDR retransmit timer 2024-11-23 23:21:16 +01:00
pm.c mptcp: pr_debug: add missing \n at the end 2024-11-23 23:21:01 +01:00
pm_netlink.c mptcp: pm: Fix uaf in __timer_delete_sync 2024-11-23 23:21:16 +01:00
protocol.c mptcp: handle consistently DSS corruption 2024-11-23 23:21:57 +01:00
protocol.h mptcp: track and update contiguous data status 2024-11-23 23:21:57 +01:00
subflow.c mptcp: handle consistently DSS corruption 2024-11-23 23:21:57 +01:00
syncookies.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
token.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
token_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00