------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: kernel/locking/lockdep.c:5224 at __lock_acquire+0x2664/0x2e50 kernel/locking/lockdep.c:5224, CPU#0: syz.2.3741/19267 Modules linked in: CPU: 0 UID: 0 PID: 19267 Comm: syz.2.3741 Tainted: G S L syzkaller #0 PREEMPT(lazy) Tainted: [S]=CPU_OUT_OF_SPEC, [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:__lock_acquire+0x266b/0x2e50 kernel/locking/lockdep.c:5224 Code: e4 45 31 ed e9 ee 00 00 00 90 e8 80 9b 40 03 85 c0 74 1c 83 3d c9 6a f8 0e 00 75 13 48 8d 3d 5c 75 fb 0e 48 c7 c6 8f 03 61 8e <67> 48 0f b9 3a 90 31 ed e9 04 ee ff ff 48 89 fb e8 50 9b 40 03 e8 RSP: 0018:ffffc900034c77d8 EFLAGS: 00010046 RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90005c01000 RSI: ffffffff8e61038f RDI: ffffffff909ee120 RBP: 0000000000000000 R08: ffffffff909bd683 R09: 1ffffffff2137ad0 R10: dffffc0000000000 R11: fffffbfff2137ad1 R12: ffffffffffffff05 R13: 0000000000000000 R14: ffff888029104a30 R15: 0000000000000000 FS: 00007f9a335306c0(0000) GS:ffff88812488b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c25b5e9 CR3: 000000004f29c000 CR4: 00000000003526f0 Call Trace: lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:165 [inline] _raw_spin_lock_irq+0x3d/0x50 kernel/locking/spinlock.c:189 spin_lock_irq include/linux/spinlock.h:377 [inline] gadget_dev_open+0x4b/0x1b0 drivers/usb/gadget/legacy/inode.c:1928 do_dentry_open+0x816/0x1380 fs/open.c:996 vfs_open+0x3b/0x340 fs/open.c:1101 do_open fs/namei.c:4837 [inline] path_openat+0x1443/0x1d60 fs/namei.c:5000 do_file_open+0x23e/0x4a0 fs/namei.c:5029 do_sys_openat2+0x115/0x200 fs/open.c:1417 do_sys_open fs/open.c:1423 [inline] __do_sys_openat fs/open.c:1439 [inline] __se_sys_openat fs/open.c:1434 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1434 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:0x7f9a3259e0d9 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:00007f9a33530028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f9a32825fa0 RCX: 00007f9a3259e0d9 RDX: 0000000000000802 RSI: 0000200000000300 RDI: ffffffffffffff9c RBP: 00007f9a32635024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9a32826038 R14: 00007f9a32825fa0 R15: 00007ffdc77125f8 ---------------- Code disassembly (best guess): 0: e4 45 in $0x45,%al 2: 31 ed xor %ebp,%ebp 4: e9 ee 00 00 00 jmp 0xf7 9: 90 nop a: e8 80 9b 40 03 call 0x3409b8f f: 85 c0 test %eax,%eax 11: 74 1c je 0x2f 13: 83 3d c9 6a f8 0e 00 cmpl $0x0,0xef86ac9(%rip) # 0xef86ae3 1a: 75 13 jne 0x2f 1c: 48 8d 3d 5c 75 fb 0e lea 0xefb755c(%rip),%rdi # 0xefb757f 23: 48 c7 c6 8f 03 61 8e mov $0xffffffff8e61038f,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 90 nop 30: 31 ed xor %ebp,%ebp 32: e9 04 ee ff ff jmp 0xffffee3b 37: 48 89 fb mov %rdi,%rbx 3a: e8 50 9b 40 03 call 0x3409b8f 3f: e8 .byte 0xe8