------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use))
WARNING: CPU: 0 PID: 2585 at kernel/locking/lockdep.c:4985 __lock_acquire+0x1086/0x54a0 kernel/locking/lockdep.c:4985
Modules linked in:
CPU: 0 PID: 2585 Comm: kworker/0:1 Not tainted 5.14.0-rc1-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
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 4e b1 11 0c 45 85 f6 0f 85 b3 fd ff ff 48 c7 c6 20 08 8c 89 48 c7 c7 20 d8 8b 89 e8 eb ac 8c 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:ffffc9000e457910 EFLAGS: 00010086
RAX: 0000000000000000 RBX: fffffffffff46907 RCX: 0000000000000000
RDX: ffff888015f254c0 RSI: ffffffff815d6855 RDI: fffff52001c8af14
RBP: ffff888015f25f72 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff815d068e R11: 0000000000000000 R12: ffff888015f25f50
R13: ffff888015f254c0 R14: 0000000000000000 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000816c0d0 CR3: 000000006f1bf000 CR4: 0000000000150ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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:175
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 lock_sock_nested+0x40/0x120 net/core/sock.c:3162
 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+0x98d/0x1630 kernel/workqueue.c:2276
 worker_thread+0x658/0x11f0 kernel/workqueue.c:2422
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295