Bug 2224504 - glibc: Fix regression in handling of IPv4 mapped addresses in nss_files
Summary: glibc: Fix regression in handling of IPv4 mapped addresses in nss_files
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: glibc
Version: 9.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florian Weimer
QA Contact: Sergey Kolosov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-21 07:58 UTC by Florian Weimer
Modified: 2023-08-14 15:45 UTC (History)
8 users (show)

Fixed In Version: glibc-2.34-77.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/centos-stream/rpms glibc merge_requests 95 0 None opened Fix regression with IPv4 mapped addresses in /etc/hosts (#2224504) 2023-07-28 14:09:05 UTC
Red Hat Issue Tracker RHELPLAN-162940 0 None None None 2023-07-21 07:59:45 UTC
Sourceware 25457 0 P2 RESOLVED hosts lookup fails for ipv4mapped ipv6 addresses 2023-07-28 14:09:14 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.