Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jan 2026 13:33:39 -0800
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        Ed Maste <emaste@freebsd.org>, bz@freebsd.org
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: 627e126dbb07 - main - netinet6: Disallow connections to IN6ADDR_ANY
Message-ID:  <aX0js1YqZngJWPuy@cell.glebi.us>
In-Reply-To: <aX0gFwNXP5NhwR1P@cell.glebi.us>
References:  <697b6a04.24ab3.604d8615@gitrepo.freebsd.org> <aX0gFwNXP5NhwR1P@cell.glebi.us>

index | next in thread | previous in thread | raw e-mail

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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aX0js1YqZngJWPuy>