android_kernel_motorola_sm6375/fs/udf
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ben Hutchings 08c32d6729 udf: Fix use of check_add_overflow() with mixed type arguments
Commit ebbe26fd54a9 "udf: Avoid excessive partition lengths"
introduced a use of check_add_overflow() with argument types u32,
size_t, and u32 *.

This was backported to the 5.x stable branches, where in 64-bit
configurations it results in a build error (with older compilers) or a
warning.  Before commit d219d2a9a92e "overflow: Allow mixed type
arguments", which went into Linux 6.1, mixed type arguments are not
supported.  That cannot be backported to 5.4 or 5.10 as it would raise
the minimum compiler version for these kernel versions.

Add a cast to make the argument types compatible.

Fixes: 1497a4484c ("udf: Avoid excessive partition lengths")
Fixes: 551966371e17 ("udf: Avoid excessive partition lengths")
Signed-off-by: Ben Hutchings <benh@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-03-13 12:42:51 +01:00
..
balloc.c udf: prevent integer overflow in udf_bitmap_free_blocks() 2024-08-19 05:33:47 +02:00
dir.c
directory.c
ecma_167.h
file.c udf: Do not update file length for failed writes to inline files 2023-03-11 16:44:00 +01:00
ialloc.c
inode.c udf: fix uninit-value use in udf_get_fileshortad 2024-11-08 16:20:50 +01:00
Kconfig
lowlevel.c
Makefile
misc.c
namei.c udf: Avoid double brelse() in udf_rename() 2023-01-18 11:41:34 +01:00
osta_udf.h
partition.c
super.c udf: Fix use of check_add_overflow() with mixed type arguments 2025-03-13 12:42:51 +01:00
symlink.c
truncate.c udf: Do not bother looking for prealloc extents if i_lenExtents matches i_size 2023-01-18 11:40:47 +01:00
udf_i.h udf: Preserve link count of system files 2023-03-11 16:44:00 +01:00
udf_sb.h udf: Define EFSCORRUPTED error code 2023-03-11 16:43:53 +01:00
udfdecl.h
udfend.h
udftime.c udf: udftime: prevent overflow in udf_disk_stamp_to_time() 2024-07-05 09:08:21 +02:00
unicode.c udf: Fix uninitialized array access for some pathnames 2023-08-30 16:27:09 +02:00