syzbot


kernel BUG at drivers/vhost/vhost.c:LINE!

Status: fixed on 2018/04/06 16:37
Subsystems: kvm net virt
[Documentation on labels]
Reported-by: syzbot+6304bf97ef436580fede@syzkaller.appspotmail.com
Fix commit: d65026c6c62e vhost: validate log when IOTLB is enabled
First crash: 2218d, last: 2198d
Discussions (11)
Title Replies (including bot) Last reply
[PATCH 4.9 000/310] 4.9.94-stable review 325 (325) 2018/07/12 06:27
[PATCH 4.16 00/68] 4.16.3-stable review 77 (77) 2018/04/19 06:40
[PATCH 4.15 00/53] 4.15.18-stable review 58 (58) 2018/04/18 15:39
[PATCH 4.14 00/49] 4.14.35-stable review 54 (54) 2018/04/18 15:38
[PATCH 4.15 000/168] 4.15.17-stable review 174 (174) 2018/04/11 19:33
[PATCH 4.14 000/138] 4.14.34-stable review 148 (148) 2018/04/11 19:19
[PATCH v2 0/3] mm/get_user_pages_fast fixes, cleanups 9 (9) 2018/04/10 00:38
Re: [PATCH] gup: return -EFAULT on access_ok failure 10 (10) 2018/04/06 11:35
[PATCH net] vhost: validate log when IOTLB is enabled 5 (5) 2018/03/30 02:27
[PATCH net V2] vhost: correctly remove wait queue during poll failure 6 (6) 2018/03/29 08:01
kernel BUG at drivers/vhost/vhost.c:LINE! 3 (4) 2018/03/19 18:18
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel BUG in vhost_get_vq_desc C error done 19 761d 805d 2/2 fixed on 2022/05/13 02:56
linux-4.19 kernel BUG in vhost_get_vq_desc 2 530d 599d 0/1 auto-obsoleted due to no activity on 2023/02/28 01:46
android-54 kernel BUG in vhost_get_vq_desc C 4 745d 785d 0/2 auto-obsoleted due to no activity on 2023/04/21 00:48
upstream kernel BUG at drivers/vhost/vhost.c:LINE! (2) kvm net virt C 139 2168d 2198d 5/26 fixed on 2018/05/08 18:30
upstream kernel BUG in vhost_get_vq_desc kvm net virt C inconclusive 19 778d 790d 22/26 fixed on 2023/02/24 13:50
linux-4.14 kernel BUG in vhost_get_vq_desc C 1 418d 780d 0/1 upstream: reported C repro on 2022/02/22 17:48

Sample crash report:
audit: type=1400 audit(1521377060.016:6): avc:  denied  { map } for  pid=4210 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
audit: type=1400 audit(1521377077.866:7): avc:  denied  { map } for  pid=4228 comm="syzkaller050160" path="/root/syzkaller050160487" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
------------[ cut here ]------------
kernel BUG at drivers/vhost/vhost.c:1655!
invalid opcode: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 1 PID: 4228 Comm: syzkaller050160 Not tainted 4.16.0-rc5+ #357
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:set_bit_to_user drivers/vhost/vhost.c:1655 [inline]
RIP: 0010:log_write+0x3ca/0x490 drivers/vhost/vhost.c:1679
RSP: 0018:ffff8801b0fa77b0 EFLAGS: 00010293
RAX: ffff8801af534240 RBX: dffffc0000000000 RCX: ffffffff8443f50a
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801af535618
RBP: ffff8801b0fa78f0 R08: 0000000000000040 R09: 0000000000000001
R10: ffff8801b0fa76d0 R11: 0000000000000002 R12: 0001ffffffffffff
R13: ffffed00361f4f09 R14: ffff8801b0fa78c8 R15: ffff8801b0fa7848
FS:  00000000007df880(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020d7c000 CR3: 00000001d3e5b005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vhost_update_used_flags+0x379/0x480 drivers/vhost/vhost.c:1726
 vhost_vq_init_access+0xca/0x540 drivers/vhost/vhost.c:1766
 vhost_net_set_backend drivers/vhost/net.c:1166 [inline]
 vhost_net_ioctl+0xee0/0x1920 drivers/vhost/net.c:1320
 vfs_ioctl fs/ioctl.c:46 [inline]
 do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
 do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x43ff09
RSP: 002b:00007ffe94d57fc8 EFLAGS: 00000207 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043ff09
RDX: 0000000020d7c000 RSI: 000000004008af30 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000207 R12: 0000000000401830
R13: 00000000004018c0 R14: 0000000000000000 R15: 0000000000000000
Code: 5e 41 5f 5d c3 31 c0 eb a6 e8 b3 22 2d fd 4c 89 ef e8 5b bb 4d fd 4c 89 f8 48 c1 e8 03 c6 04 18 f8 e9 3a ff ff ff e8 96 22 2d fd <0f> 0b e8 8f 22 2d fd 4d 8d 6c 24 ff e9 89 fe ff ff e8 80 22 2d 
RIP: set_bit_to_user drivers/vhost/vhost.c:1655 [inline] RSP: ffff8801b0fa77b0
RIP: log_write+0x3ca/0x490 drivers/vhost/vhost.c:1679 RSP: ffff8801b0fa77b0
---[ end trace 867ce9e35847b153 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (152):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/03/18 12:46 upstream 8f5fd927c3a7 08dacaa0 .config console log report syz C ci-upstream-kasan-gce
2018/03/18 12:45 upstream 8f5fd927c3a7 08dacaa0 .config console log report syz ci-upstream-kasan-gce-386
2018/04/06 13:14 upstream 38c23685b273 4f1152d4 .config console log report ci-upstream-kasan-gce
2018/04/06 09:05 upstream e02d37bf55a9 a932eae6 .config console log report ci-upstream-kasan-gce
2018/04/06 07:50 upstream 3c8ba0d61d04 a932eae6 .config console log report ci-upstream-kasan-gce-root
2018/04/06 05:30 upstream e02d37bf55a9 a932eae6 .config console log report ci-upstream-kasan-gce
2018/04/06 04:21 upstream e02d37bf55a9 a932eae6 .config console log report ci-upstream-kasan-gce
2018/04/05 20:29 upstream 06dd3dfeea60 5e1ccffc .config console log report ci-upstream-kasan-gce-root
2018/04/05 18:24 upstream 3e968c9f1401 5e1ccffc .config console log report ci-upstream-kasan-gce
2018/04/05 15:17 upstream 3e968c9f1401 5e1ccffc .config console log report ci-upstream-kasan-gce
2018/04/05 13:19 upstream 3e968c9f1401 5e1ccffc .config console log report ci-upstream-kasan-gce
2018/04/05 10:48 upstream 3e968c9f1401 5e1ccffc .config console log report ci-upstream-kasan-gce
2018/04/05 07:06 upstream 3e968c9f1401 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/05 02:35 upstream 3e968c9f1401 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 21:59 upstream 17dec0a94915 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 15:37 upstream 17dec0a94915 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 14:18 upstream 17dec0a94915 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 13:08 upstream 17dec0a94915 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 08:57 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 07:48 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 06:21 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 03:01 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/04 00:18 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 22:41 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 20:34 upstream f2d285669aae 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 14:14 upstream 642e7fd23353 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 10:55 upstream 642e7fd23353 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 06:34 upstream 86bbbebac193 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/03 02:31 upstream 86bbbebac193 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/02 23:16 upstream 86bbbebac193 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/02 21:53 upstream 86bbbebac193 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/02 19:22 upstream 0adb32858b0b 676bd07e .config console log report ci-upstream-kasan-gce
2018/04/02 17:10 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 15:31 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 13:30 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 12:21 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 07:49 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 04:53 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/02 01:10 upstream 0adb32858b0b dc889257 .config console log report ci-upstream-kasan-gce
2018/04/01 21:14 upstream 10b84daddbec dc889257 .config console log report ci-upstream-kasan-gce
2018/04/01 17:39 upstream 10b84daddbec dc889257 .config console log report ci-upstream-kasan-gce
2018/04/01 16:11 upstream 10b84daddbec 0a78e248 .config console log report ci-upstream-kasan-gce
2018/04/01 15:42 upstream 10b84daddbec 0a78e248 .config console log report ci-upstream-kasan-gce-root
2018/03/25 06:34 upstream bcfc1f455466 2e9d9054 .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.