[PATCH mptcp-net v2 0/2] mptcp: prevent MPC handshake on port-based signal endpoints

Matthieu Baerts (NGI0) posted 2 patches 2 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/multipath-tcp/mptcp_net-next tags/patchew/20241007-mpc-hs-port-v2-0-0c9e7827bd0f@kernel.org
There is a newer version of this series
net/mptcp/mib.c                                 |   1 +
net/mptcp/mib.h                                 |   1 +
net/mptcp/pm_netlink.c                          |   1 +
net/mptcp/protocol.h                            |   1 +
net/mptcp/subflow.c                             |  11 +++
tools/testing/selftests/net/mptcp/mptcp_join.sh | 110 +++++++++++++++++++-----
6 files changed, 102 insertions(+), 23 deletions(-)
[PATCH mptcp-net v2 0/2] mptcp: prevent MPC handshake on port-based signal endpoints
Posted by Matthieu Baerts (NGI0) 2 months, 2 weeks ago
This is a v2 for the series sent by Paolo, related to the lockdep splat
Syzbot reported a few weeks ago, and for which Cong Wang sent a
different attempt (Thanks both!).

In this v2, I applied the suggestions I sent on the ML:

- patch 1:
  - moving and renaming the MIB counters
  - move comments/functions on one line when possbile
  - rename subflow_reset_req -> _endp
  - use MPTCP_RST_EPROHIBIT reason

- patch 2:
  - fix shellcheck issues
  - capture: handle $capout
  - fix indentation issue
  - helper for the port
  - stop the capture after transfer like before
  - move new test to 'add addr ports' ones
  - move the validation part to a new helper
  - add missing 'check' names (subtitles)
  - skip if no counters

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Paolo Abeni (2):
      mptcp: prevent MPC handshake on port-based signal endpoints
      selftests: mptcp: join: add test-case for MPC attempt towards signl ep

 net/mptcp/mib.c                                 |   1 +
 net/mptcp/mib.h                                 |   1 +
 net/mptcp/pm_netlink.c                          |   1 +
 net/mptcp/protocol.h                            |   1 +
 net/mptcp/subflow.c                             |  11 +++
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 110 +++++++++++++++++++-----
 6 files changed, 102 insertions(+), 23 deletions(-)
---
base-commit: 2ce52e0f26d35f97f56615bb7854afa633f5d231
change-id: 20241007-mpc-hs-port-13a6c6c11b38

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>
Re: [PATCH mptcp-net v2 0/2] mptcp: prevent MPC handshake on port-based signal endpoints
Posted by MPTCP CI 2 months, 2 weeks ago
Hi Paolo,

Thank you for your modifications, that's great!

Our CI did some validations and here is its report:

- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/11221914489

Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/8f0ae8ed9298
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=896357


If there are some issues, you can reproduce them using the same environment as
the one used by the CI thanks to a docker image, e.g.:

    $ cd [kernel source code]
    $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
        --pull always mptcp/mptcp-upstream-virtme-docker:latest \
        auto-normal

For more details:

    https://github.com/multipath-tcp/mptcp-upstream-virtme-docker


Please note that despite all the efforts that have been already done to have a
stable tests suite when executed on a public CI like here, it is possible some
reported issues are not due to your modifications. Still, do not hesitate to
help us improve that ;-)

Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)