------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: CPU: 1 PID: 9821 at kernel/locking/lockdep.c:4801 __lock_acquire+0x1044/0x5590 kernel/locking/lockdep.c:4801 Modules linked in: CPU: 1 PID: 9821 Comm: kworker/1:5 Not tainted 5.10.0-rc3-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+0x1044/0x5590 kernel/locking/lockdep.c:4801 Code: d2 0f 85 ac 32 00 00 44 8b 3d 70 e6 96 0b 45 85 ff 0f 85 af fd ff ff 48 c7 c6 e0 88 4b 89 48 c7 c7 80 5a 4b 89 e8 d6 22 57 07 <0f> 0b e9 98 fd ff ff b9 02 00 00 00 e9 ac f5 ff ff 48 c7 c2 20 a9 RSP: 0000:ffffc900160cf908 EFLAGS: 00010086 RAX: 0000000000000000 RBX: 0000000000b72172 RCX: 0000000000000000 RDX: ffff888018f09a40 RSI: ffffffff8158e0c5 RDI: fffff52002c19f13 RBP: ffff888018f0a3f0 R08: 0000000000000001 R09: ffff8880b9f2005b R10: 0000000000000000 R11: 0000000000000001 R12: ffff888018f09a40 R13: ffff888018f0a412 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000016a9e60 CR3: 0000000013394000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5436 [inline] lock_acquire+0x2a3/0x8c0 kernel/locking/lockdep.c:5401 __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