linux/fs/udf
Jan Kara fc98ab45a8 udf: Detect incorrect directory size
commit fa65653e57 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
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