syzbot


WARNING in static_key_slow_try_dec (2)
Status: fixed on 2022/03/08 16:11
Reported-by: syzbot+9fc046ab2b0cf295a063@syzkaller.appspotmail.com
Fix commit: f7d8a19f9a05 Revert "KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET"
First crash: 292d, last: 220d

Cause bisection: introduced by (bisect log) [merge commit]:
commit 7c2d18357f2c4d26e727e76245e297ffdbc03097
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sat Feb 6 22:57:23 2021 +0000

  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input

Crash: BUG: spinlock bad magic in synchronize_srcu (log)
Repro: C syz .config
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __static_key_slow_dec_deferred C unreliable 1601 220d 258d 0/22 closed as dup on 2021/10/21 01:32
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in static_key_slow_try_dec C done 58 1050d 1054d 13/22 fixed on 2019/08/05 13:45

Sample crash report:
------------[ cut here ]------------
jump label: negative count!
WARNING: CPU: 0 PID: 6907 at kernel/jump_label.c:235 static_key_slow_try_dec+0xca/0xe0 kernel/jump_label.c:235
Modules linked in:
CPU: 0 PID: 6907 Comm: syz-executor354 Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:static_key_slow_try_dec+0xca/0xe0 kernel/jump_label.c:235
Code: 5d c3 e8 79 57 dc ff 45 31 ed 5b 44 89 e8 5d 41 5c 41 5d c3 44 89 e5 eb 8e e8 62 57 dc ff 48 c7 c7 60 fb 94 89 e8 f2 20 59 07 <0f> 0b eb c5 48 89 df e8 1a ae 23 00 e9 6a ff ff ff 0f 1f 44 00 00
RSP: 0018:ffffc9000347fac0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff8d6e7360 RCX: 0000000000000000
RDX: ffff888078a99c80 RSI: ffffffff815e88a8 RDI: fffff5200068ff4a
RBP: 00000000ffffffff R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815e264e R11: 0000000000000000 R12: 00000000ffffffff
R13: 0000000000000001 R14: ffff888024ecd118 R15: 0000000000000040
FS:  00007fc270c66700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000200 CR3: 000000001ec95000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __static_key_slow_dec_deferred+0x60/0x100 kernel/jump_label.c:286
 kvm_free_lapic+0x144/0x1a0 arch/x86/kvm/lapic.c:2211
 kvm_arch_vcpu_create+0x8fd/0xc70 arch/x86/kvm/x86.c:10767
 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3622 [inline]
 kvm_vm_ioctl+0x137f/0x23d0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4344
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fc270cd5959
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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:00007fc270c66318 EFLAGS: 00000246
 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fc270d5d418 RCX: 00007fc270cd5959
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00007fc270d5d410 R08: 00007fc270c66700 R09: 0000000000000000
R10: 00007fc270c66700 R11: 0000000000000246 R12: 6d766b2f7665642f
R13: 00007ffcc25df95f R14: 00007fc270c66400 R15: 0000000000022000

Crashes (5417):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/10/19 15:31 upstream 519d81956ee2 24dc29db .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 04:01 upstream d999ade1cc86 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/16 17:00 upstream 8fe31e0995f0 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/16 16:05 upstream 8fe31e0995f0 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/16 14:21 upstream 8fe31e0995f0 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/15 23:46 upstream ec681c53f8d2 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/15 17:56 upstream ec681c53f8d2 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/11 00:01 upstream efb52a7d9511 838e7e2c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/10 09:22 upstream 7fd2bf83d59a 838e7e2c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/09 16:12 upstream 5d6ab0bb408f 838e7e2c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/09 03:29 upstream 741668ef7832 efe0f24d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/08 17:55 upstream 1da38549dd64 efe0f24d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/08 12:17 upstream 1da38549dd64 efe0f24d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/08 04:48 upstream 4a16df549d23 efe0f24d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/07 13:47 upstream 5af4055fa813 62ee0987 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/07 09:04 upstream 5af4055fa813 62ee0987 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/07 09:00 upstream 5af4055fa813 62ee0987 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/05 10:56 upstream 84b3e42564ac ce697b49 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/05 08:27 upstream 84b3e42564ac ce697b49 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/05 06:20 upstream 84b3e42564ac ce697b49 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/05 05:40 upstream 84b3e42564ac ce697b49 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/03 19:06 upstream 7b66f4393ad4 db0f5787 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/09/30 13:56 upstream 02d5e016800d be530f6c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/18 01:38 upstream d999ade1cc86 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/17 20:55 upstream d999ade1cc86 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/16 10:20 upstream 8fe31e0995f0 0c5d9412 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/05 05:22 upstream 84b3e42564ac ce697b49 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/30 01:28 upstream 02d5e016800d be530f6c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/29 23:36 upstream 02d5e016800d be530f6c .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/21 05:44 upstream e4e737bb5c17 af796c18 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/21 03:59 upstream e4e737bb5c17 af796c18 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/19 16:52 upstream d4d016caa4b8 70b76c1d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/18 14:20 upstream 4357f03d6611 70b76c1d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/17 23:03 upstream ddf21bd8ab98 70b76c1d .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/10/03 18:17 linux-next a25006a77348 db0f5787 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/09/21 02:50 linux-next 1f77990c4b79 af796c18 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/08/10 01:43 linux-next da454ebf578f 6972b106 .config log report syz C WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/01 04:37 upstream 02d5e016800d 1d849ab4 .config log report syz WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/09/18 04:41 upstream ddf21bd8ab98 70b76c1d .config log report syz WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/17 23:10 upstream d999ade1cc86 0c5d9412 .config log report syz WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/09/30 16:59 upstream 02d5e016800d be530f6c .config log report syz WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/08/10 00:23 linux-next da454ebf578f 6972b106 .config log report syz WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 16:28 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 12:54 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/20 09:43 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/20 08:27 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 07:42 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 06:09 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/20 05:04 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 04:36 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/20 03:33 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/20 01:01 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/19 23:54 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 23:18 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/19 22:03 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/19 19:49 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 18:49 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/19 17:39 upstream d9abdee5fd5a 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/19 16:32 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 11:52 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 10:01 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 07:59 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 07:18 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/19 01:57 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 21:22 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/18 20:05 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/18 18:04 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 16:12 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 15:09 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 10:50 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce 2021/10/18 09:42 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-selinux-root 2021/10/18 08:35 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/18 07:35 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream 2021/10/18 05:29 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-root 2021/09/07 16:44 upstream 4b93c544e90e 6ca60148 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream-386 2021/10/20 15:01 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/20 13:57 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/20 11:57 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream-386 2021/10/20 10:48 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/20 10:43 upstream d9abdee5fd5a 418a00eb .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/20 02:10 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream-386 2021/10/19 20:48 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/19 13:47 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/19 04:32 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/19 03:12 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/19 01:15 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/19 00:13 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/18 23:08 upstream 519d81956ee2 24dc29db .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/18 19:02 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/18 13:04 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-kasan-gce-386 2021/10/18 11:44 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-qemu-upstream-386 2021/10/18 05:06 upstream cf52ad5ff16c 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-net-kasan-gce 2021/09/08 09:16 net-next 27151f177827 064c9eb7 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/10/18 06:32 linux-next 7c832d2f9b95 0c5d9412 .config log report info WARNING in static_key_slow_try_dec
ci-upstream-linux-next-kasan-gce-root 2021/08/09 17:21 linux-next da454ebf578f 6972b106 .config log report info WARNING in static_key_slow_try_dec