android_kernel_motorola_sm6375/fs/squashfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Phillip Lougher 54170057a5 Squashfs: reject negative file sizes in squashfs_read_inode()
[ Upstream commit 9f1c14c1de1bdde395f6cc893efa4f80a2ae3b2b ]

Syskaller reports a "WARNING in ovl_copy_up_file" in overlayfs.

This warning is ultimately caused because the underlying Squashfs file
system returns a file with a negative file size.

This commit checks for a negative file size and returns EINVAL.

[[email protected]: only need to check 64 bit quantity]
  Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6545b246a2 ("Squashfs: inode operations")
Signed-off-by: Phillip Lougher <[email protected]>
Reported-by: [email protected]
Closes: https://lore.kernel.org/all/[email protected]/
Cc: Amir Goldstein <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-10-29 13:59:55 +01:00
..
block.c
cache.c
decompressor.c
decompressor.h
decompressor_multi.c
decompressor_multi_percpu.c
decompressor_single.c
dir.c
export.c
file.c
file_cache.c
file_direct.c
fragment.c
id.c
inode.c Squashfs: reject negative file sizes in squashfs_read_inode() 2025-10-29 13:59:55 +01:00
Kconfig
lz4_wrapper.c
lzo_wrapper.c
Makefile
namei.c
page_actor.c
page_actor.h
squashfs.h
squashfs_fs.h
squashfs_fs_i.h Squashfs: fix uninit-value in squashfs_get_parent 2025-10-29 13:59:50 +01:00
squashfs_fs_sb.h
super.c squashfs: fix memory leak in squashfs_fill_super 2025-08-28 16:21:32 +02:00
symlink.c
xattr.c
xattr.h
xattr_id.c revert "squashfs: harden sanity check in squashfs_read_xattr_id_table" 2023-02-22 12:50:39 +01:00
xz_wrapper.c
zlib_wrapper.c
zstd_wrapper.c