syzbot


WARNING in kvm_set_tsc_khz

Status: fixed on 2019/07/29 13:39
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+c03f30b4f4c46bdf8575@syzkaller.appspotmail.com
Fix commit: 3f16a5c31839 KVM: x86: degrade WARN to pr_warn_ratelimited
First crash: 2319d, last: 2318d
Discussions (14)
Title Replies (including bot) Last reply
[PATCH 5.1 00/96] 5.1.17-stable review 115 (115) 2019/07/15 20:07
[PATCH AUTOSEL 4.4 1/4] MIPS: ath79: fix ar933x uart parity mode 4 (4) 2019/07/10 15:03
[PATCH AUTOSEL 4.9 1/7] MIPS: ath79: fix ar933x uart parity mode 7 (7) 2019/07/10 15:03
[PATCH AUTOSEL 4.14 1/8] MIPS: ath79: fix ar933x uart parity mode 8 (8) 2019/07/10 15:03
[PATCH AUTOSEL 4.19 1/9] MIPS: ath79: fix ar933x uart parity mode 9 (9) 2019/07/10 15:02
[PATCH AUTOSEL 5.1 01/11] MIPS: ath79: fix ar933x uart parity mode 11 (11) 2019/07/10 15:02
[PATCH 4.19 00/90] 4.19.58-stable review 99 (99) 2019/07/10 06:13
[PATCH 4.14 00/56] 4.14.133-stable review 64 (64) 2019/07/10 06:12
[PATCH 4.9 000/102] 4.9.185-stable review 108 (108) 2019/07/10 06:11
[PATCH 4.4 00/73] 4.4.185-stable review 79 (79) 2019/07/10 06:10
[PATCH v2] KVM: x86: degrade WARN to pr_warn_ratelimited 2 (2) 2019/06/26 12:24
Re: WARNING in kvm_set_tsc_khz 2 (2) 2019/06/26 12:19
Reminder: 25 open syzbot bugs in kvm subsystem 1 (1) 2019/06/24 05:21
WARNING in kvm_set_tsc_khz 0 (1) 2018/08/11 16:39

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
urandom_read: 1 callbacks suppressed
random: sshd: uninitialized urandom read (32 bytes read)
------------[ cut here ]------------
user requested TSC rate below hardware speed
WARNING: CPU: 1 PID: 4340 at arch/x86/kvm/x86.c:1414 set_tsc_khz arch/x86/kvm/x86.c:1414 [inline]
WARNING: CPU: 1 PID: 4340 at arch/x86/kvm/x86.c:1414 kvm_set_tsc_khz+0x4f1/0x540 arch/x86/kvm/x86.c:1463
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 4340 Comm: syz-executor003 Not tainted 4.18.0-rc8-next-20180807+ #33
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+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:996
RIP: 0010:set_tsc_khz arch/x86/kvm/x86.c:1414 [inline]
RIP: 0010:kvm_set_tsc_khz+0x4f1/0x540 arch/x86/kvm/x86.c:1463
Code: c7 c7 40 1a 02 87 c6 05 77 b6 79 07 01 e8 67 6a 3b 00 0f 0b e9 ed fd ff ff e8 6b d1 70 00 48 c7 c7 e0 19 02 87 e8 4f 6a 3b 00 <0f> 0b bb ff ff ff ff e9 d0 fd ff ff 89 45 d0 e8 4b cf af 00 8b 45
RSP: 0018:ffff8801bf3c7398 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 000000000023185f RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8163ec91 RDI: ffff8801bf3c7088
RBP: ffff8801bf3c73d8 R08: ffff8801b0b3e400 R09: fffffbfff0ff1288
R10: fffffbfff0ff1288 R11: ffffffff87f89443 R12: ffff8801ae6e8040
R13: 00000000002315b8 R14: 000000000023185f R15: 0000000000000000
 kvm_arch_vcpu_init+0x269/0x830 arch/x86/kvm/x86.c:8702
 kvm_vcpu_init+0x2fb/0x420 arch/x86/kvm/../../../virt/kvm/kvm_main.c:317
 vmx_create_vcpu+0x14c/0x28b0 arch/x86/kvm/vmx.c:10691
 kvm_arch_vcpu_create+0xe5/0x220 arch/x86/kvm/x86.c:8401
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2476 [inline]
 kvm_vm_ioctl+0x488/0x1d80 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2977
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702
 __do_sys_ioctl fs/ioctl.c:709 [inline]
 __se_sys_ioctl fs/ioctl.c:707 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440109
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:00007ffda4f501e8 EFLAGS: 00000217 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440109
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000217 R12: 0000000000401990
R13: 0000000000401a20 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/07 15:33 linux-next 2b769bb85b48 1beb8136 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/08 06:19 linux-next 2b769bb85b48 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/08 03:45 linux-next 2b769bb85b48 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/08 00:23 linux-next 2b769bb85b48 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/08/07 23:56 linux-next 2b769bb85b48 1beb8136 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.