Thread (6 messages) read the whole thread 6 messages, 3 authors, 2021-07-26

Re: Possible race in 4.14 xhci stack

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-07-21 08:22:22

On Wed, Jul 21, 2021 at 07:51:58AM +0000, Schmid, Carsten wrote:
Hi Greg,
quoted
quoted
Hi Mathias,

i got a NULL pointer deref in the usbfs and analyzed it.
The connected device seemed to have trouble on USB transmissions.
However, I have the impression that there is a race between finishing URB handling and disconnection of devices.
In detail:
[ 4979.029666] xhci_hcd 0000:00:15.0: USB transfer error. Maybe the USB cable is bad?
Did your cable die?

And 4.14 is quite old, what about 5.13?

thanks,

greg k-h
That was reported from a device in the field.
Yes, a defective cable is bad, but shouldn't the kernel's health avoid a NULL pointer deref?
Yes, I am not disagreeing about that, patches always welcome :)

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help