syzbot


general protection fault in vcpu_enter_guest (2)

Status: fixed on 2019/05/27 12:48
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+f7e65445a40d3e0e4ebf@syzkaller.appspotmail.com
Fix commit: b904cb8dff82 KVM: lapic: Check for in-kernel LAPIC before deferencing apic pointer
First crash: 1827d, last: 1819d
Cause bisection: the cause commit could be any of (bisect log):
  57bf67e73ce9 KVM: lapic: Disable timer advancement if adaptive tuning goes haywire
  39497d7660d9 KVM: lapic: Track lapic timer advance per vCPU
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH 5.0 000/122] 5.0.14-stable review 134 (134) 2019/05/08 06:36
[PATCH] KVM: lapic: Check for in-kernel LAPIC before deferencing apic pointer 3 (3) 2019/04/30 19:17
general protection fault in vcpu_enter_guest (2) 1 (2) 2019/04/26 01:44
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in vcpu_enter_guest kvm 1 2081d 2078d 0/26 auto-closed as invalid on 2019/02/22 10:26

Sample crash report:
L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html for details.
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7818 Comm: syz-executor191 Not tainted 5.1.0-rc6-next-20190426 #31
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:vcpu_enter_guest+0xbcd/0x5fb0 arch/x86/kvm/x86.c:7895
Code: 48 c1 ea 03 80 3c 02 00 0f 85 6f 48 00 00 49 8b 9f b0 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 78 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 39 48 00 00 8b 5b 78 31 ff 89
RSP: 0018:ffff888084cc7a00 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff810d1ec9
RDX: 000000000000000f RSI: ffffffff810ceef2 RDI: 0000000000000078
RBP: ffff888084cc7b10 R08: ffff8880969285c0 R09: ffffed1015d25dd8
R10: ffffed1015d25dd7 R11: ffff8880ae92eebb R12: ffff8880a78a806c
R13: 0000000000000001 R14: ffff8880a78a8070 R15: ffff8880a78a8040
FS:  0000555556fdb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa5dd2ff000 CR3: 0000000096cff000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vcpu_run arch/x86/kvm/x86.c:8037 [inline]
 kvm_arch_vcpu_ioctl_run+0x425/0x1750 arch/x86/kvm/x86.c:8245
 kvm_vcpu_ioctl+0x4dc/0xf90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2684
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0x103/0x670 arch/x86/entry/common.c:298
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401f9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffb7a89e28 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401f9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000401a80
R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 32c4638a9b6de5db ]---
RIP: 0010:vcpu_enter_guest+0xbcd/0x5fb0 arch/x86/kvm/x86.c:7895
Code: 48 c1 ea 03 80 3c 02 00 0f 85 6f 48 00 00 49 8b 9f b0 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 7b 78 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 39 48 00 00 8b 5b 78 31 ff 89
RSP: 0018:ffff888084cc7a00 EFLAGS: 00010006
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff810d1ec9
RDX: 000000000000000f RSI: ffffffff810ceef2 RDI: 0000000000000078
RBP: ffff888084cc7b10 R08: ffff8880969285c0 R09: ffffed1015d25dd8
R10: ffffed1015d25dd7 R11: ffff8880ae92eebb R12: ffff8880a78a806c
R13: 0000000000000001 R14: ffff8880a78a8070 R15: ffff8880a78a8040
FS:  0000555556fdb880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa5dd2ff000 CR3: 0000000096cff000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11286):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/27 13:53 linux-next 3ddfa8af5dc9 b617407b .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/23 14:44 linux-next 76c938fcaa4b 53199d6e .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/05/01 12:13 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 11:45 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 10:53 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 10:25 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 10:14 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 09:58 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 09:46 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 09:31 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 09:14 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 08:59 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 08:34 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 08:23 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 08:07 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 07:56 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 07:45 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 07:33 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 07:16 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 07:06 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:55 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:44 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:34 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:24 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:10 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 06:00 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 05:48 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 05:37 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 05:24 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 05:08 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 04:58 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 04:47 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 04:34 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 04:23 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 04:09 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 03:53 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 03:41 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 03:31 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 03:19 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 03:08 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 02:57 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 02:41 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/05/01 02:31 linux-next f43b05fd4c17 618456b4 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 14:11 linux-next 76c938fcaa4b 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.