BUG: spinlock bad magic on CPU#1, syz.3.488/7149 lock: 0xffff888076a56800, .magic: ffff8880, .owner: /-1, .owner_cpu: 2060869496 CPU: 1 UID: 0 PID: 7149 Comm: syz.3.488 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 spin_bug kernel/locking/spinlock_debug.c:78 [inline] debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x1e5/0x2f0 kernel/locking/spinlock_debug.c:115 spin_lock_irq include/linux/spinlock.h:377 [inline] gadget_dev_open+0x4b/0x1b0 drivers/usb/gadget/legacy/inode.c:1929 do_dentry_open+0x80e/0x1360 fs/open.c:1000 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4913 [inline] path_openat+0x14d7/0x1e40 fs/namei.c:5078 do_file_open+0x23e/0x4a0 fs/namei.c:5107 do_sys_openat2+0x115/0x200 fs/open.c:1452 do_sys_open fs/open.c:1458 [inline] __do_sys_openat fs/open.c:1474 [inline] __se_sys_openat fs/open.c:1469 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1469 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55fc19e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f55fcfaf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f55fc425fa0 RCX: 00007f55fc19e159 RDX: 0000000000008202 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007f55fc23503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55fc426038 R14: 00007f55fc425fa0 R15: 00007ffcedad8748 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 3233 is out of range for type 'unsigned long[8]' CPU: 1 UID: 0 PID: 7149 Comm: syz.3.488 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:455 decode_tail kernel/locking/qspinlock.h:68 [inline] __pv_queued_spin_lock_slowpath+0xaf3/0xbc0 kernel/locking/qspinlock.c:307 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt-spinlock.h:37 [inline] queued_spin_lock_slowpath arch/x86/include/asm/paravirt-spinlock.h:71 [inline] queued_spin_lock include/asm-generic/qspinlock.h:115 [inline] do_raw_spin_lock+0x26c/0x2f0 kernel/locking/spinlock_debug.c:116 spin_lock_irq include/linux/spinlock.h:377 [inline] gadget_dev_open+0x4b/0x1b0 drivers/usb/gadget/legacy/inode.c:1929 do_dentry_open+0x80e/0x1360 fs/open.c:1000 vfs_open_consume+0x4a/0x350 fs/open.c:1131 do_open fs/namei.c:4913 [inline] path_openat+0x14d7/0x1e40 fs/namei.c:5078 do_file_open+0x23e/0x4a0 fs/namei.c:5107 do_sys_openat2+0x115/0x200 fs/open.c:1452 do_sys_open fs/open.c:1458 [inline] __do_sys_openat fs/open.c:1474 [inline] __se_sys_openat fs/open.c:1469 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1469 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f55fc19e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f55fcfaf028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f55fc425fa0 RCX: 00007f55fc19e159 RDX: 0000000000008202 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007f55fc23503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f55fc426038 R14: 00007f55fc425fa0 R15: 00007ffcedad8748 ---[ end trace ]---