Bug 994615 - e2fsck incorrectly detects uninit extents past EOF as invalid
e2fsck incorrectly detects uninit extents past EOF as invalid
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: e2fsprogs (Show other bugs)
6.5
All Linux
high Severity high
: rc
: ---
Assigned To: Eric Sandeen
Eryu Guan
: Regression
: 985466 (view as bug list)
Depends On:
Blocks: 1002488
  Show dependency treegraph
 
Reported: 2013-08-07 11:49 EDT by Eric Sandeen
Modified: 2017-02-06 10:17 EST (History)
4 users (show)

See Also:
Fixed In Version: e2fsprogs-1.41.12-17.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1002488 (view as bug list)
Environment:
Last Closed: 2013-11-21 17:44:02 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Eric Sandeen 2013-08-07 11:49:33 EDT
After the fix for bug #922847:

  e2fsprogs-1.41.12-e2fsck-overlapping-extents.patch
  e2fsck: detect invalid extents at the end of an extent-block

e2fsck began incorrectly flagging uninitialized extents past EOF as invalid:

Testcase:

# for I in `seq 0 2 8`; do fallocate -o ${I}m -l 1m test/testfile ; done
# fallocate -n -o 12m -l 1m test/testfile
# umount test
# e2fsck -fy /dev/sdb1
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Inode 12, end of extent exceeds allowed value
	(logical block 3072, physical block 34304, len 256)
Clear? yes

Inode 12, i_blocks is 12296, should be 10248.  Fix? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(34304--34559)
Fix? yes

Free blocks count wrong for group #1 (31059, counted=31315).
Fix? yes

Free blocks count wrong (669199, counted=669455).
Fix? yes


/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdb1: 12/174944 files (0.0% non-contiguous), 29681/699136 blocks


Eric Whitney has a patch on the list to resolve this issue.
Comment 1 Eric Sandeen 2013-08-07 11:52:29 EDT
Unfortunately the same regression was pushed to z-stream, so this needs to follow it there as well.
Comment 4 Eric Sandeen 2013-08-12 18:44:39 EDT
Building in e2fsprogs-1.41.12-17.el6
Comment 6 Eryu Guan 2013-08-29 05:58:08 EDT
Reproduced with e2fsprogs-1.41.12-15.el6 which contains the fix for bug 922847.

=== fsck.log ===
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Inode 12, end of extent exceeds allowed value
        (logical block 12288, physical block 20481, len 1024)
Clear? no

Inode 12, i_blocks is 12292, should be 10244.  Fix? no

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(20481--21504)
Fix? no


/dev/loop0: ********** WARNING: Filesystem still has errors **********

/dev/loop0: 12/32768 files (8.3% non-contiguous), 15933/131072 blocks

Verified with e2fsprogs-1.41.12-18.el6

Set to VERIFIED
Comment 7 Eric Sandeen 2013-11-18 13:01:21 EST
*** Bug 985466 has been marked as a duplicate of this bug. ***
Comment 8 errata-xmlrpc 2013-11-21 17:44:02 EST
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.

http://rhn.redhat.com/errata/RHBA-2013-1689.html

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