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

ext2: Add more validity checks for inode counts



Add checks verifying number of inodes stored in the superblock matches
the number computed from number of inodes per group. Also verify we have
at least one block worth of inodes per group. This prevents crashes on
corrupted filesystems.

Reported-by: default avatar <syzbot+d273f7d7f58afd93be48@syzkaller.appspotmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent bd6e21a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment