android_kernel_xiaomi_sm8450/fs/udf
Roman Smirnov bffff80d10 udf: udftime: prevent overflow in udf_disk_stamp_to_time()
[ Upstream commit 3b84adf460381169c085e4bc09e7b57e9e16db0a ]

An overflow can occur in a situation where src.centiseconds
takes the value of 255. This situation is unlikely, but there
is no validation check anywere in the code.

Found by Linux Verification Center (linuxtesting.org) with Svace.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Roman Smirnov <r.smirnov@omp.ru>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20240327132755.13945-1-r.smirnov@omp.ru>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:12:36 +02:00
..
balloc.c udf: Check consistency of Space Bitmap Descriptor 2023-09-19 12:20:06 +02:00
dir.c udf: Fix crash after seekdir 2021-11-26 10:39:20 +01: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 fs: add file and path permissions helpers 2024-06-21 14:52:58 +02:00
ialloc.c udf: Fix error handling in udf_new_inode() 2022-01-27 10:54:23 +01:00
inode.c udf: initialize newblock to 0 2023-09-19 12:20:23 +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_get_extendedattr() had no boundary checks. 2021-09-15 09:50:27 +02:00
namei.c udf: Avoid double brelse() in udf_rename() 2023-01-14 10:16:13 +01: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: Preserve link count of system files 2023-03-11 16:39:57 +01:00
symlink.c udf: Remove pointless union in udf_inode_info 2020-09-29 17:21:54 +02:00
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2022-12-21 17:32:06 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-11 16:39:57 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-11 16:39:48 +01:00
udfdecl.h udf: augment UDF permissions on new inodes 2019-08-27 15:38:46 +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: udftime: prevent overflow in udf_disk_stamp_to_time() 2024-07-05 09:12:36 +02:00
unicode.c udf: Fix uninitialized array access for some pathnames 2023-08-26 15:26:44 +02:00