Bug 1631338

Summary: glibc: gethostid: Missing NULL check for gethostbyname_r result
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: glibcAssignee: Florian Weimer <fweimer>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: high    
Version: 29CC: aoliva, arjun.is, codonell, dj, fweimer, law, mfabian, pfrankli, rth, siddhesh
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.28-15.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1631293 Environment:
Last Closed: 2018-11-07 08:08:10 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: 1631293    

Description Florian Weimer 2018-09-20 11:26:38 UTC
+++ This bug was initially created as a clone of Bug #1631293 +++

We should fix a regression respective to RHEL 7 in the gethostid function.  Fix upstream thusly:

commit 1214ba06e6771acb953a190091b0f6055c64fd25
Author: Mingli Yu <Mingli.Yu>
Date:   Thu Sep 20 12:02:48 2018 +0200

    Linux gethostid: Check for NULL value from gethostbyname_r [BZ #23679]
    
    A NULL value can happen with certain gethostbyname_r failures.

commit db9a8ad4ff3fc58e3773a9a4d0cabe3c1bc9c94c
Author: Florian Weimer <fweimer>
Date:   Thu Sep 20 12:03:01 2018 +0200

    misc: New test misc/tst-gethostid
    
    The empty /etc/hosts file used to trigger bug 23679.

The upstream test will likely not run during the build because support_become_root does not yet work on the builders.

Comment 1 Fedora Update System 2018-11-03 07:01:11 UTC
glibc-2.28-17.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 2 Fedora Update System 2018-11-04 06:38:33 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0e5874aba9

Comment 3 Fedora Update System 2018-11-07 02:40:50 UTC
glibc-2.28-17.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.