[PATCH 1/2] erofs-utils: mount: Check the status of subprocess to avoid infinite loop
Gao Xiang
hsiangkao at linux.alibaba.com
Sun Dec 14 01:45:59 AEDT 2025
On 2025/12/12 19:17, Yifan Zhao wrote:
> In `erofsmount_nbd()`, if the child process forked therein exits
> erroneously within `erofsmount_startnbd()`, the NBD device will never
> become operational. Since the parent process does not check the child's
> status, it will stuck in an infinite loop polling the NBD device state.
>
> This patch ensures the parent process correctly detects this failure and
> returns an error accordingly.
>
> Signed-off-by: Yifan Zhao <zhaoyifan28 at huawei.com>
Both patches applied, thanks!
Thanks,
Gao Xiang
More information about the Linux-erofs
mailing list