]> 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 13:03:12 +0000 (14:03 +0100)
commit620472e6b303c4dbcc7ecf1aba1cda4f3523e4a4
tree2983eef54b7d75689204a5a47210403e634f8fbf
parent46198ad004297e003b5e35a90aa841ecdb668bef
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