lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sat, 24 Jul 2021 09:53:16 +1000
From:   Michael <msbroadf@...il.com>
To:     Shuah Khan <skhan@...uxfoundation.org>
Cc:     valentina.manea.m@...il.com, shuah@...nel.org,
        gregkh@...uxfoundation.org, linux-usb@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] vhci_hcd: USB port can get stuck in the disabled state

Here is an xbox controller. (Note this usb is just a mt76 usb->wifi
chip slightly modified).

Host commands
----------------------
sudo usbipd &
sudo modprobe usbip-host
sudo usbip bind -b 1-1.4

Client commands
-----------------------
sudo modprobe vhci-hcd
sudo usbip attach -r 192.168.1.189 -b 1-1.4

Host dmesg
-----------------
[   61.713164] usbcore: registered new device driver usbip-host
[   99.964196] mt76x2u 1-1.4:1.0: mac specific condition occurred
[  100.212477] usbip-host 1-1.4: usbip-host: register new device (bus 1 dev 3)
[  128.195578] usbip-host 1-1.4: stub up

Client dmesg
--------------------
[  184.764560] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(3)
[  184.764569] vhci_hcd vhci_hcd.0: devid(65539) speed(3) speed_str(high-speed)
[  184.764592] vhci_hcd vhci_hcd.0: Device attached
[  184.999634] usb 5-1: new high-speed USB device number 2 using vhci_hcd
[  185.127653] usb 5-1: SetAddress Request (2) to port 0
[  185.173988] usb 5-1: New USB device found, idVendor=045e,
idProduct=02e6, bcdDevice= 1.00
[  185.173996] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  185.174000] usb 5-1: Product: XBOX ACC
[  185.174003] usb 5-1: Manufacturer: Microsoft Inc.
[  185.174005] usb 5-1: SerialNumber: 203124
[  185.357262] cfg80211: Loading compiled-in X.509 certificates for
regulatory database
[  185.357936] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[  186.387801] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  187.287921] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  188.188011] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  189.088116] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  189.088169] usb 5-1: USB disconnect, device number 2
[  189.088789] mt76x2u 5-1:1.0: ASIC revision: ffffffff
[  189.089569] usbcore: registered new interface driver mt76x2u
[  189.988201] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  190.888294] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  190.888321] usb usb5-port1: attempt power cycle
[  192.104419] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  193.004503] usb usb5-port1: Cannot enable. Maybe the USB cable is bad?
[  193.004531] usb usb5-port1: unable to enumerate USB device


On Sat, 24 Jul 2021 at 02:29, Shuah Khan <skhan@...uxfoundation.org> wrote:
>
> On 7/21/21 8:27 PM, Michael wrote:
> > You can pass through any bluetooth dongle (or xbox wireless dongle) through usbip and it will cause this issue.
> >
> > For example, here is one of my customers https://www.virtualhere.com/comment/9432#comment-9432 <https://www.virtualhere.com/comment/9432#comment-9432> with the issue.
> >
> > The device is in the VDEV_ST_USED state when a reset occurs and so its never re-enabled
> >
> > Furthermore there is a bug in the line pr_err("vhci_device speed not set\n");
> > (L479) because resetting a full-speed device is not an error.
> >
>
> Can you provide me the full demsg from host and client including the part
> where device is attached? I assume usbip tools from Linux sources are used?
>
> Also send me lsusb output on host and client
>
> thanks,
> -- Shuah

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ