linux_dsm_epyc7002/fs/udf
Jan Kara efce4dfa65 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>
2024-07-05 19:09:15 +02:00
..
balloc.c treewide: Remove uninitialized_var() usage 2020-07-16 12:35:15 -07:00
dir.c udf: Fix 64-bit sign extension issues affecting blocks > 0x7FFFFFFF 2017-10-17 11:56:45 +02:00
directory.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
ecma_167.h udf: Replace HTTP links with HTTPS ones 2020-07-14 14:37:39 +02:00
file.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
ialloc.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
inode.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
Kconfig docs: filesystems: fix renamed references 2020-04-20 15:45:22 -06:00
lowlevel.c udf: stop using ioctl_by_bdev 2020-05-04 10:13:42 -06:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
misc.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
namei.c init: add dsm gpl source 2024-07-05 18:00:04 +02:00
osta_udf.h udf: osta_udf.h: delete a duplicated word 2020-07-27 10:58:55 +02:00
partition.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
super.c udf: Check LVID earlier 2024-07-05 19:09:15 +02:00
symlink.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
truncate.c udf: Fix spelling in EXT_NEXT_EXTENT_ALLOCDESCS 2020-01-08 11:11:46 +01:00
udf_i.h udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
udf_sb.h init: add dsm gpl source 2024-07-05 18:00:04 +02:00
udfdecl.h init: add dsm gpl source 2024-07-05 18:00:04 +02:00
udfend.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udftime.c udf: convert inode stamps to timespec64 2018-06-27 13:58:00 +02:00
unicode.c udf: Allow mounting volumes with incorrect identification strings 2018-11-19 10:27:59 +01:00