]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
udf: Detect incorrect directory size
authorJan Kara <jack@suse.cz>
Wed, 13 Jun 2018 10:09:22 +0000 (12:09 +0200)
committerJan Kara <jack@suse.cz>
Wed, 20 Jun 2018 09:05:31 +0000 (11:05 +0200)
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>

No differences found