public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug nscd/29992] New: nscd repeatably crashes calling __strlen_avx2 when using nss-hostname
@ 2023-01-12 14:39 Diego.SantaCruz at spinetix dot com
  0 siblings, 0 replies; only message in thread
From: Diego.SantaCruz at spinetix dot com @ 2023-01-12 14:39 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 29992
           Summary: nscd repeatably crashes calling __strlen_avx2 when
                    using nss-hostname
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: nscd
          Assignee: unassigned at sourceware dot org
          Reporter: Diego.SantaCruz at spinetix dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

We have a setup where the hosts entry of nss is configured as follows and nscd
is enabled.

hosts:          files myhostname  dns mdns

The myhostname provider is nss-hostname 0.3
(https://0pointer.de/lennart/projects/nss-myhostname/)

When doing "getent ahosts `hostname`" nscd crashes immediately.

We use glibc 2.31 (from Yocto dunfell).

We have tracked this crash to a NULL pointer dereference in aicache.c:174
(function addhstaiX), in the following lines.

          canon = at->name;
          canonlen = strlen (canon) + 1;

We tracked this to bug 29607 which has already been fixed in master and
backported all the way down to 2.34

But 2.31 is also affected by the exact same issue, I backported the fix [1] to
2.31 with a simple git cherry pick and it does indeed solve the problem.

Could this be backported to the 2.31 branch?

[1]
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6e33e5c4b73cea7b8aa3de0947123db16200fb65

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-12 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 14:39 [Bug nscd/29992] New: nscd repeatably crashes calling __strlen_avx2 when using nss-hostname Diego.SantaCruz at spinetix 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).