Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752017AbdC0S1H (ORCPT ); Mon, 27 Mar 2017 14:27:07 -0400 Received: from mout.gmx.net ([212.227.17.22]:64755 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbdC0S04 (ORCPT ); Mon, 27 Mar 2017 14:26:56 -0400 Message-ID: <1490638711.26533.44.camel@gmx.de> Subject: Re: Random guest crashes since 5c34d002dcc7 ("virtio_pci: use shared interrupts for virtqueues") From: Mike Galbraith To: Christoph Hellwig Cc: Thorsten Leemhuis , mst@redhat.com, virtio-dev@lists.oasis-open.org, Linux Kernel Mailing List , rjones@redhat.com Date: Mon, 27 Mar 2017 20:18:31 +0200 In-Reply-To: <20170327170540.GA28715@lst.de> References: <20170323145622.GA31690@lst.de> <1490605644.14634.50.camel@gmx.de> <20170327170540.GA28715@lst.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:nratHRnThYunPqtGI4PpmRnGxsHGfdZrIp9x99shufkrhpNjxfT mgyhmRcy2jytqZCYGxeOiJ69IDkoa5mZRrtp6RESpJyIUAPVpRaGdWY6Y6Qxa7zEjPaxwjG +4lP3P4YKqcdf89HvV7S7aFL6TfVk3VaMQMlE+9Evp5/1PBEz5trl1Fpo5JLJbIQ62211/X 2/3JQdfSgw8QokuVPMkJg== X-UI-Out-Filterresults: notjunk:1;V01:K0:7W/BD16jIjk=:NsoxgUBon3JQgtJ2vNygR5 0gSYYNj6RqjKLrOTxaSffYoOzUoBv5MNxsBMb/clhaskjYKV40KztvUo23K5elUcGneDmYcV2 zF1FBcTBwA5VfpBjIbDpyz52OnRyRyDxx59VKBLPqLpoMaIf1Utk6LqbvNelg21OOU8Bo8kEK b+8zskNqE1jwUrPt6T3hwXpXLtg3hnQKe3A8DdKTPLiVXNS1/44zBo69GIjGm/JdE/YUZt7G1 XqRpKcq80dyCCZEOy4LG6XSncbwXfNJLdXoyI8tXIyCDEj9IPogeYACX394sjR1DuQWzjBzrN fi6Cx78Y1+wiP5Q/WTcHuFDJpdH6JpcFbMJqbOlhCJK2F4QLMNUGdWl4L+RU8dWgjcjPjpWLL GYFn2Wg+PJKwsC2dJO70IYMDpdiQHYJkIVgjtRnQIlMHpnQEZ92yQuip9aB3Ty7Uv1p5+kMXQ EK3Gj31dbg3bZQ5BE2G1YG0/0vyeuK7lEiNWFkcyQA9rFLlo2SoP1ADrizs8Npx8cdpBPaDbl KRdAJnxRvzo6Bl74Q7zNXCKWl5S2AdpWHJ2acWPJ6HIazynDI9IDqYZswULVt2i+R3R0lbpmn p9U9j4jI1VWO3oT/ZaSWBOrTaqOxVFAk3S/gIdIsMOizjJSPwRenSdXpcscTBKV0UhZkN0qIV JPH6DYJ1mOTMXumlGRdOhyDWymNDQC3/oUcaFUeSIA9ySPX5qle36BARPsrxw0kWrOP5dJYw8 I38u2tdUc/0gqVZ7ULhBE+mHbqDdWM4f6vKtkurxGK5AhOSVwbx6pOhKEu+Md8Nw8HTjSKzFe 76ftetT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2744 Lines: 39 On Mon, 2017-03-27 at 19:05 +0200, Christoph Hellwig wrote: > Hi Mike, > > does the patch below fix that issue for you? Thanks, I'll give it a go in the A.M. BTW, WRT RT woes with $subject, I tried booting a generic kernel with threadirqs, and bingo, same deal, just a bit more painful than for RT, where there's no watchdog moaning accompanying the (preemptible) spin. [ 28.346311] NMI watchdog: BUG: soft lockup - CPU#7 stuck for 22s! [kworker/7:1:108] [ 28.347536] Modules linked in: virtio_rng(E) virtio_blk(E) virtio_console(E) ata_piix(E) qxl(E) drm_kms_helper(E) syscopyarea(E) sysfillrect(E) sysimgblt(E) fb_sys_fops(E) ttm(E) ahci(E) libahci(E) drm(E) ehci_pci(E) uhci_hcd(E) ehci_hcd(E) usbcore(E) libata(E) virtio_pci(E) virtio_ring(E) virtio(E) 8139cp(E) floppy(E) mii(E) sg(E) scsi_mod(E) autofs4(E) [ 28.351160] CPU: 7 PID: 108 Comm: kworker/7:1 Tainted: G E 4.11.0-default #30 [ 28.352085] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.8.1-0-g4adadbd-20161202_174313-build11a 04/01/2014 [ 28.353547] Workqueue: events control_work_handler [virtio_console] [ 28.354450] task: ffff8802370d4440 task.stack: ffffc900010d8000 [ 28.355281] RIP: 0010:__send_control_msg+0xbd/0xd0 [virtio_console] [ 28.356005] RSP: 0018:ffffc900010dbd20 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 [ 28.356987] RAX: 0000000000000000 RBX: ffff880231c31ec8 RCX: ffff880231cb1000 [ 28.357866] RDX: 0000000000000001 RSI: ffffc900010dbd2c RDI: ffff880234f87400 [ 28.358738] RBP: ffffc900010dbd78 R08: 0000000001080020 R09: ffffc900010dbd30 [ 28.359718] R10: ffff88023fdddc00 R11: ffffffffffffffc8 R12: ffff880234f87400 [ 28.360653] R13: ffff880231c31ea8 R14: 0000000000000001 R15: 0000000000000003 [ 28.361510] FS: 0000000000000000(0000) GS:ffff88023fdc0000(0000) knlGS:0000000000000000 [ 28.362433] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 28.363177] CR2: 00007f4da0f40000 CR3: 0000000001c09000 CR4: 00000000001406e0 [ 28.363994] Call Trace: [ 28.364420] add_port+0x23f/0x3d0 [virtio_console] [ 28.365094] ? _raw_spin_unlock_irqrestore+0x24/0x40 [ 28.365765] handle_control_message.constprop.32+0x2c2/0x2e0 [virtio_console] [ 28.366622] control_work_handler+0x52/0xb7 [virtio_console] [ 28.367291] process_one_work+0x15c/0x440 [ 28.367869] worker_thread+0x137/0x4b0 [ 28.368426] kthread+0x10c/0x140 [ 28.368921] ? process_one_work+0x440/0x440 [ 28.369477] ? kthread_create_on_node+0x40/0x40 [ 28.370067] ret_from_fork+0x2c/0x40 [ 28.370611] Code: 57 e1 48 83 c4 30 31 c0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 4c 89 e7 e8 03 93 f7 ff eb 0e 4c 89 e7 e8 89 84 f7 ff 84 c0 75 d1 f3 90 <48> 8d 75 b4 4c 89 e7 e8 57 91 f7 ff 48 85 c0 74 e1 eb bc 0f 1f