]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 24 Nov 2025 06:17:29 +0000 (14:17 +0800)
commitd53cd891f0e4311889349fff3a784dc552f814b9
tree9fae614c62906630405f2193cfa52793028b9246
parentebe4f3f6eb0c10f87c58e52a8912694c14fdeda6
erofs: limit the level of fs stacking for file-backed mounts

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>
fs/erofs/super.c