udf: Verify i_size when loading inode
authorJan Kara <jack@suse.cz>
Fri, 19 Dec 2014 11:03:53 +0000 (12:03 +0100)
committerJan Kara <jack@suse.cz>
Fri, 19 Dec 2014 12:13:05 +0000 (13:13 +0100)
commite159332b9af4b04d882dbcfe1bb0117f0a6d4b58
tree41070fd80f9e4a05ca0ab438814110edb8019869
parent4e2024624e678f0ebb916e6192bd23c1f9fdf696
udf: Verify i_size when loading inode

Verify that inode size is sane when loading inode with data stored in
ICB. Otherwise we may get confused later when working with the inode and
inode size is too big.

CC: stable@vger.kernel.org
Reported-by: Carl Henrik Lunde <chlunde@ping.uio.no>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c