Re: usbcore: NULL pointer dereference after detaching USB disk with linux 4.17

2018-05-14 Thread Mathias Nyman
On 11.05.2018 23:06, Jordan Glover wrote: On May 11, 2018 6:14 PM, Mathias Nyman wrote: I think that just adding the below code should be enough for 4.17 diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 72ebbc9..32cd52c 100644 --- a/drivers/usb/host/xhci-hub.c +

Re: usbcore: NULL pointer dereference after detaching USB disk with linux 4.17

2018-05-11 Thread Jordan Glover
On May 11, 2018 6:14 PM, Mathias Nyman wrote: > > I think that just adding the below code should be enough for 4.17 > > diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c > > index 72ebbc9..32cd52c 100644 > > --- a/drivers/usb/host/xhci-hub.c > > +++ b/drivers/usb/host/xhc

Re: usbcore: NULL pointer dereference after detaching USB disk with linux 4.17

2018-05-11 Thread Mathias Nyman
On 11.05.2018 15:11, Jordan Glover wrote: On May 11, 2018 1:46 PM, Mathias Nyman wrote: Hi On 10.05.2018 14:49, Jordan Glover wrote: Hello, Detaching plugged external usb disk with: "udisksctl power-off --block-device " causes NULL pointer dereference and kernel hang. Tested with 4.17-rc4

Re: usbcore: NULL pointer dereference after detaching USB disk with linux 4.17

2018-05-11 Thread Jordan Glover
On May 11, 2018 1:46 PM, Mathias Nyman wrote: > Hi > > On 10.05.2018 14:49, Jordan Glover wrote: > > > Hello, > > > > Detaching plugged external usb disk with: "udisksctl power-off > > --block-device " causes NULL pointer dereference and kernel hang. > > Tested with 4.17-rc4 on Manjaro Linux

Re: usbcore: NULL pointer dereference after detaching USB disk with linux 4.17

2018-05-11 Thread Mathias Nyman
Hi On 10.05.2018 14:49, Jordan Glover wrote: Hello, Detaching plugged external usb disk with: "udisksctl power-off --block-device " causes NULL pointer dereference and kernel hang. Tested with 4.17-rc4 on Manjaro Linux config and my own custom config with two different usb disks. It doesn't