Linux Kernel Selftest development
 help / color / mirror / Atom feed
* [PATCH net 0/9] mptcp: fixes for v6.5
@ 2023-07-04 20:44 Matthieu Baerts
  2023-07-04 20:44 ` [PATCH net 1/9] mptcp: ensure subflow is unhashed before cleaning the backlog Matthieu Baerts
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Matthieu Baerts @ 2023-07-04 20:44 UTC (permalink / raw)
  To: mptcp, Mat Martineau, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Shuah Khan, Florian Westphal,
	Kishen Maloor
  Cc: netdev, linux-kernel, linux-kselftest, Matthieu Baerts, stable,
	Christoph Paasch

Here is a first batch of fixes for v6.5 and older.

The fixes are not linked to each others.

Patch 1 ensures subflows are unhashed before cleaning the backlog to
avoid races. This fixes another recent fix from v6.4.

Patch 2 does not rely on implicit state check in mptcp_listen() to avoid
races when receiving an MP_FASTCLOSE. A regression from v5.17.

The rest fixes issues in the selftests.

Patch 3 makes sure errors when setting up the environment are no longer
ignored. For v5.17+.

Patch 4 uses 'iptables-legacy' if available to be able to run on older
kernels. A fix for v5.13 and newer.

Patch 5 catches errors when issues are detected with packet marks. Also
for v5.13+.

Patch 6 uses the correct variable instead of an undefined one. Even if
there was no visible impact, it can help to find regressions later. An
issue visible in v5.19+.

Patch 7 makes sure errors with some sub-tests are reported to have the
selftest marked as failed as expected. Also for v5.19+.

Patch 8 adds a kernel config that is required to execute MPTCP
selftests. It is valid for v5.9+.

Patch 9 fixes issues when validating the userspace path-manager with
32-bit arch, an issue affecting v5.19+.

Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
---
Matthieu Baerts (7):
      selftests: mptcp: connect: fail if nft supposed to work
      selftests: mptcp: sockopt: use 'iptables-legacy' if available
      selftests: mptcp: sockopt: return error if wrong mark
      selftests: mptcp: userspace_pm: use correct server port
      selftests: mptcp: userspace_pm: report errors with 'remove' tests
      selftests: mptcp: depend on SYN_COOKIES
      selftests: mptcp: pm_nl_ctl: fix 32-bit support

Paolo Abeni (2):
      mptcp: ensure subflow is unhashed before cleaning the backlog
      mptcp: do not rely on implicit state check in mptcp_listen()

 net/mptcp/protocol.c                               |  7 +++++-
 tools/testing/selftests/net/mptcp/config           |  1 +
 tools/testing/selftests/net/mptcp/mptcp_connect.sh |  3 +++
 tools/testing/selftests/net/mptcp/mptcp_sockopt.sh | 29 ++++++++++++----------
 tools/testing/selftests/net/mptcp/pm_nl_ctl.c      | 10 ++++----
 tools/testing/selftests/net/mptcp/userspace_pm.sh  |  4 ++-
 6 files changed, 34 insertions(+), 20 deletions(-)
---
base-commit: 14bb236b29922c4f57d8c05bfdbcb82677f917c9
change-id: 20230704-upstream-net-20230704-misc-fixes-6-5-rc1-c52608649559

Best regards,
-- 
Matthieu Baerts <matthieu.baerts@tessares.net>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-07-05 10:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-04 20:44 [PATCH net 0/9] mptcp: fixes for v6.5 Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 1/9] mptcp: ensure subflow is unhashed before cleaning the backlog Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 2/9] mptcp: do not rely on implicit state check in mptcp_listen() Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 3/9] selftests: mptcp: connect: fail if nft supposed to work Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 4/9] selftests: mptcp: sockopt: use 'iptables-legacy' if available Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 5/9] selftests: mptcp: sockopt: return error if wrong mark Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 6/9] selftests: mptcp: userspace_pm: use correct server port Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 7/9] selftests: mptcp: userspace_pm: report errors with 'remove' tests Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 8/9] selftests: mptcp: depend on SYN_COOKIES Matthieu Baerts
2023-07-04 20:44 ` [PATCH net 9/9] selftests: mptcp: pm_nl_ctl: fix 32-bit support Matthieu Baerts
2023-07-05 10:00 ` [PATCH net 0/9] mptcp: fixes for v6.5 patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox