[PATCH v1 net-next 0/2] net: Disallow buggy TCP transitions and IPV6_ADDRFORM.
From: Kuniyuki Iwashima <kuniyu@google.com>
Date: 2026-09-04 03:36:03
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/ (local) https://lore.kernel.org/netdev/5832ba17-c096-4f07-aa73-2e2bb6f79856@redhat.com/ (local) 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(-) -- 2.55.0.1003.g10538fe699-goog