Jan Kara 4cf1551af3 udf: Check LVID earlier
[ Upstream commit 781d2a9a2fc7d0be53a072794dc03ef6de770f3d ]

We were checking validity of LVID entries only when getting
implementation use information from LVID in udf_sb_lvidiu(). However if
the LVID is suitably corrupted, it can cause problems also to code such
as udf_count_free() which doesn't use udf_sb_lvidiu(). So check validity
of LVID already when loading it from the disk and just disable LVID
altogether when it is not valid.

Reported-by: syzbot+7fbfe5fed73ebb675748@syzkaller.appspotmail.com
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-15 09:50:25 +02:00
..
2021-09-08 08:49:01 +02:00
2020-10-16 11:11:22 -07:00
2021-09-08 08:49:01 +02:00
2021-07-14 16:55:59 +02:00
2021-09-08 08:49:01 +02:00
2021-09-08 08:49:01 +02:00
2021-08-04 12:46:40 +02:00
2021-09-08 08:49:01 +02:00
2021-07-14 16:56:12 +02:00
2021-09-15 09:50:25 +02:00
2020-09-10 14:03:31 -07:00
2021-07-19 09:44:51 +02:00
2020-10-23 11:33:41 -07:00
2020-10-23 11:33:41 -07:00
2020-10-24 12:40:18 -07:00
2020-08-27 16:06:47 -04:00