RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1448019 - e2fsprogs: fail to open 1k block size ext4 with bigalloc,meta_bg,^resize_inode
Summary: e2fsprogs: fail to open 1k block size ext4 with bigalloc,meta_bg,^resize_inode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: e2fsprogs
Version: 7.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Lukáš Czerner
QA Contact: Boyang Xue
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-04 11:44 UTC by Eryu Guan
Modified: 2018-10-30 11:39 UTC (History)
1 user (show)

Fixed In Version: e2fsprogs-1.42.9-13.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-30 11:38:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3276 0 None None None 2018-10-30 11:39:15 UTC

Description Eryu Guan 2017-05-04 11:44:49 UTC
Description of problem:
fstests ext4/025 fails due to debugfs fails to open the newly created ext4 when testing with 1k block size config.

# mkfs -t ext4 -b 1024 -O bigalloc,meta_bg,^resize_inode -F /dev/vda6
# debugfs /dev/vda6
debugfs 1.42.9 (28-Dec-2013)
/dev/vda6: Can't read an inode bitmap while reading inode bitmap
# e2fsck -nf /dev/vda6
<corruption message floods>

Seems we need this patch:

commit d36b957b345ee6e4b529be99b8fdc8d3e70ccdc1
Author: Darrick J. Wong <darrick.wong>
Date:   Sat Jan 11 13:58:15 2014 -0500

    libext2fs: don't always read backup group descriptors on a 1k-block meta_bg fs
    
    On a filesystem with 1K blocks and meta_bg enabled, opening a
    filesystem with automatic superblock detection tries to compensate for
    the fact that the superblock lives in block 1.  However, the method by
    which this is done is later misinterpreted to mean "read the backup
    group descriptors", which is not what we want in this case.
    
    Therefore, in ext2fs_open3() separate the 'group zero' adjustment into
    its own variable so that we don't get fed backup group descriptors
    when we try to load meta_bg group descriptors.
    
    Furthermore, enhance ext2fs_descriptor_block_loc2() to perform its own
    group zero correction.  The other caller of this function neglects to
    do any group-zero correction of their own, so this fixes them too.
    
    Signed-off-by: Darrick J. Wong <darrick.wong>
    Signed-off-by: Theodore Ts'o <tytso>

Version-Release number of selected component (if applicable):
e2fsprogs-1.42.9-9.el7

How reproducible:
always

Steps to Reproduce:
1. see description
2.
3.

Actual results:
debugfs fails to open newly created ext4
e2fsck floods console with error messages

Expected results:
open such ext4 fs correctly by debugfs and no corruption found by e2fsck

Additional info:
I set severity to low because it seems bigalloc feature is required to reproduce, and we don't support ext4 with bigalloc feature, and we only see this failure in testing, so file a bug anyway to track the fstests failure.

Please feel free to close if it's not worth fixing.

Comment 7 errata-xmlrpc 2018-10-30 11:38:55 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/RHBA-2018:3276


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