Re: Race condition when accessing authorized_default for a root hub

2019-08-05 Thread Greg Kroah-Hartman
On Mon, Aug 05, 2019 at 12:29:27PM +0200, ThiƩbaud Weksteen wrote: > Hi, > > I believe there is a race condition for userland in hcd.c where the > kernel sends a uevent before the underlying sysfs is fully populated: > > (drivers/usb/core/hcd.c) > /* starting here, usbcore will pay atte

Race condition when accessing authorized_default for a root hub

2019-08-05 Thread ThiƩbaud Weksteen
Hi, I believe there is a race condition for userland in hcd.c where the kernel sends a uevent before the underlying sysfs is fully populated: (drivers/usb/core/hcd.c) /* starting here, usbcore will pay attention to this root hub */ retval = register_root_hub(hcd); if