Bug 2224504

Summary: glibc: Fix regression in handling of IPv4 mapped addresses in nss_files
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: VERIFIED --- QA Contact: Sergey Kolosov <skolosov>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.3CC: ashankar, codonell, dj, fweimer, mcoufal, pfrankli, sipoyare, skolosov
Target Milestone: rcKeywords: Bugfix, Patch, Regression, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glibc-2.34-77.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2023-07-21 07:58:42 UTC
When getnameinfo is used to lookup IPv4-mapped addresses in /etc/hosts, matching records are not found.

This is a regression relative to Red Hat Enterprise Linux 8.

Comment 1 Carlos O'Donell 2023-07-21 13:18:50 UTC
Upstream patchwork link:
https://patchwork.sourceware.org/project/glibc/patch/mvmjzuwchbq.fsf@suse.de/

Comment 2 Florian Weimer 2023-07-28 13:08:49 UTC
Upstream commit:

commit c437631485a85c3bd034e12f53dd1c8207f05940
Author: Andreas Schwab <schwab>
Date:   Wed Jul 19 09:55:31 2023 +0200

    Restore lookup of IPv4 mapped addresses in files database (bug 25457)
    
    This was broken by commit 9c02d0784d ("nss_files: Remove RES_USE_INET6
    from hosts processing"), which removed too much.