linux/fs/ext4
Theodore Ts'o d87a4e4094 ext4: remove a BUG_ON in ext4_mb_release_group_pa()
commit 463808f237 upstream.

If a malicious fuzzer overwrites the ext4 superblock while it is
mounted such that the s_first_data_block is set to a very large
number, the calculation of the block group can underflow, and trigger
a BUG_ON check.  Change this to be an ext4_warning so that we don't
crash the kernel.

Cc: stable@kernel.org
Link: https://lore.kernel.org/r/20230430154311.579720-3-tytso@mit.edu
Reported-by: syzbot+e2efa3efc15a1c9e95c3@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?id=69b28112e098b070f639efb356393af3ffec4220
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-17 11:53:58 +02:00
..
.kunitconfig
acl.c
acl.h
balloc.c ext4: fix WARNING in mb_find_extent 2023-05-17 11:53:57 +02:00
bitmap.c
block_validity.c
crypto.c
dir.c
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
ext4.h ext4: fix incorrect options show of original mount_opt and extend mount_opt2 2023-03-11 13:55:27 +01:00
extents_status.c ext4: fix data races when using cached status extents 2023-05-17 11:53:57 +02:00
extents_status.h
extents.c ext4: fix use-after-free read in ext4_find_extent for bigalloc + inline 2023-05-11 23:03:36 +09:00
fast_commit.c ext4: use ext4_fc_tl_mem in fast-commit replay path 2023-03-11 13:55:22 +01:00
fast_commit.h
file.c
fsmap.c ext4: fix another off-by-one fsmap error on 1k block filesystems 2023-03-17 08:50:16 +01:00
fsmap.h
fsync.c
hash.c ext4: improve error handling from ext4_dirhash() 2023-05-17 11:53:58 +02:00
ialloc.c
indirect.c
inline.c ext4: bail out of ext4_xattr_ibody_get() fails for any reason 2023-05-17 11:53:58 +02:00
inode-test.c
inode.c ext4: check iomap type only if ext4_iomap_begin() does not fail 2023-05-17 11:53:57 +02:00
ioctl.c ext4: zero i_disksize when initializing the bootloader inode 2023-03-17 08:50:16 +01:00
Kconfig
Makefile
mballoc.c ext4: remove a BUG_ON in ext4_mb_release_group_pa() 2023-05-17 11:53:58 +02:00
mballoc.h
migrate.c
mmp.c ext4: fix lockdep warning when enabling MMP 2023-05-17 11:53:58 +02:00
move_extent.c
namei.c ext4: improve error handling from ext4_dirhash() 2023-05-17 11:53:58 +02:00
orphan.c
page-io.c ext4: fix cgroup writeback accounting with fs-layer encryption 2023-03-17 08:50:16 +01:00
readpage.c
resize.c
super.c ext4: improve error recovery code paths in __ext4_remount() 2023-05-17 11:53:58 +02:00
symlink.c
sysfs.c
truncate.h
verity.c
xattr_hurd.c
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: fix task hung in ext4_xattr_delete_inode 2023-03-22 13:33:54 +01:00
xattr.h