Re: USBIP is claiming all my USB devices - Commit 7a2f2974f265 is broken

From: Greg Kroah-Hartman
Date: Sat Oct 03 2020 - 13:26:55 EST


On Sat, Oct 03, 2020 at 01:18:36PM -0400, Byron Stanoszek wrote:
> All,
>
> I was testing Linux 5.9-rc7 today when I realized that none of my USB devices
> were responding anymore. For instance, my mouse does not respond and its usual
> red LED is not on.
>
> Reverting git commit 7a2f2974f265 solved the problem for me.
>
> I have USBIP enabled in my kernel config. Alternatively, removing the following
> CONFIG variables also resolved the problem for me:
>
> -CONFIG_USBIP_CORE=y
> -CONFIG_USBIP_HOST=y
> -CONFIG_USBIP_VHCI_HCD=y
> -CONFIG_USBIP_VHCI_HC_PORTS=8
> -CONFIG_USBIP_VHCI_NR_HCS=1
>
> I do not have any userland usbip daemons running on this PC.
>
> I attached before-and-after versions of my "dmesg", "lsusb", and "lsusb -t"
> outputs to demonstrate the problem. Versions marked .1 are with commit
> 7a2f2974f265 reverted. Versions marked .2 are without any changes to usbip.
>
> # grep usbip dmesg.1
> dmesg.1:usbcore: registered new device driver usbip-host
>
> # grep usbip dmesg.2
> dmesg.2:usbcore: registered new device driver usbip-host
> dmesg.2:usbip-host 1-8: 1-8 is not in match_busid table... skip!
> dmesg.2:usbip-host 1-13: 1-13 is not in match_busid table... skip!
>
> > From lsusb_t.1:
>
> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
> |__ Port 8: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
> |__ Port 13: Dev 3, If 1, Class=Wireless, Driver=btusb, 12M
> |__ Port 13: Dev 3, If 0, Class=Wireless, Driver=btusb, 12M
>
> > From lsusb_t.2:
>
> /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
>
> (no devices are listed when they should be)
>
> I also attached my .config for review.

Can you try the patches listed here:
https://lore.kernel.org/r/20201003142651.GA794077@xxxxxxxxx

As this issue should be solved with them. Hopefully :)

thanks,

greg k-h