ext2: Check block size validity during mount
stable inclusion from stable-v5.10.181 commit 22ab5fed07ad4b206ea910fd0132d1a0d4831584 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8GJZJ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=22ab5fed07ad4b206ea910fd0132d1a0d4831584 -------------------------------- [ Upstream commit 62aeb944 ] 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> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment