Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 561414 - Writes to virtual usb-storage produce I/O errors
Writes to virtual usb-storage produce I/O errors
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
6.0
All Linux
medium Severity high
: beta
: 6.2
Assigned To: Gerd Hoffmann
Virtualization Bugs
:
: 592916 (view as bug list)
Depends On: 711354
Blocks: 575298 580953
  Show dependency treegraph
 
Reported: 2010-02-03 11:05 EST by Kevin Wolf
Modified: 2013-01-09 17:16 EST (History)
17 users (show)

See Also:
Fixed In Version: qemu-kvm-0.12.1.2-2.169.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-12-06 10:42:12 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Guest kernel logs (5.10 KB, application/octet-stream)
2010-02-03 11:05 EST, Kevin Wolf
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1531 normal SHIPPED_LIVE Moderate: qemu-kvm security, bug fix, and enhancement update 2011-12-05 20:23:30 EST

  None (edit)
Description Kevin Wolf 2010-02-03 11:05:42 EST
Created attachment 388558 [details]
Guest kernel logs

Description of problem:
When I write to a virtual USB disk, Linux outputs lots of I/O errors and resets in the kernel log. In the end, the transferred data seems to be fine, though. This was tested with a RHEL 5.3 and a Fedora 11 guest. It happens both with UHCI and OHCI emulation.

Steps to Reproduce:
1. Start a guest with a small scratch image (-device usb-storage,drive=usb -drive id=usb,if=none,file=/tmp/scratch.img)
2. In the guest, write to the disk: dd if=/dev/urandom of=/dev/sda
3. If the messages don't appear on the console, use dmesg
  
Actual results:
The data is correctly transferred (you can verify by writing into a temporary file first and md5sum this file and the scratch image on the host), but lots of error messages appear.

Expected results:
No error messages should appear.

Additional info:
Attaching the kernel logs of the guest.
Comment 2 RHEL Product and Program Management 2010-02-03 11:37:21 EST
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.
Comment 3 Kevin Wolf 2010-05-20 10:42:03 EDT
*** Bug 592916 has been marked as a duplicate of this bug. ***
Comment 6 Bill Burns 2010-05-25 06:43:41 EDT
Kevin, Thanks for the info. It is strange in that you reported it and someone else elevated it as a test blocker. I moved the target to RC, but left as a blocker. Putting it in needinfo to get justification.

caiqian, when asserting blocker, please add a comment with some justification.
Is this a really a blocker? If not please drop the flag.
Comment 12 Amit Shah 2010-06-24 05:25:01 EDT
Which tests are blocked as a result of this bug? We think this is not a blocker and there's no requirement to support usb storage devices.
Comment 13 Qian Cai 2010-06-24 05:33:47 EDT
Driver update program tests that used a KVM-based automation to test if we can load the driver disks/ISOs in the installer from a USB device.
Comment 19 Gerd Hoffmann 2011-05-16 07:26:31 EDT
There used to be a few issues ...
upstream/master should be fine now in case anyone cares to try.

RHEL-6.2 needs tons of USB backports for EHCI anyway,
I'll go fix this along the way.
Comment 21 Gerd Hoffmann 2011-06-06 02:33:55 EDT
devel_acked (see Devel Whiteboard)
Comment 24 juzhang 2011-06-13 05:14:30 EDT
Tested with qemu-kvm-0.12.1.2-2.163.el6.x86_64,usb-storage is disabled.
fixed version should be enable
Comment 31 errata-xmlrpc 2011-12-06 10:42:12 EST
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.

http://rhn.redhat.com/errata/RHSA-2011-1531.html

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