INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 26194 Comm: kworker/1:1 Not tainted 5.12.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events l2cap_chan_timeout Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x176/0x24e lib/dump_stack.c:120 register_lock_class+0xd87/0x1310 kernel/locking/lockdep.c:934 __lock_acquire+0x106/0x5e60 kernel/locking/lockdep.c:4779 lock_acquire+0x126/0x650 kernel/locking/lockdep.c:5510 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] lock_sock_nested+0x48/0x110 net/core/sock.c:3063 l2cap_sock_teardown_cb+0x76/0x360 net/bluetooth/l2cap_sock.c:1520 l2cap_chan_del+0xaf/0x610 net/bluetooth/l2cap_core.c:618 l2cap_chan_timeout+0x12c/0x280 net/bluetooth/l2cap_core.c:436 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 6414c067 P4D 6414c067 PUD 6414d067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 26194 Comm: kworker/1:1 Not tainted 5.12.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:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc9001696fc10 EFLAGS: 00010246 RAX: 1ffff1100ee4c88c RBX: ffff8880772643f0 RCX: ffff88807ed4b780 RDX: 0000000000000000 RSI: ffffffff8d863f40 RDI: ffff888077264000 RBP: ffff888077264012 R08: 0000000000000001 R09: ffffffff888ec011 R10: 0000000000000004 R11: ffff88807ed4b780 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888077264000 R15: ffff8880256d3020 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000006414b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: l2cap_sock_teardown_cb+0x1db/0x360 net/bluetooth/l2cap_sock.c:1545 l2cap_chan_del+0xaf/0x610 net/bluetooth/l2cap_core.c:618 l2cap_chan_timeout+0x12c/0x280 net/bluetooth/l2cap_core.c:436 process_one_work+0x789/0xfd0 kernel/workqueue.c:2275 worker_thread+0xac1/0x1300 kernel/workqueue.c:2421 kthread+0x39a/0x3c0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Modules linked in: CR2: 0000000000000000 ---[ end trace 93163df81bdb23f7 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc9001696fc10 EFLAGS: 00010246 RAX: 1ffff1100ee4c88c RBX: ffff8880772643f0 RCX: ffff88807ed4b780 RDX: 0000000000000000 RSI: ffffffff8d863f40 RDI: ffff888077264000 RBP: ffff888077264012 R08: 0000000000000001 R09: ffffffff888ec011 R10: 0000000000000004 R11: ffff88807ed4b780 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888077264000 R15: ffff8880256d3020 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000006414b000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400