]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
erofs: limit the level of fs stacking for file-backed mounts
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sat, 22 Nov 2025 06:23:32 +0000 (14:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 12:55:05 +0000 (13:55 +0100)
commit34447aeedbaea8f9aad3da5b07030a1c0e124639
treec3ee1e9260e427a57827b4366ee2f63c5a306bdc
parent349f101d3f967245cca0f23c442e1f58c23793db
erofs: limit the level of fs stacking for file-backed mounts

[ Upstream commit d53cd891f0e4311889349fff3a784dc552f814b9 ]

Otherwise, it could cause potential kernel stack overflow (e.g., EROFS
mounting itself).

Reviewed-by: Sheng Yong <shengyong1@xiaomi.com>
Fixes: fb176750266a ("erofs: add file-backed mount support")
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/erofs/super.c