syzbot


WARNING in handle_desc

Status: fixed on 2019/12/09 13:28
Reported-by: syzbot+3e5061d8f00ce2ab75a1@syzkaller.appspotmail.com
Fix commit: 21874027e1de KVM: X86: Fix userspace set invalid CR4
First crash: 1672d, last: 1672d
Fix bisection: fixed by (bisect log) :
commit 21874027e1deba5a5b8edaa6de8e49a4a2dd99b3
Author: Wanpeng Li <wanpengli@tencent.com>
Date: Wed Sep 18 09:50:10 2019 +0000

  KVM: X86: Fix userspace set invalid CR4

  
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in handle_desc (2) kvm 1 1326d 1322d 0/26 auto-closed as invalid on 2020/12/29 08:10
upstream WARNING in handle_desc kvm C done 6 1672d 1681d 13/26 fixed on 2019/10/15 23:40
linux-4.19 WARNING in handle_desc (2) C error 10 506d 1217d 0/1 upstream: reported C repro on 2020/12/18 04:57

Sample crash report:
audit: type=1400 audit(1568974230.200:36): avc:  denied  { map } for  pid=7617 comm="syz-executor866" path="/root/syz-executor866017908" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7617 at arch/x86/kvm/vmx.c:7251 handle_desc.cold+0x11/0x18 arch/x86/kvm/vmx.c:7251
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7617 Comm: syz-executor866 Not tainted 4.19.74 #0
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+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x263/0x507 kernel/panic.c:185
 __warn.cold+0x20/0x4a kernel/panic.c:540
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x204/0x360 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:1037
RIP: 0010:handle_desc.cold+0x11/0x18 arch/x86/kvm/vmx.c:7251
Code: 00 48 c7 c7 a0 bd 43 87 c6 05 7d 72 20 08 01 e8 a0 17 39 00 e9 2e 8b fb ff e8 c2 b0 4e 00 48 c7 c7 00 be 43 87 e8 8a 17 39 00 <0f> 0b e9 ce 8f fb ff e8 aa b0 4e 00 89 de 48 c7 c7 00 bf 43 87 c6
RSP: 0018:ffff888086c87950 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155dbd6 RDI: ffffed1010d90f1c
RBP: ffff888086c87960 R08: 0000000000000024 R09: ffffed1015d05079
R10: ffffed1015d05078 R11: ffff8880ae8283c7 R12: ffff8880863b0040
R13: 0000000000000000 R14: ffff8880863b0040 R15: 000000000000002f
 vmx_handle_exit+0x276/0x16b0 arch/x86/kvm/vmx.c:10183
 vcpu_enter_guest+0x10ca/0x5ed0 arch/x86/kvm/x86.c:7743
 vcpu_run arch/x86/kvm/x86.c:7806 [inline]
 kvm_arch_vcpu_ioctl_run+0x457/0x16b0 arch/x86/kvm/x86.c:8006
 kvm_vcpu_ioctl+0x4dc/0xf90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2617
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443819
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 1b 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd39ec7a68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffd39ec7a70 RCX: 0000000000443819
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000006
RBP: 0000000000000000 R08: 00000000004010a0 R09: 00000000004010a0
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004048c0
R13: 0000000000404950 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/20 10:16 linux-4.19.y dbc29aff8d04 d96e88f3 .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.