Re: [PATCH] loop: fix a race when a free loop device is snatched

2022-11-16 Thread Denys Vlasenko
Applied, thank you On Fri, Oct 21, 2022 at 8:58 AM Xiaoming Ni wrote: > > When /dev/loop-control exists and *device is empty, the mounting fails > due to concurrent contention. > Code Execution Flow: > try = xasprintf(LOOP_FORMAT, i); > for (i = 0; i <= 0xf; i++) { // The

ping //Re: [PATCH] loop: fix a race when a free loop device is snatched

2022-10-29 Thread Xiaoming Ni
ping On 2022/10/21 15:10, Xiaoming Ni wrote: When /dev/loop-control exists and *device is empty, the mounting fails due to concurrent contention. Code Execution Flow: try = xasprintf(LOOP_FORMAT, i); for (i = 0; i <= 0xf; i++) { // The value of "try" is not changed.

[PATCH] loop: fix a race when a free loop device is snatched

2022-10-21 Thread Xiaoming Ni
When /dev/loop-control exists and *device is empty, the mounting fails due to concurrent contention. Code Execution Flow: try = xasprintf(LOOP_FORMAT, i); for (i = 0; i <= 0xf; i++) { // The value of "try" is not changed. ... lfd = rc =