]> git.baikalelectronics.ru Git - kernel.git/commit
udf: Fortify LVID loading
authorJan Kara <jack@suse.cz>
Thu, 12 Sep 2013 20:00:15 +0000 (22:00 +0200)
committerJan Kara <jack@suse.cz>
Tue, 24 Sep 2013 09:23:33 +0000 (11:23 +0200)
commit56110a41b13cff165c821667ba81979030c31d6a
tree38e68e78441e81c8b35831fe559ef3fc0f9e2fb6
parentc4103ad82adf1e0096f7a4258785a07057b7b6c4
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>
fs/udf/ialloc.c
fs/udf/super.c
fs/udf/udf_sb.h