syzbot


WARNING in kvm_tdp_mmu_invalidate_all_roots

Status: fixed on 2023/06/08 14:41
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+094a74444165dbcd3a54@syzkaller.appspotmail.com
Fix commit: edbdb43fc96b KVM: x86: Preserve TDP MMU roots until they are explicitly invalidated
First crash: 156d, last: 153d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kvm?] WARNING in kvm_tdp_mmu_invalidate_all_roots 4 (5) 2023/04/24 15:36

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 10346 at arch/x86/kvm/mmu/tdp_mmu.c:943 kvm_tdp_mmu_invalidate_all_roots+0x2bd/0x370 arch/x86/kvm/mmu/tdp_mmu.c:943
Modules linked in:
CPU: 1 PID: 10346 Comm: syz-executor.4 Not tainted 6.3.0-rc7-next-20230421-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:kvm_tdp_mmu_invalidate_all_roots+0x2bd/0x370 arch/x86/kvm/mmu/tdp_mmu.c:943
Code: 00 e8 a7 67 64 00 49 8d 7c 24 18 31 f6 e8 eb 23 ec 08 31 ff 89 c3 89 c6 e8 b0 63 64 00 85 db 0f 85 00 fe ff ff e8 83 67 64 00 <0f> 0b e9 f4 fd ff ff 48 89 ef e8 94 46 b7 00 e9 88 fd ff ff e8 4a
RSP: 0018:ffffc900150c7c80 EFLAGS: 00010212
RAX: 000000000002108b RBX: 0000000000000000 RCX: ffffc9000db21000
RDX: 0000000000040000 RSI: ffffffff811f7dcd RDI: 0000000000000005
RBP: ffffc90015102788 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900150f9000
R13: 0000000000000000 R14: 0000000000000006 R15: ffffc900150f99d8
FS:  00007fc1ac597700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f15e7f831b8 CR3: 000000007e311000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 kvm_mmu_uninit_tdp_mmu+0x16/0x100 arch/x86/kvm/mmu/tdp_mmu.c:48
 kvm_mmu_uninit_vm+0x6a/0x70 arch/x86/kvm/mmu/mmu.c:6239
 kvm_arch_destroy_vm+0x369/0x490 arch/x86/kvm/x86.c:12465
 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1245 [inline]
 kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:5017 [inline]
 kvm_dev_ioctl+0x11be/0x1bb0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:5059
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fc1ab88c169
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc1ac597168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc1ab9abf80 RCX: 00007fc1ab88c169
RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000005
RBP: 00007fc1ab8e7ca1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff6f9d15bf R14: 00007fc1ac597300 R15: 0000000000022000
 </TASK>

Crashes (1658):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/24 16:14 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 15:10 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 14:23 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 13:50 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 12:49 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 12:41 linux-next d3e1ee0e67e7 fdc18293 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 11:30 linux-next d3e1ee0e67e7 c778c7f4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 11:26 linux-next d3e1ee0e67e7 c778c7f4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 10:24 linux-next d3e1ee0e67e7 c778c7f4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 10:14 linux-next d3e1ee0e67e7 c778c7f4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 09:12 linux-next d3e1ee0e67e7 c778c7f4 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 08:31 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 07:59 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 07:36 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 06:55 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 06:29 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 06:03 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 05:26 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 05:01 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 04:22 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 03:35 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 03:06 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 02:43 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 02:17 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 01:51 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 01:21 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 00:53 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/24 00:13 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 23:35 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 22:53 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 22:07 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 21:36 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 21:07 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 20:42 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 20:27 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 20:03 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 19:45 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 19:13 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 18:34 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 18:02 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 17:24 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 16:44 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/23 16:32 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/21 19:14 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
2023/04/21 18:39 linux-next d3e1ee0e67e7 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in kvm_tdp_mmu_invalidate_all_roots
* Struck through repros no longer work on HEAD.