Re: [PATCH] Prevent race condition between USB authorisation and USB discovery events

2018-12-18 Thread Alan Stern
On Tue, 18 Dec 2018, Andrew Worsley wrote: > On Tue, 18 Dec 2018 at 03:21, Alan Stern wrote: > > > > On Mon, 17 Dec 2018, Andrew Worsley wrote: > > > > > A sysfs driven USB authorisation change can trigger a > > > usb_set_configuration > > > while a hub_event worker thread is running. This can

Re: [PATCH] Prevent race condition between USB authorisation and USB discovery events

2018-12-17 Thread Andrew Worsley
On Tue, 18 Dec 2018 at 03:21, Alan Stern wrote: > > On Mon, 17 Dec 2018, Andrew Worsley wrote: > > > A sysfs driven USB authorisation change can trigger a usb_set_configuration > > while a hub_event worker thread is running. This can result in a USB device > > being disabled just after it was

Re: [PATCH] Prevent race condition between USB authorisation and USB discovery events

2018-12-17 Thread Alan Stern
On Mon, 17 Dec 2018, Andrew Worsley wrote: > A sysfs driven USB authorisation change can trigger a usb_set_configuration > while a hub_event worker thread is running. This can result in a USB device > being disabled just after it was configured and bringing down all the > devices and impacting

[PATCH] Prevent race condition between USB authorisation and USB discovery events

2018-12-16 Thread Andrew Worsley
A sysfs driven USB authorisation change can trigger a usb_set_configuration while a hub_event worker thread is running. This can result in a USB device being disabled just after it was configured and bringing down all the devices and impacting hardware and user processes that were established on