linux/fs/erofs
Gao Xiang 8d8a878ef6 erofs: fix incorrect early exits in volume label handling
[ Upstream commit 3afa4da388 ]

Crafted EROFS images containing valid volume labels can trigger
incorrect early returns, leading to folio reference leaks.

However, this does not cause system crashes or other severe issues.

Fixes: 1cf12c7177 ("erofs: Add support for FS_IOC_GETFSLABEL")
Cc: stable@kernel.org
Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:21:13 -05:00
..
compress.h erofs: support DEFLATE decompression by using Intel QAT 2025-05-25 15:27:40 +08:00
data.c erofs: Add support for FS_IOC_GETFSLABEL 2025-09-25 11:26:20 +08:00
decompressor.c erofs: implement metadata compression 2025-07-24 19:43:31 +08:00
decompressor_crypto.c erofs: support DEFLATE decompression by using Intel QAT 2025-05-25 15:27:40 +08:00
decompressor_deflate.c erofs: support DEFLATE decompression by using Intel QAT 2025-05-25 15:27:40 +08:00
decompressor_lzma.c erofs: move {in,out}pages into struct z_erofs_decompress_req 2025-03-17 01:22:50 +08:00
decompressor_zstd.c erofs: avoid infinite loop due to incomplete zstd-compressed data 2025-11-07 04:10:45 +08:00
dir.c erofs: Add support for FS_IOC_GETFSLABEL 2025-09-25 11:26:20 +08:00
erofs_fs.h erofs: fix long xattr name prefix placement 2025-09-12 03:37:07 +08:00
fileio.c erofs: handle end of filesystem properly for file-backed mounts 2026-02-26 14:58:58 -08:00
fscache.c erofs: get rid of raw bi_end_io() usage 2026-02-26 14:58:58 -08:00
inode.c erofs: Add support for FS_IOC_GETFSLABEL 2025-09-25 11:26:20 +08:00
internal.h erofs: Add support for FS_IOC_GETFSLABEL 2025-09-25 11:26:20 +08:00
Kconfig erofs: Do not select tristate symbols from bool symbols 2025-08-11 06:02:20 +08:00
Makefile erofs: support DEFLATE decompression by using Intel QAT 2025-05-25 15:27:40 +08:00
namei.c erofs: get rid of erofs_kmap_type 2025-03-17 01:21:24 +08:00
super.c erofs: fix incorrect early exits in volume label handling 2026-03-04 07:21:13 -05:00
sysfs.c erofs: support to readahead dirent blocks in erofs_readdir() 2025-07-24 19:44:08 +08:00
xattr.c erofs: fix long xattr name prefix placement 2025-09-12 03:37:07 +08:00
xattr.h erofs: remove ENOATTR definition 2025-07-24 19:42:07 +08:00
zdata.c erofs: fix inline data read failure for ztailpacking pclusters 2026-02-26 14:58:59 -08:00
zmap.c erofs: fix interlaced plain identification for encoded extents 2026-03-04 07:20:50 -05:00
zutil.c The various patchsets are summarized below. Plus of course many 2025-01-26 18:36:23 -08:00