Skip to content
Commit d766f2d1 authored by Jan Kara's avatar Jan Kara
Browse files

ext2: Add sanity checks for group and filesystem size



Add sanity check that filesystem size does not exceed the underlying
device size and that group size is big enough so that metadata can fit
into it. This avoid trying to mount some crafted filesystems with
extremely large group counts.

Reported-by: default avatar <syzbot+0f2f7e65a3007d39539f@syzkaller.appspotmail.com>
Reported-by: kernel test robot <oliver.sang@intel.com> # Test fixup
CC: stable@vger.kernel.org
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 6c78973d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment