Bug 834345

Summary: long lines in /etc/group causes initgroups() to fail
Product: [Fedora] Fedora Reporter: Bill Pemberton <wfp5p>
Component: glibcAssignee: Jeff Law <law>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: fweimer, jakub, law, pfrankli, schwab
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-21 15:38:14 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:
Attachments:
Description Flags
error output from id when there is a very long line in /etc/group none

Description Bill Pemberton 2012-06-21 15:26:30 UTC
Created attachment 593480 [details]
error output from id when there is a very long line in /etc/group

Description of problem:
A long line in /etc/group will cause all calls to initgroup() to fail.  This is a fixed bug in upstream.

Version-Release number of selected component (if applicable):
Verified on 2.14.90-24.fc16.7, but I think any 2.14 glibc has the bug.

How reproducible:
always

Steps to Reproduce:
1. create a group entry that is longer than 26000 chars
2. run something that does initgroups(), id will work

  
Actual results:
failure with error output attached

Expected results:
initgroups() to work

Additional info:
commit id ae1bc2fa1c58b13ffa83483c24e547148762e24f upstream fixes this.  It's a very simple patch: realloc() is being given the wrong parameter for the new buffer size.

Comment 1 Jeff Law 2012-06-21 15:38:14 UTC
This is already fixed in f17 & rawhide.  There are currently no plans to backport and respin the F16 glibc.