Bug 1170319

Summary: Ext3 directory code should account for nil entries
Product: Red Hat CloudForms Management Engine Reporter: Rich Oliveri <roliveri>
Component: InsightAssignee: Rich Oliveri <roliveri>
Status: CLOSED ERRATA QA Contact: Ramesh A <rananda>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.3.0CC: dclarizi, gblomqui, rananda
Target Milestone: GA   
Target Release: 5.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.4.0.0.11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1170320 (view as bug list) Environment:
Last Closed: 2015-06-16 12:45: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:
Bug Depends On:    
Bug Blocks: 1170320    

Description Rich Oliveri 2014-12-03 19:24:43 UTC
Description of problem:
Nil entries in Ext3 directories can cause code to fault.
These nil entries should be filtered out.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Rich Oliveri 2014-12-04 18:15:07 UTC
This issue also applies to Ext4 and XFS code.

Comment 3 CFME Bot 2014-12-08 22:31:06 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1194c771a3055a332a94ec4f8690948405bc6f68

commit 1194c771a3055a332a94ec4f8690948405bc6f68
Author:     Richard Oliveri <roliveri>
AuthorDate: Thu Dec 4 14:11:28 2014 -0500
Commit:     Richard Oliveri <roliveri>
CommitDate: Thu Dec 4 14:25:33 2014 -0500

    Account for nil directory entries in FS code.
    
    Modify Ext3, Ext4 and XFS filesystem code to filter out nil directory entries.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1170320
    https://bugzilla.redhat.com/show_bug.cgi?id=1170319

 lib/fs/ext3/Ext3Directory.rb | 5 ++---
 lib/fs/ext4/Ext4Directory.rb | 2 +-
 lib/fs/xfs/directory.rb      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

Comment 4 CFME Bot 2014-12-08 22:36:01 UTC
New commit detected on cfme/5.3.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=a93d06090e10cb6408b463e2b9b71cf693b498f9

commit a93d06090e10cb6408b463e2b9b71cf693b498f9
Author:     Richard Oliveri <roliveri>
AuthorDate: Thu Dec 4 14:11:28 2014 -0500
Commit:     Richard Oliveri <roliveri>
CommitDate: Mon Dec 8 17:34:27 2014 -0500

    Account for nil directory entries in FS code.
    
    Modify Ext3, Ext4 and XFS filesystem code to filter out nil directory entries.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1170320
    https://bugzilla.redhat.com/show_bug.cgi?id=1170319

 lib/fs/ext3/Ext3Directory.rb | 5 ++---
 lib/fs/ext4/Ext4Directory.rb | 2 +-
 lib/fs/xfs/directory.rb      | 2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)

Comment 6 Ramesh A 2015-05-15 12:06:30 UTC
Good to go.  Verified and working fine in 5.4.0.1.20150512111354_4368716

Comment 8 errata-xmlrpc 2015-06-16 12:45:43 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://rhn.redhat.com/errata/RHBA-2015-1100.html