[syzbot] [usb?] WARNING: locking bug in gadget_dev_open
syzbot <[email protected]> Thu, 30 Jul 2026 23:47:23 -0700
| Newsgroups | org.kernel.vger.linux-usb,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hello, syzbot found the following issue on: HEAD commit: 4235cb24ec1e Merge tag 'vfs-7.2-rc5.fixes' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1749bfde580000 kernel config: https://syzkaller.appspot.com/x/.config?x=f221a1b5d497ed15 dashboard link: https://syzkaller.appspot.com/bug?extid=3dfcbe7ab191ca685ce7 compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 userspace arch: i386 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/d900f083ada3/non_bootable_disk-4235cb24.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/68eef4847f46/vmlinux-4235cb24.xz kernel image: https://storage.googleapis.com/syzbot-assets/77e73df69f7f/bzImage-4235cb24.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: [email protected] ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: kernel/locking/lockdep.c:5207 at __lock_acquire+0x1469/0x1a40 kernel/locking/lockdep.c:5207, CPU#0: syz.4.1249/10653 Modules linked in: CPU: 0 UID: 0 PID: 10653 Comm: syz.4.1249 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__lock_acquire+0x1470/0x1a40 kernel/locking/lockdep.c:5207 Code: 33 03 85 c0 74 10 44 8b 15 bd 7b 3d 0f 45 85 d2 0f 84 f7 01 00 00 90 e9 7a fd ff ff 48 8d 3d 57 e6 40 0f 48 c7 c6 30 c1 2b 8e <67> 48 0f b9 3a e9 cd fb ff ff 89 c6 48 c7 c7 f0 1e 6f 9b e8 48 15 RSP: 0018:ffffc9000db3f828 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffff888024728ba0 RCX: ffffc900297c1000 RDX: 0000000000080000 RSI: ffffffff8e2bc130 RDI: ffffffff91263b30 RBP: ffff888024728000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff99926684 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff888096be3000(0063) knlGS:00000000f54adb40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000000c32c279 CR3: 000000004b285000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000e08e000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: <TASK> lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5825 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:174 spin_lock_irq include/linux/spinlock.h:372 [inline] gadget_dev_open+0x44/0x1b0 drivers/usb/gadget/legacy/inode.c:1919 do_dentry_open+0x6ab/0x14d0 fs/open.c:947 vfs_open+0x82/0x3f0 fs/open.c:1052 do_open fs/namei.c:4700 [inline] path_openat+0x2873/0x4280 fs/namei.c:4863 do_file_open+0x20e/0x430 fs/namei.c:4892 do_sys_openat2+0x10f/0x1e0 fs/open.c:1368 do_sys_open fs/open.c:1374 [inline] __do_compat_sys_openat fs/open.c:1436 [inline] __se_compat_sys_openat fs/open.c:1434 [inline] __ia32_compat_sys_openat+0x12d/0x210 fs/open.c:1434 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0xe7/0x970 arch/x86/entry/syscall_32.c:307 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:332 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf70befec Code: Unable to access opcode bytes at 0xf70befc2. RSP: 002b:00000000f54ad50c EFLAGS: 00000292 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 00000000ffffff9c RCX: 0000000080000300 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 </TASK> ---------------- Code disassembly (best guess): 0: 33 03 xor (%rbx),%eax 2: 85 c0 test %eax,%eax 4: 74 10 je 0x16 6: 44 8b 15 bd 7b 3d 0f mov 0xf3d7bbd(%rip),%r10d # 0xf3d7bca d: 45 85 d2 test %r10d,%r10d 10: 0f 84 f7 01 00 00 je 0x20d 16: 90 nop 17: e9 7a fd ff ff jmp 0xfffffd96 1c: 48 8d 3d 57 e6 40 0f lea 0xf40e657(%rip),%rdi # 0xf40e67a 23: 48 c7 c6 30 c1 2b 8e mov $0xffffffff8e2bc130,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 cd fb ff ff jmp 0xfffffc01 34: 89 c6 mov %eax,%esi 36: 48 c7 c7 f0 1e 6f 9b mov $0xffffffff9b6f1ef0,%rdi 3d: e8 .byte 0xe8 3e: 48 rex.W 3f: 15 .byte 0x15 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected]. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup