syzbot


KMSAN: uninit-value in vmx_set_constant_host_state

Status: closed as invalid on 2018/10/10 13:24
Subsystems: kvm
[Documentation on labels]
First crash: 1998d, last: 1996d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in vmx_set_constant_host_state (2) kvm 1576 1995d 1996d 0/26 auto-closed as invalid on 2019/04/09 14:33

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
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.
==================================================================
BUG: KMSAN: uninit-value in __vmcs_writel arch/x86/kvm/vmx.c:2376 [inline]
BUG: KMSAN: uninit-value in vmcs_writel arch/x86/kvm/vmx.c:2419 [inline]
BUG: KMSAN: uninit-value in vmx_set_constant_host_state+0x1778/0x1830 arch/x86/kvm/vmx.c:6324
CPU: 1 PID: 6203 Comm: syz-executor472 Not tainted 4.19.0-rc4+ #65
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x306/0x460 lib/dump_stack.c:113
 kmsan_report+0x1a2/0x2e0 mm/kmsan/kmsan.c:917
 __msan_warning+0x7c/0xe0 mm/kmsan/kmsan_instr.c:500
 __vmcs_writel arch/x86/kvm/vmx.c:2376 [inline]
 vmcs_writel arch/x86/kvm/vmx.c:2419 [inline]
 vmx_set_constant_host_state+0x1778/0x1830 arch/x86/kvm/vmx.c:6324
 vmx_vcpu_setup arch/x86/kvm/vmx.c:6618 [inline]
 vmx_create_vcpu+0x3e6f/0x7870 arch/x86/kvm/vmx.c:11010
 kvm_arch_vcpu_create+0x25d/0x2f0 arch/x86/kvm/x86.c:8452
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2476 [inline]
 kvm_vm_ioctl+0x13fd/0x33d0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2977
 vfs_ioctl fs/ioctl.c:46 [inline]
 do_vfs_ioctl+0xcf3/0x2810 fs/ioctl.c:687
 ksys_ioctl fs/ioctl.c:702 [inline]
 __do_sys_ioctl fs/ioctl.c:709 [inline]
 __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:707
 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:707
 do_syscall_64+0xbe/0x100 arch/x86/entry/common.c:291
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x440039
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:00007ffed4de39f8 EFLAGS: 00000217 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440039
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000217 R12: 00000000004018c0
R13: 0000000000401950 R14: 0000000000000000 R15: 0000000000000000

Local variable description: ----dt@vmx_set_constant_host_state
Variable was created at:
 vmx_set_constant_host_state+0x2b0/0x1830 arch/x86/kvm/vmx.c:6284
 vmx_vcpu_setup arch/x86/kvm/vmx.c:6618 [inline]
 vmx_create_vcpu+0x3e6f/0x7870 arch/x86/kvm/vmx.c:11010
==================================================================

Crashes (2007):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/10 02:31 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/09 15:29 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/09 12:22 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/09 10:47 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/08 19:33 https://github.com/google/kmsan.git master 43c85fe5a0ee 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/08 12:38 https://github.com/google/kmsan.git master 43c85fe5a0ee 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/08 12:00 https://github.com/google/kmsan.git master 43c85fe5a0ee 8b311eaf .config console log report syz C ci-upstream-kmsan-gce
2018/10/10 13:20 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 13:05 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 12:47 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 12:32 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 12:09 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 11:51 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 11:33 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 11:25 https://github.com/google/kmsan.git master c525ca11ede3 5b11ac2c .config console log report ci-upstream-kmsan-gce
2018/10/10 09:55 https://github.com/google/kmsan.git master c525ca11ede3 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 09:42 https://github.com/google/kmsan.git master c525ca11ede3 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 08:12 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 07:35 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 07:04 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 06:31 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 06:03 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 05:33 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 04:59 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 04:15 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 03:40 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 03:11 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 02:42 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 02:14 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 01:37 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 00:55 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/10 00:24 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 23:54 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 23:21 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 22:48 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 22:17 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 21:48 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 21:18 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 20:40 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 20:12 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 19:43 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 19:15 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 18:45 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 18:10 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 17:32 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 17:04 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/09 16:25 https://github.com/google/kmsan.git master c2d21df4c5af 8b311eaf .config console log report ci-upstream-kmsan-gce
2018/10/08 11:15 https://github.com/google/kmsan.git master 43c85fe5a0ee 8b311eaf .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.