]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
erofs: fix incorrect early exits for invalid metabox-enabled images
authorGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 29 Dec 2025 09:29:46 +0000 (17:29 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 22 Jan 2026 16:02:28 +0000 (00:02 +0800)
commit643575d5a4f24b23b0c54aa20aa74a4abed8ff5e
tree71c3ad348fc95540f87f5da087887d55fe3f31ba
parent9aa64b62a73cbca226c0144dcf3cdf97294e0641
erofs: fix incorrect early exits for invalid metabox-enabled images

Crafted EROFS images with metadata compression enabled can trigger
incorrect early returns, leading to folio reference leaks.

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

Fixes: 414091322c63 ("erofs: implement metadata compression")
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