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 801284 - usb-host accepting out-of-range values for various parameters ending an invalid usb device occupy an ehci port
Summary: usb-host accepting out-of-range values for various parameters ending an inval...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 7.0
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-08 07:44 UTC by Shaolong Hu
Modified: 2015-03-05 09:41 UTC (History)
8 users (show)

Fixed In Version: qemu 2.1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 09:41:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0624 0 normal SHIPPED_LIVE Important: qemu-kvm-rhev security, bug fix, and enhancement update 2015-03-05 14:37:36 UTC

Description Shaolong Hu 2012-03-08 07:44:31 UTC
Description of problem:
------------------------
Usb-host accepting out-of-range values for various parameters, and the invalid usb device occupies an echi port. 


Version-Release number of selected component (if applicable):
--------------------------------------------------------------
qemu-kvm-0.12.1.2-2.238.el6.x86_64


How reproducible:
-----------------
100%

Steps to Reproduce:
--------------------
1.boot guest with "-device usb-ehci"
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

  
Actual results:
----------------
  Device 1.0, Port 1, Speed 1.5 Mb/s, Product USB Host Device
  Device 1.0, Port 2, Speed 1.5 Mb/s, Product USB Host Device


Expected results:
-----------------
Parameter range check, host usb device existing check.

Comment 5 Ronen Hod 2013-10-30 09:52:51 UTC
Needs to be fixed. After upstream.

Comment 6 Gerd Hoffmann 2013-12-12 13:49:22 UTC
http://patchwork.ozlabs.org/patch/300664/

Comment 10 huiqingding 2014-08-04 07:00:19 UTC
Reproduce this bug using the following version:
qemu-kvm-rhev-2.0.0-3.el7ev.x86_64
kernel-3.10.0-140.el7.x86_64

Steps to Reproduce:
1. boot a vm with "-device usb-ehci"
# /usr/libexec/qemu-kvm -device usb-ehci -monitor stdio

2. add two usb device with error parameters
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

Results:
after step2, no error info is output and the devices can be added as following:
(qemu) info usb
  Device 0.0, Port 1, Speed 1.5 Mb/s, Product USB Host Device
  Device 0.0, Port 2, Speed 1.5 Mb/s, Product USB Host Device

Comment 11 huiqingding 2014-08-04 07:03:36 UTC
Test this bug on an intel host using the following version:
qemu-kvm-rhev-2.1.0-3.el7ev.preview.x86_64
kernel-3.10.0-140.el7.x86_64

Steps to Reproduce:
1. boot a vm with "-device usb-ehci"
# /usr/libexec/qemu-kvm -device usb-ehci -monitor stdio

2. add two usb device with error parameters
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

Results:
after step2, the devices cannot be added as following:
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
hostaddr out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3
productid out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) info usb
(qemu)

Comment 12 huiqingding 2014-08-04 07:04:18 UTC
Test this bug on an amd host using the following version:
qemu-kvm-rhev-2.1.0-3.el7ev.preview.x86_64
kernel-3.10.0-140.el7.x86_64

Steps to Reproduce:
1. boot a vm with "-device usb-ehci"
# /usr/libexec/qemu-kvm -device usb-ehci -monitor stdio

2. add two usb device with error parameters
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

Results:
after step2, the devices cannot be added as following:
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
hostaddr out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3
productid out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) info usb
(qemu)

Comment 14 huiqingding 2014-08-26 01:37:26 UTC
Test this bug on an amd host using the following version:
qemu-kvm-rhev-2.1.0-2.el7.x86_64
kernel-3.10.0-145.el7.x86_64

Steps to Reproduce:
1. boot a vm with "-device usb-ehci"
# /usr/libexec/qemu-kvm -device usb-ehci -monitor stdio

2. add two usb device with error parameters
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

Results:
after step2, the devices cannot be added as following:
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
hostaddr out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3
productid out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) info usb
(qemu)

Comment 15 huiqingding 2014-08-26 01:38:38 UTC
Test this bug on an intel host using the following version:
qemu-kvm-rhev-2.1.0-2.el7.x86_64
kernel-3.10.0-145.el7.x86_64

Steps to Reproduce:
1. boot a vm with "-device usb-ehci"
# /usr/libexec/qemu-kvm -device usb-ehci -monitor stdio

2. add two usb device with error parameters
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3

Results:
after step2, the devices cannot be added as following:
(qemu) device_add usb-host,hostbus=423,hostaddr=432,id=u4
hostaddr out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) device_add usb-host,vendorid=21231,productid=11231333,id=test-3
productid out of range
Device initialization failed.
Device 'usb-host' could not be initialized
(qemu) info usb
(qemu)

Comment 16 huiqingding 2014-08-26 01:39:37 UTC
Based on the test result of comment 14 and comment 15, I think this bug has been fixed.

Comment 19 errata-xmlrpc 2015-03-05 09:41:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0624.html


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