Merge branch 'net-disallow-buggy-tcp-transitions-and-ipv6_addrform'

Kuniyuki Iwashima says:

====================
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/CANn89i+px52TtJy3S9=uHxGj3s-WueguRo1Z_4FxO=02KLmwmQ@mail.gmail.com
  https://lore.kernel.org/5832ba17-c096-4f07-aa73-2e2bb6f79856@redhat.com

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

  Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
====================

Link: https://patch.msgid.link/20260904033543.2635540-1-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Jakub Kicinski 2026-09-07 17:40:30 -07:00
commit 54ffade714
8 changed files with 15 additions and 98 deletions