Bug 1394704
Summary: | Conditional jump or move depends on uninitialised value in setmntent(3) | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Branislav Blaškovič <bblaskov> |
Component: | glibc | Assignee: | glibc team <glibc-bugzilla> |
Status: | CLOSED DUPLICATE | QA Contact: | qe-baseos-tools-bugs |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.8 | CC: | ashankar, fweimer, mnewsome, pfrankli, ppisar |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-04-03 08:42:43 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: |
Description
Branislav Blaškovič
2016-11-14 09:44:43 UTC
It works fine on RHEL-6.8. Bug is reproducible on RHEL-6.9-20161110.2. Weird is, that there are the same quota versions, so I assume that the bug could be in glibc maybe? Yes this is an issue in glibc. The quota's code is: mntf = setmntent("/proc/mounts", "r"); The mntf is a FILE* pointer. I can reproduce it with glibc-2.12-1.208.el6.x86_64 and valgrind-3.8.1-8.el6.x86_64 running: # valgrind quota -f / There is no need for any file system with enabled or set quotas. C reproducer: #include <stdlib.h> #include <stdio.h> #include <mntent.h> int main(void) { FILE *mntf; mntf = setmntent("/proc/mounts", "r"); if (mntf) { endmntent(mntf); } exit(EXIT_SUCCESS); } *** This bug has been marked as a duplicate of bug 1437147 *** |