Bug 12406

Summary: Loop mount fails after nine mounts with busybox-1.31.1
Product: Busybox Reporter: john.frankish
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.31.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description john.frankish 2019-12-16 11:48:04 UTC
Using busybox-1.31.1 loop mounting fails after mounting nine squashfs packages with:

mount: can't setup loop device: No such file or directory

/dev/loop0 -> /dev/loop8 exist

After reversing the commit "mount,losetup: use /dev/loop-control is it exists" things now seem to work.
Comment 1 john.frankish 2019-12-16 11:53:26 UTC
To clarify:

Prior to loop mounting anything /dev/loop0 -> /dev/loop7 exist.

After attempting to loop mount many squashfs packages, the error occurs when nine packages have been loop mounted and /dev/loop0 -> /dev/loop8 exist.