BUG: spinlock bad magic on CPU#1, syz-executor.0/8102 lock: 0xffff88812c100040, .magic: 00000000, .owner: /-1, .owner_cpu: 0 CPU: 1 PID: 8102 Comm: syz-executor.0 Not tainted 5.9.0-rc8-syzkaller #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+0xa3/0xc8 lib/dump_stack.c:118 spin_bug kernel/locking/spinlock_debug.c:75 [inline] debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] do_raw_spin_lock+0x6c/0xc0 kernel/locking/spinlock_debug.c:112 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0x60/0x80 kernel/locking/spinlock.c:159 srcu_might_be_idle kernel/rcu/srcutree.c:772 [inline] synchronize_srcu+0x34/0xf0 kernel/rcu/srcutree.c:999 kvm_arch_destroy_vm+0x1e1/0x280 arch/x86/kvm/x86.c:10063 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:820 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3914 [inline] kvm_dev_ioctl+0x6e6/0x830 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3966 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x7c/0xb0 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de29 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f610b537c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000011180 RCX: 000000000045de29 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007fffb343b39f R14: 00007f610b5389c0 R15: 000000000118bf2c BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 102931067 P4D 102931067 PUD 102b5b067 PMD 0 Oops: 0002 [#1] PREEMPT SMP CPU: 1 PID: 8102 Comm: syz-executor.0 Not tainted 5.9.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_segcblist_enqueue+0x29/0x40 kernel/rcu/rcu_segcblist.c:250 Code: 00 f0 83 44 24 fc 00 48 8b 47 48 48 83 c0 01 48 89 47 48 f0 83 44 24 fc 00 f0 83 44 24 fc 00 48 c7 06 00 00 00 00 48 8b 47 20 <48> 89 30 48 89 77 20 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 RSP: 0018:ffffc90002be3d70 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffc90002be3de0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffc90002be3de0 RDI: ffff88812c100080 RBP: ffffc90002be3dd0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88812c100000 R13: ffff88812c100080 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f610b538700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010288f000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __call_srcu+0x11c/0x4c0 kernel/rcu/srcutree.c:859 __synchronize_srcu+0xc5/0x170 kernel/rcu/srcutree.c:923 kvm_arch_destroy_vm+0x1e1/0x280 arch/x86/kvm/x86.c:10063 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:820 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3914 [inline] kvm_dev_ioctl+0x6e6/0x830 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3966 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x7c/0xb0 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45de29 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f610b537c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000011180 RCX: 000000000045de29 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007fffb343b39f R14: 00007f610b5389c0 R15: 000000000118bf2c Modules linked in: CR2: 0000000000000000 ---[ end trace a01ae43f3356a264 ]--- RIP: 0010:rcu_segcblist_enqueue+0x29/0x40 kernel/rcu/rcu_segcblist.c:250 Code: 00 f0 83 44 24 fc 00 48 8b 47 48 48 83 c0 01 48 89 47 48 f0 83 44 24 fc 00 f0 83 44 24 fc 00 48 c7 06 00 00 00 00 48 8b 47 20 <48> 89 30 48 89 77 20 c3 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 RSP: 0018:ffffc90002be3d70 EFLAGS: 00010086 RAX: 0000000000000000 RBX: ffffc90002be3de0 RCX: 0000000000000000 RDX: 0000000000000001 RSI: ffffc90002be3de0 RDI: ffff88812c100080 RBP: ffffc90002be3dd0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88812c100000 R13: ffff88812c100080 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f610b538700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000010288f000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400