Files
linux/fs/ext4
Theodore Ts'o 5bbeb827e8 ext4: fix false negatives *and* false positives in ext4_check_descriptors()
commit 44de022c43 upstream.

Ext4_check_descriptors() was getting called before s_gdb_count was
initialized.  So for file systems w/o the meta_bg feature, allocation
bitmaps could overlap the block group descriptors and ext4 wouldn't
notice.

For file systems with the meta_bg feature enabled, there was a
fencepost error which would cause the ext4_check_descriptors() to
incorrectly believe that the block allocation bitmap overlaps with the
block group descriptor blocks, and it would reject the mount.

Fix both of these problems.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Gilbert <bgilbert@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-12 16:46:08 +09:00
..
2015-04-02 23:47:42 -04:00
2016-09-30 02:14:56 -04:00
2016-09-05 23:21:43 -04:00
2015-04-02 23:47:42 -04:00
2017-10-13 11:27:08 +00:00
2018-07-11 16:40:16 +02:00
2016-03-09 23:49:05 -05:00
2017-06-14 15:06:00 +02:00
2018-05-30 13:19:56 +02:00
2017-10-13 11:27:08 +00:00
2018-04-12 09:54:41 -07:00