Bug 166093 - e2fsck can crash on a bad disconnected inode
Summary: e2fsck can crash on a bad disconnected inode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: e2fsprogs
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Thomas Woerner
QA Contact: Jay Turner
URL: http://thunk.org/hg/e2fsprogs/?cmd=ch...
Whiteboard:
Depends On:
Blocks: 168429
TreeView+ depends on / blocked
 
Reported: 2005-08-16 20:47 UTC by Stephen Tweedie
Modified: 2015-01-08 00:10 UTC (History)
2 users (show)

Fixed In Version: RHBA-2006-0060
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-07 18:12:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2006:0060 0 qe-ready SHIPPED_LIVE e2fsprogs bug fix update 2006-03-06 05:00:00 UTC

Description Stephen Tweedie 2005-08-16 20:47:41 UTC
Description of problem:

This was actually caused by two bugs. The first bug is that if the
inode has been fully fixed up, the code will attempt to remove the
inode from the inode_bad_map without checking to see if this bitmap is
present. Since it is cleared at the end of pass 2, if
e2fsck_process_bad_inode is called in pass 4 (as it is for
disconnected inodes), this would result in a core dump.

The first bug was mostly hidden by a second bug, which caused
e2fsck_process_bad_inode() to consider all inodes without an extended
attribute to be not fixed.

Version-Release number of selected component (if applicable):
e2fsprogs-1.35-12.1.EL4

How reproducible:
100%

Steps to Reproduce:
1. Fetch tests/f_bad_disconnected_inode/image.gz from current upstream mercurial
e2fsprogs repository (http://thunk.org/hg/e2fsprogs)
2. zcat image.gz > image
3. e2fsck -fy image
  
Actual results:
SEGV

Expected results:
Should fix the filesystem.

The patch to fix this is at

http://thunk.org/hg/e2fsprogs/?cmd=changeset;node=0502b63a5be9cb490c0c9086fa05edc1b1712a78

and has been checked into upstream e2fsprogs.

Comment 6 Red Hat Bugzilla 2006-03-07 18:12:24 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2006-0060.html



Note You need to log in before you can comment on or make changes to this bug.