android_kernel_samsung_univ.../fs/udf
Jan Kara fc98ab45a8 udf: Detect incorrect directory size
commit fa65653e575fbd958bdf5fb9c4a71a324e39510d upstream.

Detect when a directory entry is (possibly partially) beyond directory
size and return EIO in that case since it means the filesystem is
corrupted. Otherwise directory operations can further corrupt the
directory and possibly also oops the kernel.

CC: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
CC: stable@vger.kernel.org
Reported-and-tested-by: Anatoly Trosinenko <anatoly.trosinenko@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:21:34 +02:00
..
balloc.c
dir.c
directory.c udf: Detect incorrect directory size 2018-07-03 11:21:34 +02:00
ecma_167.h
file.c
ialloc.c
inode.c udf: Fix deadlock between writeback and udf_setsize() 2017-07-27 15:06:09 -07:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c do d_instantiate/unlock_new_inode combinations safely 2018-05-30 07:48:52 +02:00
osta_udf.h
partition.c
super.c udf: Provide saner default for invalid uid / gid 2018-05-30 07:49:15 +02:00
symlink.c
truncate.c
udf_i.h
udf_sb.h
udfdecl.h
udfend.h
udftime.c
unicode.c udf: Check output buffer length when converting name to CS0 2016-02-25 12:01:18 -08:00