public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo
@ 2022-09-23 11:19 joerg at bec dot de
  2022-09-23 12:19 ` [Bug nscd/29605] " fweimer at redhat dot com
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: joerg at bec dot de @ 2022-09-23 11:19 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29605

            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=14354&action=edit
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 mean,
but I can't test it easily.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-01-08 11:11 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
2022-09-23 12:19 ` [Bug nscd/29605] " fweimer at redhat dot com
2022-09-23 17:55 ` siddhesh at sourceware dot org
2022-09-23 20:22 ` joerg at bec dot de
2022-09-25 11:05 ` holger@applied-asynchrony.com
2022-09-26 13:35 ` siddhesh at sourceware dot org
2022-09-26 17:57 ` siddhesh at sourceware dot org
2022-09-26 18:03 ` sam at gentoo dot org
2022-09-26 18:13 ` holger@applied-asynchrony.com
2022-09-26 18:15 ` sam at gentoo dot org
2022-09-26 19:18 ` holger@applied-asynchrony.com
2022-09-26 19:21 ` siddhesh at sourceware dot org
2022-09-28 16:47 ` cvs-commit at gcc dot gnu.org
2022-09-28 16:48 ` siddhesh at sourceware dot org
2022-09-28 16:49 ` cvs-commit at gcc dot gnu.org
2024-01-08 11:11 ` camila.camargodematos at canonical dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).