Bug 1452034
| Summary: | when the /etc/hosts file has a line longer than 1028 characters getent ahostsv4 and ahostsv6 will stop working. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Raul Mahiques <rmahique> |
| Component: | glibc | Assignee: | Florian Weimer <fweimer> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | low | Docs Contact: | Vladimír Slávik <vslavik> |
| Priority: | low | ||
| Version: | 7.3 | CC: | ashankar, brubisch, codonell, cww, fweimer, glibc-bugzilla, mnewsome, pfrankli, qe-baseos-tools-bugs, skolosov, vslavik |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glibc-2.17-202.el7 | Doc Type: | No Doc Update |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | 1452032 | Environment: | |
| Last Closed: | 2018-04-10 13:58:28 UTC | 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1420851, 1452032 | ||
|
Description
Raul Mahiques
2017-05-18 08:13:19 UTC
The core issue is that getaddrinfo looks at h_errno even if nss_files returns NSS_STATUS_SUCCESS. The reproducer triggers an internal failure within nss_files, which overwrites h_errno, although the nss_files succeeds eventually. Upstream, we will fix this by changing getaddrinfo, but *how* is not completely clear to me yet. Downstream, we can either rebase getaddrinfo (more or less required to fix bug 168253), or patch nss_files not to leak the temporary h_errno value in this case. Upstream patch posted: https://sourceware.org/ml/libc-alpha/2017-08/msg00292.html 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://access.redhat.com/errata/RHSA-2018:0805 |