udf: check partition reference in udf_read_inode()
authorFabian Frederick <fabf@skynet.be>
Fri, 6 Jan 2017 20:54:43 +0000 (21:54 +0100)
committerJan Kara <jack@suse.cz>
Tue, 10 Jan 2017 10:59:21 +0000 (11:59 +0100)
commit1d82a56bc5bf820b7c65d8130b44c0bc101b546c
tree6835a6658ddb237fe19aa2d88a7ab0c5a467eb7b
parent23bcda112f77da278898841615c7530c3e91a537
udf: check partition reference in udf_read_inode()

We were checking block number without checking partition.
sbi->s_partmaps[iloc->partitionReferenceNum] could lead to
bad memory access. See udf_nfs_get_inode() path for instance.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c