* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
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 ` fweimer at redhat dot com
2022-09-23 17:55 ` siddhesh at sourceware dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: fweimer at redhat dot com @ 2022-09-23 12:19 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fweimer at redhat dot com,
| |siddhesh at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
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
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: siddhesh at sourceware dot org @ 2022-09-23 17:55 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Siddhesh Poyarekar <siddhesh at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-09-23
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #1 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
Thanks for catching that, it was indeed a typo and the fix looks correct. I'll
post it on list (with you as author) and get it into the main branch. Can you
please confirm that you're the author of that patch and own copyright to it?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
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
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: joerg at bec dot de @ 2022-09-23 20:22 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #2 from Jörg Sonnenberger <joerg at bec dot de> ---
I'm the author and copyright holder of that patch. Thanks!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (2 preceding siblings ...)
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
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: holger@applied-asynchrony.com @ 2022-09-25 11:05 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Holger Hoffstätte <holger@applied-asynchrony.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |holger@applied-asynchrony.c
| |om
--- Comment #3 from Holger Hoffstätte <holger@applied-asynchrony.com> ---
I'm not sure this fix is correct - or maybe it is and the real problem is
somehwere else. I've been trying to figure out #29607 and with both this patch
and the NULL check to strlen I still see messages like:
ping: unknown protocol family: 227
or
mtr: Packet type unsupported: Invalid argument
when trying to resolve multi-homed addresses.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (3 preceding siblings ...)
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
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: siddhesh at sourceware dot org @ 2022-09-26 13:35 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Siddhesh Poyarekar <siddhesh at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at sourceware dot org |siddhesh at sourceware dot org
Status|NEW |ASSIGNED
--- Comment #4 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
Let me see if there are any other gotchas that I missed during the
consolidation.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (4 preceding siblings ...)
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
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: siddhesh at sourceware dot org @ 2022-09-26 17:57 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #5 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
Holger, do you have a vm where I can login and debug this? I'm unable to
reproduce this locally on Fedora with a built nscd.
Alternatively, please provide detailed steps for setup and reproduction so that
I may try and replicate what you're doing.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (5 preceding siblings ...)
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
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sam at gentoo dot org @ 2022-09-26 18:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Sam James <sam at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=29607
CC| |sam at gentoo dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (6 preceding siblings ...)
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
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: holger@applied-asynchrony.com @ 2022-09-26 18:13 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #6 from Holger Hoffstätte <holger@applied-asynchrony.com> ---
(In reply to Siddhesh Poyarekar from comment #5)
> Holger, do you have a vm where I can login and debug this? I'm unable to
> reproduce this locally on Fedora with a built nscd.
No, I cannot provide a VM unfortunately. I was afraid this would happen as
Gentoo's glibc has assorted patches post-release (see #29607 for a link) and I
don't know why/how they were chosen; I'm just a (contributing) user. It might
well be a screwup with those patches.
> Alternatively, please provide detailed steps for setup and reproduction so
> that I may try and replicate what you're doing.
I'm afraid other than trying with glibc master and enabling the hosts cache
(setting "enable-cache hosts yes" in nscd.conf there is really not anything
else I can suggest. I will report this back to the Gentoo glibc maintainers.
Best ignore me - thanks for trying!
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (7 preceding siblings ...)
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
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: sam at gentoo dot org @ 2022-09-26 18:15 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #7 from Sam James <sam at gentoo dot org> ---
(In reply to Holger Hoffstätte from comment #6)
> (In reply to Siddhesh Poyarekar from comment #5)
> > Holger, do you have a vm where I can login and debug this? I'm unable to
> > reproduce this locally on Fedora with a built nscd.
>
> No, I cannot provide a VM unfortunately. I was afraid this would happen as
> Gentoo's glibc has assorted patches post-release (see #29607 for a link) and
> I don't know why/how they were chosen; I'm just a (contributing) user. It
> might well be a screwup with those patches.
>
We don't really apply anything notable in Gentoo. You can try USE=vanilla if in
doubt.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (8 preceding siblings ...)
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
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: holger@applied-asynchrony.com @ 2022-09-26 19:18 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #8 from Holger Hoffstätte <holger@applied-asynchrony.com> ---
So my crashes/garbage data in packets indeed turned out to be caused by
post-2.36 release patches from the backport branch, presumably the resolver
rewrite. Building a completely vanilla 2.36 made everything work again, and
nscd runs just fine with enabled host cache.
Cheers :)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (9 preceding siblings ...)
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
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: siddhesh at sourceware dot org @ 2022-09-26 19:21 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #9 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
(In reply to Holger Hoffstätte from comment #8)
> So my crashes/garbage data in packets indeed turned out to be caused by
> post-2.36 release patches from the backport branch, presumably the resolver
> rewrite. Building a completely vanilla 2.36 made everything work again, and
> nscd runs just fine with enabled host cache.
> Cheers :)
Thanks for confirming. I'll close this one when I push Jörg's patch. Perhaps
you want to close out bug 29607 then.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (10 preceding siblings ...)
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
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-28 16:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #10 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Siddhesh Poyarekar
<siddhesh@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c9226c03da0276593a0918eaa9a14835183343e8
commit c9226c03da0276593a0918eaa9a14835183343e8
Author: Jörg Sonnenberger <joerg@bec.de>
Date: Mon Sep 26 13:59:16 2022 -0400
get_nscd_addresses: Fix subscript typos [BZ #29605]
Fix the subscript on air->family, which was accidentally set to COUNT
when it should have remained as I.
Resolves: BZ #29605
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (11 preceding siblings ...)
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
14 siblings, 0 replies; 16+ messages in thread
From: siddhesh at sourceware dot org @ 2022-09-28 16:48 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Siddhesh Poyarekar <siddhesh at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
Target Milestone|--- |2.37
--- Comment #11 from Siddhesh Poyarekar <siddhesh at sourceware dot org> ---
Fixed on mainline.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (12 preceding siblings ...)
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
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-28 16:49 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
--- Comment #12 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.36/master branch has been updated by Siddhesh Poyarekar
<siddhesh@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=227c9035872fc9e9e2cf56ec8f89219747ee19bc
commit 227c9035872fc9e9e2cf56ec8f89219747ee19bc
Author: Jörg Sonnenberger <joerg@bec.de>
Date: Mon Sep 26 13:59:16 2022 -0400
get_nscd_addresses: Fix subscript typos [BZ #29605]
Fix the subscript on air->family, which was accidentally set to COUNT
when it should have remained as I.
Resolves: BZ #29605
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit c9226c03da0276593a0918eaa9a14835183343e8)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug nscd/29605] Regression in NSCD backend of getaddrinfo
2022-09-23 11:19 [Bug nscd/29605] New: Regression in NSCD backend of getaddrinfo joerg at bec dot de
` (13 preceding siblings ...)
2022-09-28 16:49 ` cvs-commit at gcc dot gnu.org
@ 2024-01-08 11:11 ` camila.camargodematos at canonical dot com
14 siblings, 0 replies; 16+ messages in thread
From: camila.camargodematos at canonical dot com @ 2024-01-08 11:11 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=29605
Camila Camargo de Matos <camila.camargodematos at canonical dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |camila.camargodematos@canon
| |ical.com
--- Comment #13 from Camila Camargo de Matos <camila.camargodematos at canonical dot com> ---
Hello,
When recently trying to patch CVE-2023-4806 in glibc for Ubuntu 22.04 LTS, the
Ubuntu Security Team came across a possible regression in version 2.35 that
seems to be related to this bug.
This is the link to the bug report containing more information on the issue
that users came across in Ubuntu 22.04 LTS:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2047155
When patching Ubuntu 22.04's version of glibc (2.35) for CVE-2023-4806 (and
CVEs CVE-2023-4813 and CVE-2023-5156), several of the refactoring commits in
branch release/2.35/master were added as well in order to avoid any possible
issues and simplify the application of the CVE patch (these refactoring commits
are the ones added to sysdeps/posix/getaddrinfo.c in 2023-09). In this group of
commits was commit ce64e72b, which is cherry-picked from e7e5315b, mentioned
here as the cause of the issue in nscd, consequence of a typo in the
refactoring.
Analysis of the release/2.35/master branch seems to indicate that the fix to
this typo was not applied to glibc 2.35, and the report in the Ubuntu Launchpad
bug shows version 2.35 of glibc (more specifically, nscd) being affected by a
regression when previously mentioned refactoring commits are added.
A new version of the Ubuntu 22.04 glibc package will be released and this new
version contains the fix provided in this sourceware bug (commit 227c9035) as
well as three other refactoring commits (backported from the
release/2.36/master branch as well. These are: bc0d18d8, 06890c7b and
d3f2c2c8). Adding these additional changes to the 22.04 glibc 2.35 package seem
to have resolved the issue being reported in the Ubuntu Launchpad bug.
I mention this here in case 2.35 is still being supported, so that the fix to
this issue can be included in that branch as well.
Regards,
Camila Camargo de Matos.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 16+ messages in thread