Message ID | 20180725180935.2503-3-kleber.souza@canonical.com |
---|---|
State | New |
Headers | show |
Series | Fix for CVE-2016-10208 | expand |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index ffca676b968d..942c98b270fd 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -3832,7 +3832,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) db_count = (sbi->s_groups_count + EXT4_DESC_PER_BLOCK(sb) - 1) / EXT4_DESC_PER_BLOCK(sb); if (EXT4_HAS_INCOMPAT_FEATURE(sb, EXT4_FEATURE_INCOMPAT_META_BG)) { - if (le32_to_cpu(es->s_first_meta_bg) >= db_count) { + if (le32_to_cpu(es->s_first_meta_bg) > db_count) { ext4_msg(sb, KERN_WARNING, "first meta block group too large: %u " "(group descriptor block count %u)",