Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1416496 - getaddrinfo() call returns wrong IPv6 address if nscd is used
getaddrinfo() call returns wrong IPv6 address if nscd is used
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: glibc (Show other bugs)
6.9
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Florian Weimer
Sergey Kolosov
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-25 10:54 EST by Sergey Kolosov
Modified: 2017-03-21 06:38 EDT (History)
8 users (show)

See Also:
Fixed In Version: glibc-2.12-1.209.el6
Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-03-21 06:38:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
getaddrinfo.c test program originally from bug 970090 (1.76 KB, text/plain)
2017-01-25 10:54 EST, Sergey Kolosov
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0680 normal SHIPPED_LIVE Moderate: glibc security and bug fix update 2017-03-21 08:36:34 EDT

  None (edit)
Description Sergey Kolosov 2017-01-25 10:54:57 EST
Created attachment 1244293 [details]
getaddrinfo.c test program originally from bug 970090

Description of problem:
getaddrinfo() call returns wrong IPv6 address if nscd is used

Version-Release number of selected component:
glibc-2.12-1.208.el6

Steps to Reproduce:
1. Install nscd and run it
2. ./getaddrinfo AF_INET6 localhost
[0 root@host ~]# ./getaddrinfo AF_INET6 localhost 
Hints family=10
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
[0 root@host ~]#

Actual results:

host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::
host=7f00:1::, family=10 addr=7f00:1::

Expected results:

host=localhost, family=10 addr=::1
host=localhost, family=10 addr=::1
host=localhost, family=10 addr=::1
Comment 1 Florian Weimer 2017-01-25 11:04:28 EST
Sergey, do you know if this is a regression in glibc-2.12-1.208.el6?  Thanks.
Comment 2 Sergey Kolosov 2017-01-25 11:57:19 EST
(In reply to Florian Weimer from comment #1)
> Sergey, do you know if this is a regression in glibc-2.12-1.208.el6?  Thanks.

It is glibc-2.12-1.208.el6 regression and it is related to patch for bug 1223095.
Upstream fix: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=8dc9751764eb1bedf06d19695524b31a16773413

I have tested the upstream fix on x86_64 host, it works.
Comment 10 errata-xmlrpc 2017-03-21 06:38:24 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2017-0680.html

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