Skip to content

tcp: Fix bind() regression and more tests.

Kuniyuki Iwashima netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesApplied 8/8
  2. v18 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Patch 1: Fix build error when IPV6=n

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8tcp: Fix bind() regression for v6-only wildcard and v4-mapped-v6 non-wildcard addresses.net/ipv4/inet_connection_sock.c+9 -20 repliesApplied
2/8tcp: Fix bind() regression for v6-only wildcard and v4(-mapped-v6) non-wildcard addresses.net/ipv4/inet_connection_sock.c+11 -80 repliesApplied
3/8selftest: tcp: Make bind() selftest flexible.tools/testing/selftests/net/bind_wildcard.c+58 -340 repliesApplied
4/8selftest: tcp: Define the reverse order bind() tests explicitly.tools/testing/selftests/net/bind_wildcard.c+59 -80 repliesApplied
5/8selftest: tcp: Add v4-v4 and v6-v6 bind() conflict tests.tools/testing/selftests/net/bind_wildcard.c+100 -00 repliesApplied
6/8selftest: tcp: Add more bind() calls.tools/testing/selftests/net/bind_wildcard.c+166 -590 repliesApplied
7/8selftest: tcp: Add bind() tests for IPV6_V6ONLY.tools/testing/selftests/net/bind_wildcard.c+116 -00 repliesApplied
8/8selftest: tcp: Add bind() tests for SO_REUSEADDR/SO_REUSEPORT.tools/testing/selftests/net/bind_wildcard.c+257 -60 repliesApplied

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by.

PatchJianguo Wu
1/8
2/8Diagnosed-by
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v2 thread

Cover letter [PATCH v2 net 0/8] tcp: Fix bind() regression and more tests.

bhash2 has not been well tested for IPV6_V6ONLY option.

This series fixes two regression around IPV6_V6ONLY, one of which has been there since bhash2 introduction, and another is introduced by a recent change.

Also, this series adds as many tests as possible to catch regression easily. The baseline is 28044fc1d495~ which is pre-bhash2 commit.

Tested on 28044fc1d495~:
# PASSED: 132 / 132 tests passed.
# Totals: pass:132 fail:0 xfail:0 xpass:0 skip:0 error:0

net.git:
# FAILED: 125 / 132 tests passed.
# Totals: pass:125 fail:7 xfail:0 xpass:0 skip:0 error:0

With this series:
# PASSED: 132 / 132 tests passed.
# Totals: pass:132 fail:0 xfail:0 xpass:0 skip:0 error:0

Changes:
v2:
* Patch 1: Fix build error when IPV6=n

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (8):
tcp: Fix bind() regression for v6-only wildcard and v4-mapped-v6
non-wildcard addresses.
tcp: Fix bind() regression for v6-only wildcard and v4(-mapped-v6)
non-wildcard addresses.
selftest: tcp: Make bind() selftest flexible.
selftest: tcp: Define the reverse order bind() tests explicitly.
selftest: tcp: Add v4-v4 and v6-v6 bind() conflict tests.
selftest: tcp: Add more bind() calls.
selftest: tcp: Add bind() tests for IPV6_V6ONLY.
selftest: tcp: Add bind() tests for SO_REUSEADDR/SO_REUSEPORT.

 net/ipv4/inet_connection_sock.c             |  30 +-
 tools/testing/selftests/net/bind_wildcard.c | 783 ++++++++++++++++++--
 2 files changed, 736 insertions(+), 77 deletions(-)
Signature · 1 line
2.30.2