syzbot


INFO: trying to register non-static key in l2cap_unregister_user

Status: upstream: reported on 2025/10/16 15:35
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+cdba6d325676d9602f21@syzkaller.appspotmail.com
First crash: 108d, last: 4d19h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bluetooth?] INFO: trying to register non-static key in l2cap_unregister_user 0 (1) 2025/10/16 15:35
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: trying to register non-static key in l2cap_unregister_user -1 1 14d 14d 0/3 upstream: reported on 2026/01/14 08:17

Sample crash report:
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 0 UID: 0 PID: 17888 Comm: khidpd_10000008 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120
 assign_lock_key kernel/locking/lockdep.c:984 [inline]
 register_lock_class+0x497/0x4b0 kernel/locking/lockdep.c:1299
 __lock_acquire+0xa4/0x2890 kernel/locking/lockdep.c:5112
 lock_acquire kernel/locking/lockdep.c:5868 [inline]
 lock_acquire+0x179/0x330 kernel/locking/lockdep.c:5825
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
 class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:557 [inline]
 set_task_blocked_on include/linux/sched.h:2165 [inline]
 __mutex_lock_common kernel/locking/mutex.c:701 [inline]
 __mutex_lock+0xca5/0x1ca0 kernel/locking/mutex.c:776
 l2cap_unregister_user+0x71/0x240 net/bluetooth/l2cap_core.c:1729
 hidp_session_thread+0x45e/0x680 net/bluetooth/hidp/core.c:1304
 kthread+0x3c5/0x780 kernel/kthread.c:463
 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
 non-slab/vmalloc memory
list_del corruption. prev->next should be ffffc9000c43fbf0, but was 0000000000000000. (prev=ffff8880342780a8)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:62!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 17888 Comm: khidpd_10000008 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__list_del_entry_valid_or_report+0x17a/0x200 lib/list_debug.c:62
Code: 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 8d 00 00 00 48 8b 55 00 48 89 e9 48 89 de 48 c7 c7 a0 b8 f2 8b e8 a7 99 e7 fc 90 <0f> 0b 4c 89 e7 e8 3c 1d 4f fd 48 89 ea 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc9000c43fac0 EFLAGS: 00010086
RAX: 000000000000006d RBX: ffffc9000c43fbf0 RCX: ffffffff819c8f65
RDX: 0000000000000000 RSI: ffffffff819d0b49 RDI: 0000000000000005
RBP: ffff8880342780a8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000072490 R12: ffff8880342780a8
R13: dffffc0000000000 R14: ffff888034278058 R15: ffff888034278058
FS:  0000000000000000(0000) GS:ffff8881248f5000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555582f3e648 CR3: 00000000757af000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:132 [inline]
 __list_del_entry include/linux/list.h:223 [inline]
 list_del include/linux/list.h:237 [inline]
 __mutex_remove_waiter+0x1a/0x1a0 kernel/locking/mutex.c:221
 __mutex_lock_common kernel/locking/mutex.c:742 [inline]
 __mutex_lock+0x12f6/0x1ca0 kernel/locking/mutex.c:776
 l2cap_unregister_user+0x71/0x240 net/bluetooth/l2cap_core.c:1729
 hidp_session_thread+0x45e/0x680 net/bluetooth/hidp/core.c:1304
 kthread+0x3c5/0x780 kernel/kthread.c:463
 ret_from_fork+0x983/0xb10 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:246
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x17a/0x200 lib/list_debug.c:62
Code: 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 8d 00 00 00 48 8b 55 00 48 89 e9 48 89 de 48 c7 c7 a0 b8 f2 8b e8 a7 99 e7 fc 90 <0f> 0b 4c 89 e7 e8 3c 1d 4f fd 48 89 ea 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc9000c43fac0 EFLAGS: 00010086
RAX: 000000000000006d RBX: ffffc9000c43fbf0 RCX: ffffffff819c8f65
RDX: 0000000000000000 RSI: ffffffff819d0b49 RDI: 0000000000000005
RBP: ffff8880342780a8 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000072490 R12: ffff8880342780a8
R13: dffffc0000000000 R14: ffff888034278058 R15: ffff888034278058
FS:  0000000000000000(0000) GS:ffff8881248f5000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555582f3e648 CR3: 00000000757af000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/23 17:08 upstream b927546677c8 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: trying to register non-static key in l2cap_unregister_user
2025/12/19 13:37 upstream dd9b004b7ff3 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: trying to register non-static key in l2cap_unregister_user
2025/10/12 15:30 upstream 67029a49db6c ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: trying to register non-static key in l2cap_unregister_user
2026/01/15 04:27 upstream 944aacb68baf d1b870e1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 INFO: trying to register non-static key in l2cap_unregister_user
2025/12/14 20:34 net 885bebac9909 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in l2cap_unregister_user
2025/12/12 21:55 net 885bebac9909 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce INFO: trying to register non-static key in l2cap_unregister_user
2025/12/31 05:35 linux-next cc3aa43b44bd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: trying to register non-static key in l2cap_unregister_user
2026/01/24 09:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59e4d31a0470 4f25b9b4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: trying to register non-static key in l2cap_unregister_user
2026/01/20 00:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59e4d31a0470 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: trying to register non-static key in l2cap_unregister_user
2025/12/26 11:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f0b4cce4481 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: trying to register non-static key in l2cap_unregister_user
* Struck through repros no longer work on HEAD.