Re: git: 627e126dbb07 - main - netinet6: Disallow connections to IN6ADDR_ANY
- In reply to: Gleb Smirnoff : "Re: git: 627e126dbb07 - main - netinet6: Disallow connections to IN6ADDR_ANY"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Jan 2026 21:33:39 UTC
On Fri, Jan 30, 2026 at 01:18:15PM -0800, Gleb Smirnoff wrote: T> On Thu, Jan 29, 2026 at 02:09:08PM +0000, Ed Maste wrote: T> E> The branch main has been updated by emaste: T> E> T> E> URL: https://cgit.FreeBSD.org/src/commit/?id=627e126dbb07b167b028380ef61bb45f10493938 T> E> T> E> commit 627e126dbb07b167b028380ef61bb45f10493938 T> E> Author: Ed Maste <emaste@FreeBSD.org> T> E> AuthorDate: 2025-12-19 14:15:35 +0000 T> E> Commit: Ed Maste <emaste@FreeBSD.org> T> E> CommitDate: 2026-01-29 14:08:45 +0000 T> E> T> E> netinet6: Disallow connections to IN6ADDR_ANY T> E> T> E> Previously connect() or sendto() to INADDR_ANY or IN6ADDR_ANY reached T> E> some socket bound to some host interface address. Although this was T> E> intentional it was an artifact of a different era, and is not desirable T> E> now. T> E> T> E> In 417b35a97b76 markj added support to disallow connect() to INADDR_ANY T> E> and IN6ADDR_ANY. Connections to INADDR_ANY were disabled by default in T> E> cd240957d7ba. Follow suit with IN6ADDR_ANY. T> E> T> E> Reviewed by: glebius, markj, zlei T> E> Sponsored by: The FreeBSD Foundation T> E> Differential Revision: https://reviews.freebsd.org/D54306 T> T> Now the test socket_afinet:socket_afinet_bind_connected_port needs either be T> adjusted or disabled. T> T> # kyua debug -k /usr/tests/sys/netinet/Kyuafile socket_afinet:socket_afinet_bind_connected_port T> socket_afinet:socket_afinet_bind_connected_port -> failed: /usr/src/FreeBSD/tests/sys/netinet/socket_afinet.c:556: connect failed: Network is unreachable I pushed a fix. -- Gleb Smirnoff