------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 14482 at kernel/locking/lockdep.c:4985 __lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985 Modules linked in: CPU: 0 PID: 14482 Comm: kworker/0:13 Not tainted 5.14.0-next-20210830-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events sco_sock_timeout RIP: 0010:__lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985 Code: d2 0f 85 8b 31 00 00 44 8b 35 8e a1 13 0c 45 85 f6 0f 85 b3 fd ff ff 48 c7 c6 e0 25 8c 89 48 c7 c7 e0 f5 8b 89 e8 d7 23 95 07 <0f> 0b e9 9c fd ff ff bd 02 00 00 00 e9 6e f5 ff ff 45 31 f6 e9 14 RSP: 0018:ffffc90004417a88 EFLAGS: 00010082 RAX: 0000000000000000 RBX: fffffffffff46a59 RCX: 0000000000000000 RDX: ffff8880248f5580 RSI: ffffffff815dba38 RDI: fffff52000882f43 RBP: ffff8880248f5ff2 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815d581e R11: 0000000000000000 R12: ffff8880248f5fd0 R13: ffff8880248f5580 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e02e000 CR3: 000000007f10f000 CR4: 00000000001506f0 Call Trace: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:373 [inline] lock_sock_nested+0x40/0x120 net/core/sock.c:3183 lock_sock include/net/sock.h:1612 [inline] sco_sock_timeout+0xd2/0x290 net/bluetooth/sco.c:96 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2297 worker_thread+0x658/0x11f0 kernel/workqueue.c:2444 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295