BUG: spinlock bad magic on CPU#0, syz-executor.3/23034 lock: 0xffff8880b9e00040, .magic: 00000000, .owner: /-1, .owner_cpu: 0 CPU: 0 PID: 23034 Comm: syz-executor.3 Not tainted 5.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:105 debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] do_raw_spin_lock+0x216/0x2b0 kernel/locking/spinlock_debug.c:112 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0x41/0x50 kernel/locking/spinlock.c:159 srcu_might_be_idle kernel/rcu/srcutree.c:767 [inline] synchronize_srcu+0x4f/0x1c0 kernel/rcu/srcutree.c:1008 kvm_mmu_uninit_vm+0x10/0x20 arch/x86/kvm/mmu/mmu.c:5557 kvm_arch_destroy_vm+0x431/0x5e0 arch/x86/kvm/x86.c:11268 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1046 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4443 [inline] kvm_dev_ioctl+0xf0b/0x14f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4498 __do_compat_sys_ioctl+0x129/0x1a0 fs/ioctl.c:1167 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6f1f549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f67195fc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000000ae01 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 23034 Comm: syz-executor.3 Not tainted 5.14.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_segcblist_enqueue+0xb9/0x130 kernel/rcu/rcu_segcblist.c:348 Code: 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 4e 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 21 48 89 75 00 48 89 73 20 48 83 c4 08 5b 5d c3 48 RSP: 0018:ffffc90001837bd0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880b9e00080 RCX: ffffffff81542150 RDX: 0000000000000000 RSI: ffffc90001837cb8 RDI: ffff8880b9e000a0 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000306f6c R11: 3030303030302052 R12: ffffc90001837cb8 R13: ffff8880b9e00080 R14: 0000000000000000 R15: ffff8880b9e00040 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0063) knlGS:00000000f6719b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f6679db0 CR3: 0000000035008000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: srcu_gp_start_if_needed+0x116/0xbc0 kernel/rcu/srcutree.c:823 __call_srcu kernel/rcu/srcutree.c:883 [inline] __synchronize_srcu+0x21f/0x290 kernel/rcu/srcutree.c:929 kvm_mmu_uninit_vm+0x10/0x20 arch/x86/kvm/mmu/mmu.c:5557 kvm_arch_destroy_vm+0x431/0x5e0 arch/x86/kvm/x86.c:11268 kvm_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1046 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4443 [inline] kvm_dev_ioctl+0xf0b/0x14f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4498 __do_compat_sys_ioctl+0x129/0x1a0 fs/ioctl.c:1167 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6f1f549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f67195fc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000000ae01 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 40779502b9725180 ]--- RIP: 0010:rcu_segcblist_enqueue+0xb9/0x130 kernel/rcu/rcu_segcblist.c:348 Code: 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 4e 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 20 48 89 ea 48 c1 ea 03 <80> 3c 02 00 75 21 48 89 75 00 48 89 73 20 48 83 c4 08 5b 5d c3 48 RSP: 0018:ffffc90001837bd0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880b9e00080 RCX: ffffffff81542150 RDX: 0000000000000000 RSI: ffffc90001837cb8 RDI: ffff8880b9e000a0 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000003 R10: fffff52000306f6c R11: 3030303030302052 R12: ffffc90001837cb8 R13: ffff8880b9e00080 R14: 0000000000000000 R15: ffff8880b9e00040 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0063) knlGS:00000000f6719b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f6679db0 CR3: 0000000035008000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi