syzbot


WARNING in __x86_set_memory_region

Status: fixed on 2018/03/06 13:29
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+cdc101da2b51ccd9d68d92a29a64a620ed313891@syzkaller.appspotmail.com
Fix commit: 103c763c72dd KVM/x86: remove WARN_ON() for when vm_munmap() fails
First crash: 2520d, last: 2309d

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 6656 at arch/x86/kvm/x86.c:8243 __x86_set_memory_region+0x56e/0x7a0 arch/x86/kvm/x86.c:8243
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6656 Comm: syzkaller223273 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:__x86_set_memory_region+0x56e/0x7a0 arch/x86/kvm/x86.c:8243
RSP: 0018:ffff8801c12b7690 EFLAGS: 00010293
RAX: ffff8801c89b85c0 RBX: ffff8801c12b7798 RCX: ffffffff810b4d6e
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffed0038256ea0
RBP: ffff8801c12b77c0 R08: 0000000000000001 R09: 1ffff10038256e85
R10: ffff8801c89b85c0 R11: 0000000000000001 R12: ffff8801c12b7758
R13: 1ffff10038256ed7 R14: ffff8801bdc62ac0 R15: 0000000000000000
 x86_set_memory_region+0x3e/0x60 arch/x86/kvm/x86.c:8255
 kvm_arch_destroy_vm+0x7c4/0x990 arch/x86/kvm/x86.c:8271
 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_vcpu_release+0x7b/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2371
 __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
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x296/0x310 arch/x86/entry/common.c:162
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath+0x42f/0x510 arch/x86/entry/common.c:266
 entry_SYSCALL_64_fastpath+0xbc/0xbe
RIP: 0033:0x445ba9
RSP: 002b:00007f8d49285dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000124
RAX: 0000000000000005 RBX: 0000000000000000 RCX: 0000000000445ba9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007f8d49286700 R09: 00007f8d49286700
R10: 00007f8d49286700 R11: 0000000000000202 R12: 0000000000000000
R13: 00007ffee68801ef R14: 00007f8d492869c0 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (716):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/03 21:51 linux-next 5a3517e009e9 e0a2b195 .config console log report syz C skylake-linux-next-kasan-qemu
2017/11/03 20:10 upstream 866ba84ea30f e930d6f6 .config console log report syz ci-upstream-kasan-gce
2017/11/03 20:05 upstream 866ba84ea30f e930d6f6 .config console log report syz ci-upstream-kasan-gce
2017/07/30 18:09 upstream 0a07b238e5f4 fe8ced11 .config console log report syz ci-upstream-kasan-gce
2017/12/07 18:27 upstream 968edbd93c0c 5d643f8e .config console log report syz ci-upstream-kasan-gce-386
2017/11/02 21:57 upstream 3a99df9a3d14 dab7524e .config console log report syz ci-upstream-kasan-gce-386
2017/09/29 21:26 upstream 770b782f555d c26ea367 .config console log report syz ci-upstream-kasan-gce-386
2017/09/23 07:24 upstream 0a8abd97dcda c26ea367 .config console log report syz ci-upstream-kasan-gce-386
2017/11/03 19:46 mmots 0f611fb6dcc0 e0a2b195 .config console log report syz ci-upstream-mmots-kasan-gce
2017/11/03 19:23 linux-next 5a3517e009e9 e0a2b195 .config console log report syz skylake-linux-next-kasan-qemu
2017/08/17 20:44 linux-next bb70832dd42b f238fbd4 .config console log report syz ci-upstream-next-kasan-gce
2018/02/26 13:27 upstream c89be5242607 9fe8aa42 .config console log report ci-upstream-kasan-gce
2018/02/26 07:21 upstream c89be5242607 9fe8aa42 .config console log report ci-upstream-kasan-gce
2018/02/06 04:25 upstream 2deb41b24532 a1bc9d40 .config console log report ci-upstream-kasan-gce
2018/02/04 01:19 upstream 23c35f48f5fb 632a8c2c .config console log report ci-upstream-kasan-gce
2018/02/03 10:38 upstream b89e32ccd1be 632a8c2c .config console log report ci-upstream-kasan-gce
2018/01/31 09:29 upstream 72906f38934a 02553e22 .config console log report ci-upstream-kasan-gce
2018/01/30 14:07 upstream 6304672b7f0a a899be78 .config console log report ci-upstream-kasan-gce
2018/01/30 05:53 upstream 6304672b7f0a 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/29 16:46 upstream d8a5b80568a9 08d47756 .config console log report ci-upstream-kasan-gce
2018/01/27 23:30 upstream c4e0ca7fa241 08146b1a .config console log report ci-upstream-kasan-gce
2018/01/27 09:25 upstream c4e0ca7fa241 1d18b112 .config console log report ci-upstream-kasan-gce
2018/01/27 06:58 upstream c4e0ca7fa241 1d18b112 .config console log report ci-upstream-kasan-gce
2018/01/20 18:53 upstream 8dd903d2cf7b fbbdcd92 .config console log report ci-upstream-kasan-gce
2018/01/08 15:51 upstream b2cd1df66037 93b4c6f1 .config console log report ci-upstream-kasan-gce
2017/12/17 06:12 upstream f3b5ad89de16 b6f0c91b .config console log report ci-upstream-kasan-gce
2017/12/14 16:27 upstream 7c5cac1bc717 ac20b98c .config console log report ci-upstream-kasan-gce
2017/12/14 07:27 upstream 7c5cac1bc717 06ea774d .config console log report ci-upstream-kasan-gce
2017/12/14 01:19 upstream d39a01eff9af 06ea774d .config console log report ci-upstream-kasan-gce
2017/12/13 18:26 upstream d39a01eff9af ce7f2399 .config console log report ci-upstream-kasan-gce
2017/12/10 13:10 upstream 4ded3bec65a0 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/12/09 01:51 upstream 3625de4b2872 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/12/08 06:46 upstream 968edbd93c0c 5d643f8e .config console log report ci-upstream-kasan-gce
2018/02/26 18:19 upstream 4a3928c6f8a5 9fe8aa42 .config console log report ci-upstream-kasan-gce-386
2018/02/24 03:48 upstream 938e1426e262 5c1e0207 .config console log report ci-upstream-kasan-gce-386
2018/02/08 19:17 upstream 581e400ff935 9fb5ec43 .config console log report ci-upstream-kasan-gce-386
2018/01/24 21:40 upstream 5132ede0fe80 866f1102 .config console log report ci-upstream-kasan-gce-386
2018/01/07 15:27 upstream 3219e264b984 19c05fff .config console log report ci-upstream-kasan-gce-386
2017/12/13 00:26 upstream a638349bf6c2 414a185f .config console log report ci-upstream-kasan-gce-386
2017/12/11 04:06 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/10 20:11 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/08 20:39 upstream 3625de4b2872 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/06 20:53 upstream e56d565d67ae 5d643f8e .config console log report ci-upstream-kasan-gce-386
2018/01/22 01:57 linux-next 761914dd2975 fbbdcd92 .config console log report ci-upstream-next-kasan-gce
2018/01/22 01:26 linux-next 761914dd2975 fbbdcd92 .config console log report ci-upstream-next-kasan-gce
2018/01/18 11:06 mmots ce3c209f6733 56cc113a .config console log report ci-upstream-mmots-kasan-gce
2018/01/16 14:35 linux-next fdddade65d7b 4198e588 .config console log report ci-upstream-next-kasan-gce
2018/01/14 01:46 linux-next 3e53c7415294 c9e7aeae .config console log report ci-upstream-next-kasan-gce
2018/01/13 11:51 mmots ce3c209f6733 9dc808a6 .config console log report ci-upstream-mmots-kasan-gce
2018/01/12 20:33 mmots 2c405fa05106 9dc808a6 .config console log report ci-upstream-mmots-kasan-gce
2018/01/11 15:05 mmots 4147d50978df 9dc808a6 .config console log report ci-upstream-mmots-kasan-gce
2018/01/10 02:56 linux-next 06d41862286a 1f60c828 .config console log report ci-upstream-next-kasan-gce
2018/01/07 11:00 mmots 69eed2290e1d 19c05fff .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.