syzbot


WARNING in free_loaded_vmcs

Status: fixed on 2018/01/25 08:31
Reported-by: syzbot+f8b45b2617e7aabc787907f1d88e86468ceae220@syzkaller.appspotmail.com
Fix commit: b74558259c51 KVM: VMX: Fix vmx->nested freeing when no SMI handler
First crash: 1696d, last: 1671d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in free_loaded_vmcs (2) syz done 5 1391d 1413d 12/22 fixed on 2019/04/02 11:50
linux-4.19 WARNING in free_loaded_vmcs C error 2 155d 155d 0/1 upstream: reported C repro on 2022/01/22 18:03
upstream WARNING in free_loaded_vmcs (3) C inconclusive 2 154d 153d 21/22 upstream: reported C repro on 2022/01/24 15:33

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3224 at arch/x86/kvm/vmx.c:3844 free_loaded_vmcs+0x10f/0x150 arch/x86/kvm/vmx.c:3844
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 3224 Comm: syzkaller595060 Not tainted 4.14.0-rc7-next-20171103+ #38
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 __warn+0x1c4/0x1e0 kernel/panic.c:546
 report_bug+0x211/0x2d0 lib/bug.c:184
 fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:177
 do_trap_no_signal arch/x86/kernel/traps.c:211 [inline]
 do_trap+0x260/0x390 arch/x86/kernel/traps.c:260
 do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:297
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:310
 invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:906
RIP: 0010:free_loaded_vmcs+0x10f/0x150 arch/x86/kvm/vmx.c:3844
RSP: 0018:ffff8801c7f8f470 EFLAGS: 00010293
RAX: ffff8801c59a8080 RBX: ffff8801c5b3cdd8 RCX: ffffffff8119c79f
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801c5b3cde0
RBP: ffff8801c7f8f488 R08: ffffea0007182460 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801c6091000
R13: 0000000000000001 R14: dffffc0000000000 R15: ffffed0038ff1eb2
 vmx_free_vcpu+0x1d3/0x2c0 arch/x86/kvm/vmx.c:9510
 kvm_arch_vcpu_free arch/x86/kvm/x86.c:7730 [inline]
 kvm_free_vcpus arch/x86/kvm/x86.c:8179 [inline]
 kvm_arch_destroy_vm+0x4b4/0x990 arch/x86/kvm/x86.c:8278
 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:726 [inline]
 kvm_put_kvm+0x695/0xde0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:747
 kvm_vm_release+0x42/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:758
 __fput+0x333/0x7f0 fs/file_table.c:210
 ____fput+0x15/0x20 fs/file_table.c:244
 task_work_run+0x199/0x270 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x9b5/0x1ad0 kernel/exit.c:869
 do_group_exit+0x149/0x400 kernel/exit.c:972
 SYSC_exit_group kernel/exit.c:983 [inline]
 SyS_exit_group+0x1d/0x20 kernel/exit.c:981
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x449099
RSP: 002b:00007fffd06fde68 EFLAGS: 00000202 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 0000000000449099
RDX: 0000000000474231 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000086 R08: 00000000006dd1c0 R09: 0000000000000000
R10: 00000000006dd144 R11: 0000000000000202 R12: 0000000000000000
R13: 00007fffd06fde0f R14: 00007fa36c8839c0 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (170):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-next-kasan-gce 2017/11/04 21:00 linux-next 5a3517e009e9 e0a2b195 .config log report syz C
ci-upstream-next-kasan-gce 2017/11/04 19:32 linux-next 5a3517e009e9 e0a2b195 .config log report syz
skylake-linux-next-kasan-qemu 2017/11/04 14:15 linux-next 5a3517e009e9 e0a2b195 .config log report syz
skylake-linux-next-kasan-qemu 2017/11/04 01:54 linux-next 5a3517e009e9 e0a2b195 .config log report syz
ci-upstream-kasan-gce 2017/11/18 11:29 net-next 1deab8ce2c91 84dd36ba .config log report
ci-upstream-kasan-gce-386 2017/11/26 09:30 upstream 844056fd74eb 4bd70f88 .config log report
ci-upstream-kasan-gce-386 2017/11/26 04:07 upstream 844056fd74eb 4bd70f88 .config log report
ci-upstream-kasan-gce-386 2017/11/23 06:15 net-next 0c86a6bd85ff ddf7b3e0 .config log report
ci-upstream-mmots-kasan-gce 2017/11/28 19:46 mmots dbf9f9124937 1808de66 .config log report
ci-upstream-mmots-kasan-gce 2017/11/28 04:16 mmots dbf9f9124937 1808de66 .config log report
ci-upstream-mmots-kasan-gce 2017/11/27 21:34 mmots 1ea8d039f9ed afba0b55 .config log report
ci-upstream-mmots-kasan-gce 2017/11/27 10:30 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/27 09:38 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/26 19:43 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-next-kasan-gce 2017/11/26 12:55 linux-next 6fc478f80f68 4bd70f88 .config log report
ci-upstream-next-kasan-gce 2017/11/26 04:59 linux-next 6fc478f80f68 4bd70f88 .config log report
ci-upstream-next-kasan-gce 2017/11/25 18:45 linux-next 6fc478f80f68 4bd70f88 .config log report
ci-upstream-mmots-kasan-gce 2017/11/25 15:50 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/25 13:58 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/25 11:13 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/25 08:30 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-next-kasan-gce 2017/11/25 02:19 linux-next 6fc478f80f68 4bd70f88 .config log report
ci-upstream-next-kasan-gce 2017/11/24 18:13 linux-next 6fc478f80f68 4bd70f88 .config log report
ci-upstream-mmots-kasan-gce 2017/11/24 07:26 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/24 06:47 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-mmots-kasan-gce 2017/11/24 03:41 mmots 1ea8d039f9ed deb5f6ae .config log report
ci-upstream-next-kasan-gce 2017/11/16 07:26 linux-next 785be731fbc6 348d8f13 .config log report
ci-upstream-mmots-kasan-gce 2017/11/15 05:26 mmots 97530111c84b 00f6ff58 .config log report
ci-upstream-next-kasan-gce 2017/11/14 16:55 linux-next c9b945f2a731 cf38de00 .config log report
ci-upstream-next-kasan-gce 2017/11/14 15:04 linux-next c9b945f2a731 cf38de00 .config log report
ci-upstream-mmots-kasan-gce 2017/11/13 18:31 mmots 97530111c84b 00f6ff58 .config log report
ci-upstream-next-kasan-gce 2017/11/13 13:21 linux-next c348a99ee55f f9a8d567 .config log report
ci-upstream-next-kasan-gce 2017/11/13 08:29 linux-next c348a99ee55f f9a8d567 .config log report
ci-upstream-next-kasan-gce 2017/11/13 03:20 linux-next d9e0e63d9a6f e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/12 15:43 linux-next d9e0e63d9a6f e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/11 09:42 linux-next d9e0e63d9a6f e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/11 03:25 linux-next d9e0e63d9a6f e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/10 11:56 linux-next d9e0e63d9a6f e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/06 19:01 linux-next 5a3517e009e9 e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/06 07:52 linux-next 5a3517e009e9 e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/05 21:28 linux-next 5a3517e009e9 e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/05 14:52 linux-next 5a3517e009e9 e0a2b195 .config log report
ci-upstream-next-kasan-gce 2017/11/05 07:04 linux-next 5a3517e009e9 e0a2b195 .config log report
skylake-linux-next-kasan-qemu 2017/11/04 13:50 linux-next 5a3517e009e9 e0a2b195 .config log report