Michael Tokarev: > On Tue, 17 Jan 2017 18:19:00 +0000 anonym <ano...@riseup.net> wrote: >> It seems the fix of CVE-2016-8576 (Debian bug #840343) introduced a >> regression in QEMU 2.8. While formatting partitions (on virtual USB >> drives and the nec-xhci virtual USB controller) to EXT4, I have >> observed errors like these: >> >> kernel: sd 8:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_ABORT >> driverbyte=DRIVER_OK >> kernel: sd 8:0:0:0: [sda] tag#0 CDB: Write(10) 2a 00 00 66 49 86 >> 00 08 00 00 >> kernel: blk_update_request: I/O error, dev sda, sector 6703494 >> kernel: Buffer I/O error on dev dm-0, logical block 1573254, lost >> async page write > > I tried to reproduce this, but can not. What's needed to reproduce it?
Sorry for the complicated reproducer, but here goes: 1. Download the latest Tails ISO image from: http://dl.amnesia.boum.org/tails/stable/ 2. Boot the Tails ISO image in a VM that has the nec-xhci USB controller 3. At the GDM greeter, configure an administration password (useful for gathering debug info not accessible by the default user) 4. Attach a virtual USB drive of at least 4 GB capacity through nec-xhci 5. Start Tails Installer via the GNOME Applications menu -> Tails -> Tails Installer 6. Install Tails to the USB drive You'll notice that the installation never finishes, and you'll see the error reported above via `sudo journalctl`. Alternatively, since Tails Installer is packaged in Debian (`apt install tails-installer`) you might find it easier to try this in any Debian VM with the nec-xhci USB controller. >> Raising TRB_LINK_LIMIT fixes the limit, but the new value was >> admittedly arbitrarily chosen. > > Note upstream still ships with current limit of 4 links. Yes. I sent my patch upstream though: https://lists.nongnu.org/archive/html/qemu-devel/2017-01/msg03433.html Cheers!