------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 0 PID: 14260 at kernel/locking/lockdep.c:4800 __lock_acquire+0x1065/0x5c00 kernel/locking/lockdep.c:4800 Modules linked in: CPU: 0 PID: 14260 Comm: kworker/0:13 Not tainted 5.10.0-rc4-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+0x1065/0x5c00 kernel/locking/lockdep.c:4800 Code: d2 0f 85 ed 48 00 00 44 8b 3d 3f fd 96 0b 45 85 ff 0f 85 ae fd ff ff 48 c7 c6 60 89 4b 89 48 c7 c7 00 5b 4b 89 e8 25 96 56 07 <0f> 0b e9 97 fd ff ff b9 02 00 00 00 e9 a0 f5 ff ff 48 c7 c2 20 e9 RSP: 0018:ffffc900019b7900 EFLAGS: 00010082 RAX: 0000000000000000 RBX: fffffffffff5a41c RCX: 0000000000000000 RDX: ffff888059aa1a40 RSI: ffffffff8158f3c5 RDI: fffff52000336f12 RBP: ffff888059aa1a40 R08: 0000000000000001 R09: ffff8880b9e2011b R10: 0000000000000000 R11: 0000000000000001 R12: ffff888059aa23f0 R13: ffff888059aa2412 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000540 CR3: 000000005b696000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5435 [inline] lock_acquire+0x2a3/0x8c0 kernel/locking/lockdep.c:5400 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] lock_sock_nested+0x3b/0x110 net/core/sock.c:3036 l2cap_sock_teardown_cb+0xa1/0x660 net/bluetooth/l2cap_sock.c:1520 l2cap_chan_del+0xbc/0xa80 net/bluetooth/l2cap_core.c:618 l2cap_chan_close+0x1bc/0xaf0 net/bluetooth/l2cap_core.c:823 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:436 process_one_work+0x933/0x15a0 kernel/workqueue.c:2272 worker_thread+0x64c/0x1120 kernel/workqueue.c:2418 kthread+0x3af/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296