Skip to content

tcp: Fix bind() regression for v4-mapped-v6 address

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 Latest6 patches 7 repliesApplied 6/6
  2. v15 patches 4 repliesSuperseded

Changes in v2 from the cover letter

* Added patch 1 to factorise duplicated comparison (Eric Dumazet)

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6tcp: Factorise sk_family-independent comparison in inet_bind2_bucket_match(_addr_any).net/ipv4/inet_hashtables.c+13 -151 replyApplied
2/6tcp: Fix bind() regression for v4-mapped-v6 wildcard address.include/net/ipv6.h net/ipv4/inet_hashtables.c+7 -11 replyApplied
3/6tcp: Fix bind() regression for v4-mapped-v6 non-wildcard address.net/ipv4/inet_hashtables.c+6 -14 repliesApplied
4/6selftest: tcp: Fix address length in bind_wildcard.c.tools/testing/selftests/net/bind_wildcard.c+1 -10 repliesApplied
5/6selftest: tcp: Move expected_errno into each test case in bind_wildcard.c.tools/testing/selftests/net/bind_wildcard.c+10 -100 repliesApplied
6/6selftest: tcp: Add v4-mapped-v6 cases in bind_wildcard.c.tools/testing/selftests/net/bind_wildcard.c+46 -00 repliesApplied

Reviews trailers per patch

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

PatchMartin KaFai LauEric DumazetAndrei Vagin
SeriesA-b
1/6R-b
2/6R-b
3/6R-b A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 net 0/6] tcp: Fix bind() regression for v4-mapped-v6 address

Since bhash2 was introduced, bind() is broken in two cases related to v4-mapped-v6 address.

This series fixes the regression and adds test to cover the cases.

Changes:
v2:
* Added patch 1 to factorise duplicated comparison (Eric Dumazet)

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

Kuniyuki Iwashima (6):
tcp: Factorise sk_family-independent comparison in

    inet_bind2_bucket_match(_addr_any).

tcp: Fix bind() regression for v4-mapped-v6 wildcard address.
tcp: Fix bind() regression for v4-mapped-v6 non-wildcard address.
selftest: tcp: Fix address length in bind_wildcard.c.
selftest: tcp: Move expected_errno into each test case in
bind_wildcard.c.
selftest: tcp: Add v4-mapped-v6 cases in bind_wildcard.c.

 include/net/ipv6.h                          |  5 ++
 net/ipv4/inet_hashtables.c                  | 36 ++++++-----
 tools/testing/selftests/net/bind_wildcard.c | 68 +++++++++++++++++----
 3 files changed, 82 insertions(+), 27 deletions(-)
Signature · 1 line
2.30.2