Repository navigation
Commit 44de022
committed
ext4: fix false negatives *and* false positives in ext4_check_descriptors()
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.org1 parent 1e4b044 commit 44de022
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
2345 | | - | |
| 2345 | + | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| |||
4085 | 4085 | | |
4086 | 4086 | | |
4087 | 4087 | | |
| 4088 | + | |
4088 | 4089 | | |
4089 | 4090 | | |
4090 | 4091 | | |
4091 | 4092 | | |
4092 | 4093 | | |
4093 | 4094 | | |
4094 | | - | |
4095 | | - | |
4096 | 4095 | | |
4097 | 4096 | | |
4098 | 4097 | | |
| |||
0 commit comments