Re: kernel BUG at drivers/vhost/vhost.c:LINE! (2)
On Mon, Apr 9, 2018 at 11:28 AM, Stefan Hajnoczi wrote: > On Mon, Apr 09, 2018 at 05:44:36AM +0300, Michael S. Tsirkin wrote: >> On Mon, Apr 09, 2018 at 10:37:45AM +0800, Stefan Hajnoczi wrote: >> > On Sat, Apr 7, 2018 at 3:02 AM, syzbot >> > wrote: >> > > syzbot hit the following crash on upstream commit >> > > 38c23685b273cfb4ccf31a199feccce3bdcb5d83 (Fri Apr 6 04:29:35 2018 +) >> > > Merge tag 'armsoc-drivers' of >> > > git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc >> > > syzbot dashboard link: >> > > https://syzkaller.appspot.com/bug?extid=65a84dde0214b0387ccd >> > >> > To prevent duplicated work: I am working on this one. >> > >> > Stefan >> >> Do you want to try this patchset: >> https://lkml.org/lkml/2018/4/5/665 >> >> ? > > Thanks, I'll give it a shot. > > I also noticed a regression in commit > d65026c6c62e7d9616c8ceb5a53b68bcdc050525 ("vhost: validate log when > IOTLB is enabled") and am currently testing a fix. I have sent a fix: https://lkml.org/lkml/2018/4/9/390 Stefan ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: kernel BUG at drivers/vhost/vhost.c:LINE! (2)
On Mon, Apr 09, 2018 at 05:44:36AM +0300, Michael S. Tsirkin wrote: > On Mon, Apr 09, 2018 at 10:37:45AM +0800, Stefan Hajnoczi wrote: > > On Sat, Apr 7, 2018 at 3:02 AM, syzbot > > wrote: > > > syzbot hit the following crash on upstream commit > > > 38c23685b273cfb4ccf31a199feccce3bdcb5d83 (Fri Apr 6 04:29:35 2018 +) > > > Merge tag 'armsoc-drivers' of > > > git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc > > > syzbot dashboard link: > > > https://syzkaller.appspot.com/bug?extid=65a84dde0214b0387ccd > > > > To prevent duplicated work: I am working on this one. > > > > Stefan > > Do you want to try this patchset: > https://lkml.org/lkml/2018/4/5/665 > > ? Thanks, I'll give it a shot. I also noticed a regression in commit d65026c6c62e7d9616c8ceb5a53b68bcdc050525 ("vhost: validate log when IOTLB is enabled") and am currently testing a fix. Stefan signature.asc Description: PGP signature ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: kernel BUG at drivers/vhost/vhost.c:LINE! (2)
On Mon, Apr 09, 2018 at 10:37:45AM +0800, Stefan Hajnoczi wrote: > On Sat, Apr 7, 2018 at 3:02 AM, syzbot > wrote: > > syzbot hit the following crash on upstream commit > > 38c23685b273cfb4ccf31a199feccce3bdcb5d83 (Fri Apr 6 04:29:35 2018 +) > > Merge tag 'armsoc-drivers' of > > git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc > > syzbot dashboard link: > > https://syzkaller.appspot.com/bug?extid=65a84dde0214b0387ccd > > To prevent duplicated work: I am working on this one. > > Stefan Do you want to try this patchset: https://lkml.org/lkml/2018/4/5/665 ? -- MST ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Re: kernel BUG at drivers/vhost/vhost.c:LINE! (2)
On Sat, Apr 7, 2018 at 3:02 AM, syzbot wrote: > syzbot hit the following crash on upstream commit > 38c23685b273cfb4ccf31a199feccce3bdcb5d83 (Fri Apr 6 04:29:35 2018 +) > Merge tag 'armsoc-drivers' of > git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc > syzbot dashboard link: > https://syzkaller.appspot.com/bug?extid=65a84dde0214b0387ccd To prevent duplicated work: I am working on this one. Stefan > > So far this crash happened 4 times on upstream. > C reproducer: https://syzkaller.appspot.com/x/repro.c?id=6586748079439872 > syzkaller reproducer: > https://syzkaller.appspot.com/x/repro.syz?id=5974272052822016 > Raw console output: > https://syzkaller.appspot.com/x/log.txt?id=6224632407392256 > Kernel config: > https://syzkaller.appspot.com/x/.config?id=-5813481738265533882 > compiler: gcc (GCC) 8.0.1 20180301 (experimental) > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+65a84dde0214b0387...@syzkaller.appspotmail.com > It will help syzbot understand when the bug is fixed. See footer for > details. > If you forward the report, please keep this part and the footer. > > [ cut here ] > kernel BUG at drivers/vhost/vhost.c:1652! > invalid opcode: [#1] SMP KASAN > [ cut here ] > Dumping ftrace buffer: > kernel BUG at drivers/vhost/vhost.c:1652! >(ftrace buffer empty) > Modules linked in: > CPU: 1 PID: 4461 Comm: syzkaller684218 Not tainted 4.16.0+ #3 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > RIP: 0010:set_bit_to_user drivers/vhost/vhost.c:1652 [inline] > RIP: 0010:log_write+0x42a/0x4d0 drivers/vhost/vhost.c:1676 > RSP: 0018:8801b256f920 EFLAGS: 00010293 > RAX: 8801adc9e2c0 RBX: dc00 RCX: 85924a0f > RDX: RSI: 85924cea RDI: 0005 > RBP: 8801b256fa58 R08: 8801adc9e2c0 R09: ed003962412d > R10: 8801b256fad8 R11: 8801cb12096f R12: 0001 > R13: ed00364adf36 R14: R15: 8801b256fa30 > FS: 7fdf24b19700() GS:8801db10() knlGS: > CS: 0010 DS: ES: CR0: 80050033 > CR2: 20bf6000 CR3: 0001ae6a7000 CR4: 001406e0 > DR0: DR1: DR2: > DR3: DR6: fffe0ff0 DR7: 0400 > Call Trace: > vhost_update_used_flags+0x3af/0x4a0 drivers/vhost/vhost.c:1723 > vhost_vq_init_access+0x117/0x590 drivers/vhost/vhost.c:1763 > vhost_vsock_start drivers/vhost/vsock.c:446 [inline] > vhost_vsock_dev_ioctl+0x751/0x920 drivers/vhost/vsock.c:678 > vfs_ioctl fs/ioctl.c:46 [inline] > file_ioctl fs/ioctl.c:500 [inline] > do_vfs_ioctl+0x1cf/0x1650 fs/ioctl.c:684 > ksys_ioctl+0xa9/0xd0 fs/ioctl.c:701 > SYSC_ioctl fs/ioctl.c:708 [inline] > SyS_ioctl+0x24/0x30 fs/ioctl.c:706 > do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287 > entry_SYSCALL_64_after_hwframe+0x42/0xb7 > RIP: 0033:0x4456c9 > RSP: 002b:7fdf24b18da8 EFLAGS: 0297 ORIG_RAX: 0010 > RAX: ffda RBX: 006dac24 RCX: 004456c9 > RDX: 20f82ffc RSI: 4004af61 RDI: 001b > RBP: 006dac20 R08: R09: > R10: R11: 0297 R12: 6b636f73762d7473 > R13: 6f68762f7665642f R14: fffc R15: 0007 > Code: e8 7c 5e e4 fb 4c 89 ef e8 e4 16 06 fc 48 8d 85 58 ff ff ff 48 c1 e8 > 03 c6 04 18 f8 e9 46 ff ff ff 45 31 f6 eb 91 e8 56 5e e4 fb <0f> 0b e8 4f 5e > e4 fb 48 c7 c6 a0 a3 24 88 4c 89 ef e8 60 b6 10 > RIP: set_bit_to_user drivers/vhost/vhost.c:1652 [inline] RSP: > 8801b256f920 > RIP: log_write+0x42a/0x4d0 drivers/vhost/vhost.c:1676 RSP: 8801b256f920 > invalid opcode: [#2] SMP KASAN > ---[ end trace 0d0ff45aa44d8a23 ]--- > Dumping ftrace buffer: >(ftrace buffer empty) > Modules linked in: > > > --- > This bug is generated by a dumb bot. It may contain errors. > See https://goo.gl/tpsmEJ for details. > Direct all questions to syzkal...@googlegroups.com. > > syzbot will keep track of this bug report. > If you forgot to add the Reported-by tag, once the fix for this bug is > merged > into any tree, please reply to this email with: > #syz fix: exact-commit-title > If you want to test a patch for this bug, please reply with: > #syz test: git://repo/address.git branch > and provide the patch inline or as an attachment. > To mark this as a duplicate of another syzbot report, please reply with: > #syz dup: exact-subject-of-another-report > If it's a one-off invalid bug report, please reply with: > #syz invalid > Note: if the crash happens again, it will cause creation of a new bug > report. > Note: all commands must start from beginning of the line in the email body. ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists