Skip to content

net: Disallow buggy TCP transitions and IPV6_ADDRFORM.

Kuniyuki Iwashima netdev stable 1 version Applied

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2tcp: Do not allow buggy transitions between ehash and lhash2.include/net/inet_connection_sock.h net/ipv4/inet_connection_sock.c net/ipv4/inet_hashtables.c+13 -03 repliesApplied
2/2ipv6: Remove IPV6_ADDRFORM.include/linux/net.h net/core/sock.c net/ipv4/af_inet.c +2 more+2 -982 repliesApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPaolo AbeniJakub Sitnicki
1/2R-b
2/2A-b

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

Read the v1 thread

Cover letter [PATCH v1 net-next 0/2] net: Disallow buggy TCP transitions and IPV6_ADDRFORM.

The following operations have recently received a lot of AI-driven bug reports:

* listen() + shutdown() + connect()
* connect() + connect(AF_UNSPEC) + listen()

* setsockopt(IPV6_ADDRFORM)

They are not worth fixing by churning the fast path, so this series disallows the transitions and removes IPV6_ADDRFORM.

https://lore.kernel.org/netdev/CANn89i+px52TtJy3S9=uHxGj3s-WueguRo1Z_4FxO=02KLmwmQ@mail.gmail.com/
https://lore.kernel.org/netdev/[email protected]/

I did not add Fixes tags, but if we want to backport, the tag would be:

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")

Kuniyuki Iwashima (2):
tcp: Do not allow buggy transitions between ehash and lhash2.
ipv6: Remove IPV6_ADDRFORM.

 include/linux/net.h                |  2 +-
 include/net/inet_connection_sock.h |  1 +
 net/core/sock.c                    |  4 +-
 net/ipv4/af_inet.c                 |  3 --
 net/ipv4/inet_connection_sock.c    |  1 +
 net/ipv4/inet_hashtables.c         | 11 ++++
 net/ipv6/af_inet6.c                |  4 --
 net/ipv6/ipv6_sockglue.c           | 87 ------------------------------
 8 files changed, 15 insertions(+), 98 deletions(-)
Signature · 1 line
2.55.0.1003.g10538fe699-goog