android_kernel_motorola_sm6375/fs/squashfs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Phillip Lougher b0e2eee120 squashfs: fix memory leak in squashfs_fill_super
commit b64700d41bdc4e9f82f1346c15a3678ebb91a89c upstream.

If sb_min_blocksize returns 0, squashfs_fill_super exits without freeing
allocated memory (sb->s_fs_info).

Fix this by moving the call to sb_min_blocksize to before memory is
allocated.

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 734aa85390ea ("Squashfs: check return result of sb_min_blocksize")
Signed-off-by: Phillip Lougher <[email protected]>
Reported-by: Scott GUO <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-08-28 16:21:32 +02: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: check the inode number is not the invalid value of zero 2025-03-13 12:43:32 +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_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