]> git.itanic.dy.fi Git - linux-stable/commit
ext2: Check block size validity during mount
authorJan Kara <jack@suse.cz>
Wed, 1 Mar 2023 10:59:39 +0000 (11:59 +0100)
committerJan Kara <jack@suse.cz>
Mon, 6 Mar 2023 15:42:10 +0000 (16:42 +0100)
commit62aeb94433fcec80241754b70d0d1836d5926b0a
tree5b191d6bd8f8289d41507f3f67728d6ebf29134e
parente9cd1d9a34131fb56bef469d4e1cd31bd1b515e2
ext2: Check block size validity during mount

Check that log of block size stored in the superblock has sensible
value. Otherwise the shift computing the block size can overflow leading
to undefined behavior.

Reported-by: syzbot+4fec412f59eba8c01b77@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ext2.h
fs/ext2/super.c