Linux/linux fa65653fs/udf directory.c

udf: Detect incorrect directory size

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 at gmail.com>
CC: stable at vger.kernel.org
Reported-and-tested-by: Anatoly Trosinenko <anatoly.trosinenko at gmail.com>
Signed-off-by: Jan Kara <jack at suse.cz>
DeltaFile
+3-0fs/udf/directory.c
+3-01 files

UnifiedSplitRaw