Received: from eggs.gnu.org ([2001:4830:134:3::10]:58017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCqAp-0007hA-GG for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:54:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCqAm-0002Kj-9y for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:54:55 -0500 Received: from pb-smtp2.pobox.com ([64.147.108.71]:64064 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cCqAm-0002HZ-3R for qemu-devel@nongnu.org; Fri, 02 Dec 2016 10:54:52 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id EFC7C5280D for ; Fri, 2 Dec 2016 10:54:48 -0500 (EST) Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id E6DEB5280B for ; Fri, 2 Dec 2016 10:54:48 -0500 (EST) Received: from Brians-MacBook-Air-2.local (unknown [84.92.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 23F3B52808 for ; Fri, 2 Dec 2016 10:54:48 -0500 (EST) References: From: Brian Candler Message-ID: <0afa4b21-df91-8b52-2ee2-492531f6ffc8@pobox.com> Date: Fri, 2 Dec 2016 15:54:46 +0000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Livelock with qemu 2.5.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On 02/12/2016 14:19, Brian Candler wrote: > I am running a VM under qemu 2.5.0/Ubuntu 16.04. The guest VM is also > Ubuntu 16.04, with ZFS and LXD Correction: it's btrfs (not zfs). I re-ran the test with qemu 2.7.0, and this time got a btrfs kernel panic in the guest [below]. The guest is running kernel 4.4.0-45, which I can update to 4.4.0-51 and retry. But at the moment this looks like a kernel btrfs bug, not a qemu bug. Sorry for the noise. Regards, Brian. [ 808.782266] BUG: unable to handle kernel [ 808.786126] ------------[ cut here ]------------ [ 808.786152] WARNING: CPU: 2 PID: 25962 at /build/linux-kOWph6/linux-4.4.0/fs/btrfs/inode.c:9374 btrfs_rename2+0x386/0x7b0 [btrfs]() [ 808.786160] BTRFS: Transaction aborted (error -2) [ 808.786160] Modules linked in: [ 808.786161] binfmt_misc [ 808.786162] veth [ 808.786163] ufs [ 808.786163] qnx4 [ 808.786163] hfsplus [ 808.786164] hfs [ 808.786164] minix [ 808.786165] ntfs [ 808.786165] msdos [ 808.786166] jfs [ 808.786166] xfs [ 808.786167] xt_CHECKSUM [ 808.786168] iptable_mangle [ 808.786168] xt_comment [ 808.786169] xt_tcpudp [ 808.786169] bridge [ 808.786170] stp [ 808.786170] llc [ 808.786170] ip6table_filter [ 808.786171] ip6t_MASQUERADE [ 808.786171] nf_nat_masquerade_ipv6 [ 808.786172] ip6table_nat [ 808.786173] nf_conntrack_ipv6 [ 808.786173] nf_defrag_ipv6 [ 808.786173] nf_nat_ipv6 [ 808.786174] ip6_tables [ 808.786174] iptable_filter [ 808.786175] ipt_MASQUERADE [ 808.786175] nf_nat_masquerade_ipv4 [ 808.786176] iptable_nat [ 808.786176] nf_conntrack_ipv4 [ 808.786177] nf_defrag_ipv4 [ 808.786177] nf_nat_ipv4 [ 808.786178] nf_nat [ 808.786178] nf_conntrack [ 808.786179] ip_tables [ 808.786179] x_tables [ 808.786180] ppdev [ 808.786180] kvm_intel [ 808.786181] input_leds [ 808.786181] kvm [ 808.786182] irqbypass [ 808.786182] joydev [ 808.786182] parport_pc [ 808.786183] serio_raw [ 808.786184] 8250_fintek [ 808.786184] parport [ 808.786185] mac_hid [ 808.786185] i2c_piix4 [ 808.786185] ib_iser [ 808.786186] rdma_cm [ 808.786186] iw_cm [ 808.786187] ib_cm [ 808.786187] ib_sa [ 808.786188] ib_mad [ 808.786188] ib_core [ 808.786189] ib_addr [ 808.786189] iscsi_tcp [ 808.786190] libiscsi_tcp [ 808.786190] libiscsi [ 808.786191] scsi_transport_iscsi [ 808.786191] autofs4 [ 808.786191] btrfs [ 808.786192] raid10 [ 808.786192] raid456 [ 808.786193] async_raid6_recov [ 808.786193] async_memcpy [ 808.786194] async_pq [ 808.786194] async_xor [ 808.786195] async_tx [ 808.786195] xor [ 808.786196] raid6_pq [ 808.786196] libcrc32c [ 808.786197] raid1 [ 808.786197] raid0 [ 808.786198] multipath [ 808.786198] linear [ 808.786199] cirrus [ 808.786199] crct10dif_pclmul [ 808.786200] crc32_pclmul [ 808.786200] ttm [ 808.786200] drm_kms_helper [ 808.786201] aesni_intel [ 808.786201] syscopyarea [ 808.786202] sysfillrect [ 808.786202] aes_x86_64 [ 808.786203] sysimgblt [ 808.786203] lrw [ 808.786204] fb_sys_fops [ 808.786204] gf128mul [ 808.786205] glue_helper [ 808.786205] ablk_helper [ 808.786206] cryptd [ 808.786206] psmouse [ 808.786206] drm [ 808.786207] virtio_scsi [ 808.786207] pata_acpi [ 808.786208] floppy [ 808.786211] CPU: 2 PID: 25962 Comm: dpkg Not tainted 4.4.0-45-generic #66-Ubuntu [ 808.786212] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/2014 [ 808.786213] 0000000000000286 [ 808.786213] 0000000039ded762 [ 808.786214] ffff88010184bce0 [ 808.786214] ffffffff813f1fe3 [ 808.786215] ffff88010184bd28 [ 808.786215] ffffffffc03e8220 [ 808.786216] ffff88010184bd18 [ 808.786216] ffffffff81081212 [ 808.786217] ffff880138389538 [ 808.786217] 00000000000145e8 [ 808.786218] ffff880115ef1538 [ 808.786218] ffff88016315c418 [ 808.786219] Call Trace: [ 808.786224] [] dump_stack+0x63/0x90 [ 808.786227] [] warn_slowpath_common+0x82/0xc0 [ 808.786229] [] warn_slowpath_fmt+0x5c/0x80 [ 808.786246] [] btrfs_rename2+0x386/0x7b0 [btrfs] [ 808.786249] [] ? __inode_permission+0x1/0xb0 [ 808.786251] [] vfs_rename+0x58c/0x8e0 [ 808.786254] [] ? security_kernel_fw_from_file+0x40/0x70 [ 808.786255] [] SyS_rename+0x39f/0x3c0 [ 808.786259] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 808.786260] ---[ end trace 9067db09b6daeaab ]--- [ 808.786262] BTRFS: error (device sda1) in btrfs_rename:9374: errno=-2 No such entry [ 808.786263] BTRFS info (device sda1): forced readonly [ 808.961571] paging request [ 808.963405] at fffffffffffffe58 [ 808.965154] IP: [] __btrfs_unlink_inode+0x1c/0x470 [btrfs] [ 808.967516] PGD 1e0d067 PUD 1e0f067 PMD 0 [ 808.969640] Oops: 0000 [#1] SMP [ 808.971654] Modules linked in: binfmt_misc veth ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs xt_CHECKSUM iptable_mangle xt_comment xt_tcpudp bridge stp llc ip6table_filter ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6_tables iptable_filter ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables ppdev kvm_intel input_leds kvm irqbypass joydev parport_pc serio_raw 8250_fintek parport mac_hid i2c_piix4 ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi autofs4 btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear cirrus crct10dif_pclmul [ 808.991391] crc32_pclmul ttm drm_kms_helper aesni_intel syscopyarea sysfillrect aes_x86_64 sysimgblt lrw fb_sys_fops gf128mul glue_helper ablk_helper cryptd psmouse drm virtio_scsi pata_acpi floppy [ 808.997652] CPU: 0 PID: 20735 Comm: dpkg Tainted: G W 4.4.0-45-generic #66-Ubuntu [ 809.000758] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.9.3-0-ge2fc41e-prebuilt.qemu-project.org 04/01/2014 [ 809.006530] task: ffff880287caac40 ti: ffff8800733a8000 task.ti: ffff8800733a8000 [ 809.009620] RIP: 0010:[] [] __btrfs_unlink_inode+0x1c/0x470 [btrfs] [ 809.012942] RSP: 0018:ffff8800733abd08 EFLAGS: 00010282 [ 809.015766] RAX: ffff8802eb6dfdb0 RBX: ffff88010c748598 RCX: 0000000000000000 [ 809.042530] RDX: ffff88010c748598 RSI: ffff880256bc0000 RDI: ffff8803aeea9850 [ 809.045379] RBP: ffff8800733abd80 R08: 0000000000000000 R09: 00000000ffffffff [ 809.048307] R10: 00000000157d46a0 R11: 0000000000000002 R12: 0000000000000000 [ 809.051271] R13: ffff8801e5acf6e0 R14: 0000000000000000 R15: ffff88014d7f2f00 [ 809.054167] FS: 00007f0ab8677800(0000) GS:ffff8803bfc00000(0000) knlGS:0000000000000000 [ 809.058724] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 809.071232] CR2: fffffffffffffe58 CR3: 0000000307f90000 CR4: 00000000003406f0 [ 809.074297] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 809.086657] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 809.089377] Stack: [ 809.091519] ffff88014d7f2f38 ffff8803aeea9850 ffff88000000000e 000000000000238b [ 809.094282] 386c8800733abd80 7d0c000000000001 000000000000007b ffffffff810caa91 [ 809.097019] 0000000000000002 ffffea000c9e7080 ffff88010c748598 000000000001386c [ 809.099746] Call Trace: [ 809.101950] [] ? __raw_callee_save___pv_queued_spin_unlock+0x11/0x20 [ 809.104744] [] btrfs_rename2+0x344/0x7b0 [btrfs] [ 809.107358] [] vfs_rename+0x58c/0x8e0 [ 809.109810] [] ? security_kernel_fw_from_file+0x40/0x70 [ 809.112490] [] SyS_rename+0x39f/0x3c0 [ 809.115029] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 809.117687] Code: ff e9 41 ff ff ff 48 8b 53 40 eb eb 0f 1f 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89 cc 53 48 89 d3 48 83 ec 50 <4c> 8b a9 58 fe ff ff 65 48 8b 04 25 28 00 00 00 48 89 44 24 48 [ 809.124816] RIP [] __btrfs_unlink_inode+0x1c/0x470 [btrfs] [ 809.127667] RSP [ 809.130057] CR2: fffffffffffffe58 [ 809.135772] ---[ end trace 9067db09b6daeaac ]--- [ 809.211377] lxdbr0: port 33(vethTL9MO4) entered forwarding state