]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udf: Verify i_size when loading inode
authorJan Kara <jack@suse.cz>
Fri, 19 Dec 2014 11:03:53 +0000 (12:03 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 16 Feb 2015 15:10:47 +0000 (16:10 +0100)
commit4ff6c40be897225cf818c5202871cfb91ed064f6
tree666a56a45ee93a95d78d4ca76176c2c98f6938bb
parentc75789fb19feb86b64d60387f0e6525f05d95b64
udf: Verify i_size when loading inode

commit e159332b9af4b04d882dbcfe1bb0117f0a6d4b58 upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/udf/inode.c