RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1404232 - usbdk: Fix removal of redirection on hub unplug
Summary: usbdk: Fix removal of redirection on hub unplug
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: spice-usbdk-win
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Dmitry Fleytman
QA Contact: SPICE QE bug list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-13 12:55 UTC by Uri Lublin
Modified: 2019-10-10 14:11 UTC (History)
9 users (show)

Fixed In Version: spice-usbdk-win-1.0-15 spice-client-msi-4.1-2
Doc Type: Enhancement
Doc Text:
Previously, when a USB hub containing a redirected device was unplugged, spice-usbdk-win failed to clean up the redirected device. When the USB hub and its attached device were replugged, the device could not be redirected. In this release, the issue has been fixed. spice-usbdk-win will now clean up the redirected device as required. When the USB hub and the USB device are re-plugged, the device can be redirected to the guest.
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1059 0 normal SHIPPED_LIVE spice-client-msi bug fix and enhancement update for RHV 4.1 2017-04-18 20:59:01 UTC

Description Uri Lublin 2016-12-13 12:55:10 UTC
Description of problem:

  See upstream issue:
    https://github.com/daynix/UsbDk/issues/29

  The commit log of the fix (commit bf79d6e9425b1587aaa542c3)

  On unplug of USB hub that contains a redirected
  device, removal of redirection is started when redirected
  device PDO is still present in UsbDk device lists.
    
  In this case UsbDk will try to send reset IOCTL to this device
  and system will return STATUS_NO_SUCH_DEVICE error code.

  This commit changes behavior of redirection removal
  logic in a way that it will not interrupt removal
  process when such an error is returned by reset.

Upstream issue:
  https://github.com/daynix/UsbDk/issues/29


Version-Release number of selected component (if applicable):
  spice-usbdk-0.1-14

How reproducible:
Consistently, I guess, when a USB hub is unplugged

Steps to Reproduce:
  from upstream issue (report is for specific devices):
    https://github.com/daynix/UsbDk/issues/29#issuecomment-242362095

1. connect USBHUB(VID_05E3&PID_0608) & USBMemory(VID_04BB&PID_0CCB)
2. redirect USBMemory
3. disconnect USBHUB(with USBMemory)
4. press return key (exit UsbDkController.exe)
5. connect USBHUB(VID_05E3&PID_0608) & USBMemory(VID_04BB&PID_0CCB)
6. redirect USBMemory
7. redirect of USB device failed

Actual results:
USB device fails to redirect on 7
(UsbDk does not clean up the device on 3)

Expected results:
USB device can be redirected on 7
(UsbDk cleans up everything on 3)


Additional info:
    Fixed by commit bf79d6e9425b1587aaa542c3

Comment 4 Emma Heftman 2017-03-14 13:00:23 UTC
Hi Uri. Could you please set the requires_doc_text flag to - if no doc text is required, or ? if text should appear in the advisory. Then add the text to Doc Text field. Thanks.

Comment 5 Bill Sanford 2017-03-17 12:30:07 UTC
Verified in  spice-client-msi-4.1-4


Note You need to log in before you can comment on or make changes to this bug.