diff options
author | Jan Kara <jack@suse.cz> | 2013-09-12 22:00:15 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2013-09-24 11:23:33 +0200 |
commit | 69d75671d985ccdb291e4d19ddfdecd12440e857 (patch) | |
tree | 38e68e78441e81c8b35831fe559ef3fc0f9e2fb6 /fs/udf/udf_sb.h | |
parent | d8524ae9d6f492a9c6db9f4d89c5f9b8782fa2d5 (diff) | |
download | op-kernel-dev-69d75671d985ccdb291e4d19ddfdecd12440e857.zip op-kernel-dev-69d75671d985ccdb291e4d19ddfdecd12440e857.tar.gz |
udf: Fortify LVID loading
A user has reported an oops in udf_statfs() that was caused by
numOfPartitions entry in LVID structure being corrupted. Fix the problem
by verifying whether numOfPartitions makes sense at least to the extent
that LVID fits into a single block as it should.
Reported-by: Juergen Weigert <jw@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udf_sb.h')
-rw-r--r-- | fs/udf/udf_sb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/udf_sb.h b/fs/udf/udf_sb.h index ed401e9..1f32c7b 100644 --- a/fs/udf/udf_sb.h +++ b/fs/udf/udf_sb.h @@ -162,7 +162,7 @@ static inline struct udf_sb_info *UDF_SB(struct super_block *sb) return sb->s_fs_info; } -struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct udf_sb_info *sbi); +struct logicalVolIntegrityDescImpUse *udf_sb_lvidiu(struct super_block *sb); int udf_compute_nr_groups(struct super_block *sb, u32 partition); |