[LTP] fsconfig04: Check FSCONFIG_SET_PATH
Cyril Hrubis
chrubis@suse.cz
Thu Oct 22 15:05:01 CEST 2026
Hi!
> > + if (dev1[0])
> > + tst_detach_device(dev1);
> > +
> > + if (dev2[0])
> > + tst_detach_device(dev2);
>
> High severity: If another process claims a loop device between
> tst_find_free_loopdev() and LOOP_SET_FD, attachment fails with EBUSY but
> leaves dev1/dev2 populated, so tst_brk() runs this cleanup against the other
> process's device. Track attachment ownership, including partial-attachment
> failures, and detach only associations created by this test.
This should be probably solved in the test library, we would need a
tst_attach_loopdev() function that would retry the lookup for a free
device on EBUSY.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list