Skip to content

mptcp: check the protocol with DEBUG_NET

Matthieu Baerts (NGI0) mptcp 4 versions – In review

Get series with b4
b4 am [email protected] change-id 20240131-mptcp-check-protocol-e32e53d04a75

Versions newest first

  1. v4 Latest3 patches 6 repliesIn review
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Patch 2 and 3 have been modified, please the changelog on each patch
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mptcp: token kunit: set protocolnet/mptcp/token_test.c+6 -10 replies
2/3mptcp: check the protocol in tcp_sk() with DEBUG_NETnet/mptcp/protocol.h+10 -00 replies
3/3mptcp: check the protocol in mptcp_sk() with DEBUG_NETnet/mptcp/protocol.h+7 -14 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMat Martineau
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH mptcp-next v4 0/3] mptcp: check the protocol with DEBUG_NET

Recently, Paolo fixed a bug where a TCP-specific helper was used with an MPTCP socket [1]. The bug was not detected by fuzzer or static analysis.

Following this, it has been suggested to add a check, only in debug mode. This is what this series is doing.

The series has been split to be upstreamed: a preparation patch for MPTCP, the modification for TCP, then for MPTCP. It is not clear if it would be OK to add that upstream. If not, we can squash these three patches in "DO-NOT-MERGE: mptcp: improve code coverage for CI" commit we have in our export tree.

Note that the MPTCP Token kUnit test needs to be adapted for this new check. This is what is done in patch 1/3.

---
Changes in v4:
- Patch 2 and 3 have been modified, please the changelog on each patch
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Patch 2 and 3 have been modified, please the changelog on each patch
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Patch 2 and 3 have been modified, please the changelog on each patch
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Matthieu Baerts (NGI0) (3):
mptcp: token kunit: set protocol
mptcp: check the protocol in tcp_sk() with DEBUG_NET
mptcp: check the protocol in mptcp_sk() with DEBUG_NET

 net/mptcp/protocol.h   | 16 ++++++++++++++++
 net/mptcp/token_test.c |  7 ++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)

---
base-commit: 52e05de42e1094a943053af93ea08c51a44091f7
change-id: 20240131-mptcp-check-protocol-e32e53d04a75

Best regards,

Signature · 1 line
Matthieu Baerts (NGI0) <[email protected]>