------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 16521 at kernel/locking/lockdep.c:4985 __lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985 Modules linked in: CPU: 0 PID: 16521 Comm: kworker/0:8 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events l2cap_chan_timeout RIP: 0010:__lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985 Code: d2 0f 85 8b 31 00 00 44 8b 35 ee d3 12 0c 45 85 f6 0f 85 b3 fd ff ff 48 c7 c6 e0 2b 8c 89 48 c7 c7 e0 fb 8b 89 e8 b6 b7 97 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:ffffc9000371f920 EFLAGS: 00010086 RAX: 0000000000000000 RBX: 0000000001448144 RCX: 0000000000000000 RDX: ffff88802221d580 RSI: ffffffff815e88a8 RDI: fffff520006e3f16 RBP: ffff88802221e062 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815e264e R11: 0000000000000000 R12: ffff88802221e040 R13: ffff88802221d580 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2de2b000 CR3: 000000003bef9000 CR4: 0000000000350ef0 Call Trace: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 lock_sock_nested+0x2f/0xf0 net/core/sock.c:3203 l2cap_sock_teardown_cb+0xa1/0x660 net/bluetooth/l2cap_sock.c:1528 l2cap_chan_del+0xbc/0xa80 net/bluetooth/l2cap_core.c:622 l2cap_chan_close+0x1b9/0xaf0 net/bluetooth/l2cap_core.c:825 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:436 process_one_work+0x9bf/0x16b0 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