]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: fix incorrect early exits in volume label handling
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 29 Dec 2025 09:29:47 +0000 (17:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:02:57 +0000 (00:02 +0800)
commit3afa4da38802a4cba1c23848a32284e7e57b831b
treebe208682f337dd0f388e2d350557cd536112f086
parent643575d5a4f24b23b0c54aa20aa74a4abed8ff5e
erofs: fix incorrect early exits in volume label handling

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: 1cf12c717741 ("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>
fs/erofs/super.c