diff options
author | Jan Kara <jack@suse.cz> | 2022-07-26 14:13:50 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 16:14:00 +0300 |
commit | 5e63c5fe9123fa76ffaeff26c211308736ec3a07 (patch) | |
tree | 107d32fe64e8d0ed7f0004877919ad53c0d22f05 /kernel/utsname.c | |
parent | 019aa3dd4ee3f78b7145c239c6bc273a20ecef9b (diff) | |
download | linux-5e63c5fe9123fa76ffaeff26c211308736ec3a07.tar.xz |
ext2: Add more validity checks for inode counts
[ Upstream commit fa78f336937240d1bc598db817d638086060e7e9 ]
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: syzbot+d273f7d7f58afd93be48@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/utsname.c')
0 files changed, 0 insertions, 0 deletions