linux-uconsole/fs/ext4
Theodore Ts'o e91cce02f3 ext4: add more paranoia checking in ext4_expand_extra_isize handling
commit 4ea99936a1 upstream.

It's possible to specify a non-zero s_want_extra_isize via debugging
option, and this can cause bad things(tm) to happen when using a file
system with an inode size of 128 bytes.

Add better checking when the file system is mounted, as well as when
we are actually doing the trying to do the inode expansion.

Link: https://lore.kernel.org/r/20191110121510.GH23325@mit.edu
Reported-by: syzbot+f8d6f8386ceacdbfff57@syzkaller.appspotmail.com
Reported-by: syzbot+33d7ea72e47de3bdf4e1@syzkaller.appspotmail.com
Reported-by: syzbot+44b6763edfc17144296f@syzkaller.appspotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-05 09:21:32 +01:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c ext4: fix potential use after free after remounting with noblock_validity 2019-10-07 18:57:05 +02:00
dir.c ext4: allow directory holes 2019-07-28 08:29:30 +02:00
ext4.h ext4: fix potential use after free after remounting with noblock_validity 2019-10-07 18:57:05 +02:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
extents.c ext4: fix warning inside ext4_convert_unwritten_extents_endio 2019-10-05 13:10:11 +02:00
extents_status.c
extents_status.h
file.c ext4: enforce the immutable flag on open files 2019-07-28 08:29:29 +02:00
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c
indirect.c ext4: cleanup bh release code in ext4_ind_remove_space() 2019-04-05 22:32:55 +02:00
inline.c
inode.c ext4: add more paranoia checking in ext4_expand_extra_isize handling 2019-12-05 09:21:32 +01:00
ioctl.c ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT 2019-11-06 13:05:37 +01:00
Kconfig
Makefile
mballoc.c ext4: make sanity check in mballoc more strict 2019-05-22 07:37:42 +02:00
mballoc.h
migrate.c
mmp.c
move_extent.c ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
namei.c ext4: fix build error when DX_DEBUG is defined 2019-11-24 08:19:47 +01:00
page-io.c
readpage.c
resize.c ext4: avoid drop reference to iloc.bh twice 2019-05-22 07:37:42 +02:00
super.c ext4: add more paranoia checking in ext4_expand_extra_isize handling 2019-12-05 09:21:32 +01:00
symlink.c
sysfs.c
truncate.h
xattr.c ext4: ignore e_value_offs for xattrs with value-in-ea-inode 2019-05-22 07:37:42 +02:00
xattr.h
xattr_security.c
xattr_trusted.c
xattr_user.c