android_kernel_samsung_a7y1.../fs/ext4
Theodore Ts'o d32b0c6751 ext4: add more paranoia checking in ext4_expand_extra_isize handling
commit 4ea99936a1630f51fc3a2d61a58ec4a1c4b7d55a 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>
[bwh: Backported to 4.4: adjust context]
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 13:36:38 +02:00
..
sdp A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
balloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bitmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
block_validity.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto_fname.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto_key.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crypto_policy.c fscrypt: don't set policy for a dead directory 2020-04-06 19:29:02 +02:00
crypto.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dir.c ext4: check for directory entries too close to block end 2020-04-07 13:22:32 +02:00
ext4_crypto.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ext4_extents.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ext4_jbd2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ext4_jbd2.h ext4: fix NULL pointer dereference while journal is aborted 2020-04-06 10:58:15 +02:00
ext4.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extents_status.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extents_status.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
extents.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
file.c ext4: fix data corruption caused by unaligned direct AIO 2020-04-06 10:58:16 +02:00
fscrypt_knox_private.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsync.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hash.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ialloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
indirect.c ext4: cleanup bh release code in ext4_ind_remove_space() 2020-04-06 13:43:42 +02:00
inline.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c ext4: add more paranoia checking in ext4_expand_extra_isize handling 2020-04-07 13:36:38 +02:00
ioctl.c ext4: actually request zeroing of inode table after grow 2020-04-06 18:12:36 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mballoc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mballoc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
migrate.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
move_extent.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
namei.c ext4: work around deleting a file with i_nlink == 0 safely 2020-04-07 13:23:26 +02:00
page-io.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
readpage.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
resize.c ext4: report real fs size after failed resize 2020-04-06 15:16:53 +02:00
super.c ext4: add more paranoia checking in ext4_expand_extra_isize handling 2020-04-07 13:36:38 +02:00
symlink.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
truncate.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_security.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_trusted.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr_user.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30