android_kernel_samsung_msm8976/fs/ext4
Theodore Ts'o c0cf9ebb27 ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea()
commit 9e92f48c34eb2b9af9d12f892e2fe1fce5e8ce35 upstream.

We aren't checking to see if the in-inode extended attribute is
corrupted before we try to expand the inode's extra isize fields.

This can lead to potential crashes caused by the BUG_ON() check in
ext4_xattr_shift_entries().

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
[bwh: Backported to 3.16: s/EFSCORRUPTED/EIO/]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 22:09:13 +02:00
..
acl.c ext4: Don't clear SGID when inheriting ACLs 2019-07-27 21:44:57 +02:00
acl.h
balloc.c ext4: check for allocation block validity with block group locked 2019-07-27 21:52:56 +02:00
bitmap.c
block_validity.c
dir.c ext4: force revalidation of directory pointer after seekdir(2) 2019-07-27 21:52:03 +02:00
ext4.h ext4: reduce object size when !CONFIG_PRINTK 2019-07-27 22:09:12 +02:00
ext4_extents.h ext4: verify the depth of extent tree in ext4_find_extent() 2019-07-27 21:51:42 +02:00
ext4_jbd2.c
ext4_jbd2.h ext4: fix NULL pointer dereference while journal is aborted 2019-07-27 22:08:53 +02:00
extents.c ext4: ext4_inline_data_fiemap should respect callers argument 2019-07-27 22:09:06 +02:00
extents_status.c
extents_status.h
file.c ext4: fix data corruption caused by unaligned direct AIO 2019-07-27 22:08:54 +02:00
fsync.c
hash.c
ialloc.c ext4: avoid declaring fs inconsistent due to invalid file handles 2019-07-27 22:09:05 +02:00
indirect.c ext4: protect i_disksize update by i_data_sem in direct write path 2019-07-27 21:52:01 +02:00
inline.c ext4: fix a potential fiemap/page fault deadlock w/ inline_data 2019-07-27 22:09:06 +02:00
inode.c ext4: fix special inode number checks in __ext4_iget() 2019-07-27 22:09:07 +02:00
ioctl.c ext4: avoid declaring fs inconsistent due to invalid file handles 2019-07-27 22:09:05 +02:00
Kconfig
Makefile
mballoc.c ext4: only look at the bg_flags field if it is valid 2019-07-27 21:52:00 +02:00
mballoc.h
migrate.c
mmp.c ext4: use prandom_u32() instead of get_random_bytes() 2019-07-27 21:53:22 +02:00
move_extent.c
namei.c ext4: avoid declaring fs inconsistent due to invalid file handles 2019-07-27 22:09:05 +02:00
page-io.c
resize.c ext4: avoid declaring fs inconsistent due to invalid file handles 2019-07-27 22:09:05 +02:00
super.c ext4: reduce object size when !CONFIG_PRINTK 2019-07-27 22:09:12 +02:00
symlink.c
truncate.h
xattr.c ext4: check if in-inode xattr is corrupted in ext4_expand_extra_isize_ea() 2019-07-27 22:09:13 +02:00
xattr.h ext4: add extra checks to ext4_xattr_block_get() 2019-07-27 21:52:02 +02:00
xattr_security.c
xattr_trusted.c
xattr_user.c