Activity log for bug #1684239

Date Who What changed Old value New value Message
2017-04-19 17:45:35 zappacor bug added bug
2017-04-24 08:57:40 Thomas Huth affects qemu qemu (Ubuntu)
2017-04-24 09:41:02 Christian Ehrhardt  nominated for series Ubuntu Xenial
2017-04-24 09:41:02 Christian Ehrhardt  bug task added qemu (Ubuntu Xenial)
2017-04-24 09:41:11 Christian Ehrhardt  qemu (Ubuntu): status New Fix Released
2017-04-24 09:41:14 Christian Ehrhardt  qemu (Ubuntu Xenial): importance Undecided Medium
2017-04-24 09:41:17 Christian Ehrhardt  qemu (Ubuntu Xenial): status New Triaged
2017-04-24 09:47:19 Christian Ehrhardt  qemu (Ubuntu Xenial): assignee ChristianEhrhardt (paelzer)
2017-04-25 09:20:56 Christian Ehrhardt  bug added subscriber Ubuntu Server Team
2017-04-26 08:24:36 Christian Ehrhardt  description Hi guys, I'm getting this qemu crash message: >>> qemu-system-x86_64: /build/qemu-TziMIO/qemu-2.5+dfsg/block/vvfat.c:2290: commit_direntries: Assertion `!strncmp(s->directory.pointer, "QEMU", 4)' failed. >>> Aborted (core dumped) when launching qemu with this options for a VVFAT drive: >>> -drive file=fat:rw:./ROOT,if=virtio (same happens when using cache=none and/or if=ide) "uname -a" system info is: >>> Linux RJZ-WRK-LNX 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux and "qemu --version" is: >>> QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.10), Copyright (c) 2003-2008 Fabrice Bellard Not sure what logs to attach but I'll be glad to upload whatever needed. Thanks in advance for you help, Rolando [Impact] * enabling vvfat with rw set breaks qemu once it writes something * Fix is a backport of a small upstream fix [Test Case] * 1. get a guest that works (via uvtoools-libvirt or whatever you prever) * 2. get the qemu commandline that it is started with, in my case: $ sudo kvm -m 1024 -drive file=/dev/sdb,format=raw,cache=none,index=0,media=disk * 3. create a dir and add a file to check to share in vvfat mode later $ mkdir /tmp/sharevvfat $ echo host > /tmp/sharevvfat/hostfoo * 4. shutdown guest and start it again with the path as vvfat set to share rw mode, to do so append -drive format=vvfat,file=fat:rw:/tmp/sharevvfat/,if=virtio * in the guest mount the block device and write to it $ mount /dev/vdc1 /mnt $ echo guest > /mnt/guestfoo $ sync Currently crashes: qemu-system-x86_64: /build/qemu-iZpOAh/qemu-2.5+dfsg/block/vvfat.c:2290: commit_direntries: Assertion `!strncmp(s->directory.pointer, "QEMU", 4)' failed. Aborted (core dumped) Expected: work to write files from guest and getting no fails/crashes [Regression Potential] * I'd consider the potential next-to-none for general qemu/kvm use cases and low for cases using vvfat for the following reasons: * The fix is local and only executed in vvfat code, so affecting other qemu use cases should be next to impossible * code is upstream and in further Ubuntu Releases quite a while without issues showing up * General regression checks showed no issue [Other Info] * n/a --- Hi guys, I'm getting this qemu crash message: >>> qemu-system-x86_64: /build/qemu-TziMIO/qemu-2.5+dfsg/block/vvfat.c:2290: commit_direntries: Assertion `!strncmp(s->directory.pointer, "QEMU", 4)' failed. >>> Aborted (core dumped) when launching qemu with this options for a VVFAT drive: >>> -drive file=fat:rw:./ROOT,if=virtio (same happens when using cache=none and/or if=ide) "uname -a" system info is: >>> Linux RJZ-WRK-LNX 4.4.0-72-generic #93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux and "qemu --version" is: >>> QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.10), Copyright (c) 2003-2008 Fabrice Bellard Not sure what logs to attach but I'll be glad to upload whatever needed. Thanks in advance for you help, Rolando
2017-04-26 08:31:39 Christian Ehrhardt  qemu (Ubuntu Xenial): status Triaged Fix Committed
2017-05-03 12:59:46 Christian Ehrhardt  bug added subscriber Marc Deslauriers
2017-05-03 13:51:11 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2017-05-03 13:51:16 Robie Basak bug added subscriber SRU Verification
2017-05-03 13:51:19 Robie Basak tags directory.pointer direntries vvfat directory.pointer direntries verification-needed vvfat
2017-05-08 15:37:51 Christian Ehrhardt  bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=419929
2017-05-08 15:38:11 Christian Ehrhardt  tags directory.pointer direntries verification-needed vvfat directory.pointer direntries verification-done vvfat
2017-05-16 13:43:42 Launchpad Janitor qemu (Ubuntu Xenial): status Fix Committed Fix Released
2017-05-16 13:43:55 Andy Whitcroft removed subscriber Ubuntu Stable Release Updates Team