From nobody Fri Jul 26 11:05:04 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WVlJw37H2z5Rw5m for ; Fri, 26 Jul 2024 11:05:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WVlJw27Gfz4XkW for ; Fri, 26 Jul 2024 11:05:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721991904; a=rsa-sha256; cv=none; b=MciUYU2xL9pQqrqJTmAkAy7wIWNqso3WE4ted1fFJv0wy/SV+gjwU9wDamjgZY00cpX2oo zQ1kgc9Ax/D0Gio55peBN1FgDWXdFbXKAQAdpVNmp26S9+7KurwBxo9a1RtBy3gMkQDeR4 cokt/Db3v1SuuIJTJ5uT4MV4TCdtCTQdCC8i9UI1uC0cEBca9ZvzYv2QfCh0YtJXSyRylv ce85jTqECkLi+o0HQvq/CNvLnJ15rx3GNZ2QzILdaYU68eO3jvsxLhL4uZ6Yh5RVppR2Ob hezUcyZinASSGY9CVVHsomV4d7k9YLCeYVT2hF8dmg/nRgka+j10R8Q5Yy90hg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721991904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aR4x+R2u8zACUj5NL+r3jdOYBdf6EHOq+6+3DXTOK2M=; b=iLL61Kg4zr1VVLXGh/ibVcy/DBfdSFFhD45ufnLVOWAJMPmyjoW5wbLyDtoA2tqI31CE3V snuYgTWgjngcCwV8dIyr7kCL9dobg2s5g9Jbusli8Ko+qhkxVFl6M3+kMEtT5LcfDu65Pc FUpq1Z+AeuH/kOzXA7MdfYw5XaB5ML5yDOYja+wAke0i1OMysXyZ/y9lcRTMey/6G3foks VoqgmqKTCrcd+7A2KE5iB8KN3/uhEAFhJef5nqNfHymCir+dMJWAohbNnldCK9kwpiIF1Q DSCnQrOVEIv1RcAslyzJj/ZOT8qkcLJqoK3uzZXSVDw7qoSa28PUERBbDG0+aQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WVlJw1dVNzL0C for ; Fri, 26 Jul 2024 11:05:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46QB54fv077682 for ; Fri, 26 Jul 2024 11:05:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46QB54Zo077681 for bugs@FreeBSD.org; Fri, 26 Jul 2024 11:05:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 279618] getnameinfo - IPv6 problem Date: Fri, 26 Jul 2024 11:05:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: ipv6 X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279618 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dc179937b986ec3959d89bfeb8eed0a6f5= 8a28649 commit c179937b986ec3959d89bfeb8eed0a6f58a28649 Author: Bjoern A. Zeeb AuthorDate: 2024-06-10 11:34:25 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-07-26 11:03:56 +0000 libc/getnameinfo: stop adding NI_NUMERICHOST where inappropriate Checking the first nibble of the IPv6 address to be 0 and then excluding two well known cases (v4-mapped, loopback) leaves us with more cases where the first nibble could be 0, e.g., the RFC 6052, 2.1 Well-Known Prefix 64:ff9b::/96. It is not practical to track them all and it is not clear what lead to this special casing originally, so remove them. While here also remove the IN6_IS_ADDR_LINKLOCAL() + NI_NUMERICHOST case as link-local address resolution does exist. We do leave the IN6_IS_ADDR_MULTICAST() case for now as I could not find any references to any official reverse lookups for these. Adding comments for more case (and some historic behaviour) in order to make it easier to follow the logic. PR: 279618 Fixes: 6cb9418289f90 MFC after: 6 weeks Reviewed by: hrs Differential Revision: https://reviews.freebsd.org/D45547 lib/libc/net/getnameinfo.c | 54 +++++++++++++++++++++++++++++++-----------= ---- 1 file changed, 37 insertions(+), 17 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=