Bug 1560641

Summary: sem_open - valgrind complains about uninitialised bytes
Product: Red Hat Enterprise Linux 7 Reporter: Paulo Andrade <pandrade>
Component: glibcAssignee: Patsy Griffin <pfrankli>
Status: CLOSED ERRATA QA Contact: Sergey Kolosov <skolosov>
Severity: medium Docs Contact: Vladimír Slávik <vslavik>
Priority: medium    
Version: 7.4CC: ashankar, codonell, dj, fweimer, mcermak, mnewsome, pfrankli, vslavik
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.17-260.el7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 09:38:06 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: 1505884    

Description Paulo Andrade 2018-03-26 15:48:11 UTC
This is a minor issue, and would be fixed by:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=blobdiff;f=nptl/sem_open.c;h=5b45fadd719de88f4378bad10cc8cf514ce66cc5;hp=911b1f30a9287cfb16130aecf1056ba85a3fd11c;hb=980d25d53e748abd3365aeec0a1ccd1316b4e6d6;hpb=80d8cb91dee8bdcc4e430b3e2620d95f89b1ee0b

as the pad field is not initialized in rhel7, when the write calls
is done:

      if (TEMP_FAILURE_RETRY (__libc_write (fd, &sem.initsem, sizeof (sem_t)))
	  == sizeof (sem_t)

valgrind shows the warning:
 
Syscall param write(buf) points to uninitialised byte(s)

Comment 7 errata-xmlrpc 2018-10-30 09:38:06 UTC
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:3092