From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AAA0A3858C52; Fri, 23 Sep 2022 11:19:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AAA0A3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663931998; bh=AF4ue9AfVuLUmOVy/7oofZodD8PPQ4kbcsG4Zz/ls/4=; h=From:To:Subject:Date:From; b=RBes/PtgKZDU0BIa+YLIFuSLVhotCEBNUvMK8dUhGeLP2ZvGwQHEZOg851JzB5uRm WFP+Z7r2LTHjEt+bkxV6eq+7QCt2AsmOmgC6JS5MPo7NDmN0kup10LgMuyRM+nGEga An+MnxxpOSVIxCZXvXIjFuw+VqIi171Nzj6lKs60= From: "joerg at bec dot de" To: glibc-bugs@sourceware.org Subject: [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo Date: Fri, 23 Sep 2022 11:19:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nscd X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: joerg at bec dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29605 Bug ID: 29605 Summary: Regression in NSCD backend of getaddrinfo Product: glibc Version: 2.36 Status: UNCONFIRMED Severity: critical Priority: P2 Component: nscd Assignee: unassigned at sourceware dot org Reporter: joerg at bec dot de CC: drepper.fsp at gmail dot com Target Milestone: --- Created attachment 14354 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14354&action=3Ded= it Restore correct index. When using getaddrinfo with running nscd and address family hints, corrupted entries may be returned. In my case, "ssh -6 dual-stack-host" will normally= see the A record first and the AAAAA record second. The returned entry from gai contains an address family of 0, which is nonsense. Debugging points to getaddrinfo.c line 543 (refactored in e7e5315b7fa065a9c8bf525ca9a32f46fa4837e5). That use of count is highly suspicious and doesn't make sense to me. The attached patch shows what I me= an, but I can't test it easily. --=20 You are receiving this mail because: You are on the CC list for the bug.=