------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(!test_bit(class_idx, lock_classes_in_use)) WARNING: kernel/locking/lockdep.c:5207 at __lock_acquire+0xfd8/0x30a4 kernel/locking/lockdep.c:-1, CPU#1: khidpd_15c25886/6689 Modules linked in: CPU: 1 UID: 0 PID: 6689 Comm: khidpd_15c25886 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 634000c5 (nZCv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : __lock_acquire+0xfd8/0x30a4 kernel/locking/lockdep.c:-1 lr : __lock_acquire+0xfd4/0x30a4 kernel/locking/lockdep.c:5207 sp : ffff8000a70c7820 x29: ffff8000a70c7900 x28: 0000000000000001 x27: ffff0000cc412778 x26: 0000000000000004 x25: ffff0000cc412798 x24: 0000000000000001 x23: 0000000000000001 x22: 0000000000000000 x21: ffff0000cc411c80 x20: ffff8000975d0000 x19: ffff8000931c1cc0 x18: 1fffe00033781890 x17: ffff80008f86e000 x16: ffff800082e5c71c x15: 0000000000000001 x14: 1fffe000337818fa x13: 0000000000000000 x12: 0000000000000000 x11: ffff6000337818fb x10: 0000000000ff0100 x9 : 759f7672526ac000 x8 : 759f7672526ac000 x7 : 4e5241575f534b43 x6 : ffff800080575c38 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807f0908 x2 : 0000000000000001 x1 : 0000000100000002 x0 : 0000000000000000 Call trace: __lock_acquire+0xfd8/0x30a4 kernel/locking/lockdep.c:-1 (P) lock_acquire+0x140/0x2e0 kernel/locking/lockdep.c:5868 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c 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+0xd24/0x2678 kernel/locking/mutex.c:701 __mutex_lock kernel/locking/mutex.c:776 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:828 l2cap_unregister_user+0x74/0x190 net/bluetooth/l2cap_core.c:1729 hidp_session_thread+0x3d0/0x490 net/bluetooth/hidp/core.c:1304 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 irq event stamp: 56 hardirqs last enabled at (55): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1570 [inline] hardirqs last enabled at (55): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:4995 hardirqs last disabled at (56): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (56): [] _raw_spin_lock_irqsave+0x2c/0x7c kernel/locking/spinlock.c:162 softirqs last enabled at (0): [] copy_process+0x10a8/0x32fc kernel/fork.c:2167 softirqs last disabled at (0): [<0000000000000000>] 0x0 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 8776 is out of range for type 'unsigned long[8]' CPU: 1 UID: 0 PID: 6689 Comm: khidpd_15c25886 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 ubsan_epilogue+0x14/0x48 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xd0/0xfc lib/ubsan.c:455 decode_tail kernel/locking/qspinlock.h:68 [inline] queued_spin_lock_slowpath+0x9f0/0xae8 kernel/locking/qspinlock.c:285 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x2a8/0x2cc kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x64/0x7c 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+0xd24/0x2678 kernel/locking/mutex.c:701 __mutex_lock kernel/locking/mutex.c:776 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:828 l2cap_unregister_user+0x74/0x190 net/bluetooth/l2cap_core.c:1729 hidp_session_thread+0x3d0/0x490 net/bluetooth/hidp/core.c:1304 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff80008f7d1940 KASAN: probably user-memory-access in range [0x000000047be8ca00-0x000000047be8ca07] Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000206d55000 [ffff80008f7d1940] pgd=0000000000000000, p4d=100000020f59b003, pud=100000020f59c003, pmd=100000020f5a0003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] SMP Modules linked in: CPU: 1 UID: 0 PID: 6689 Comm: khidpd_15c25886 Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/03/2025 pstate: 834000c5 (Nzcv daIF +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x858/0xae8 kernel/locking/qspinlock.c:288 lr : decode_tail kernel/locking/qspinlock.h:68 [inline] lr : queued_spin_lock_slowpath+0x9f0/0xae8 kernel/locking/qspinlock.c:285 sp : ffff8000a70c7820 x29: ffff8000a70c78c0 x28: 1fffe0001b96d00c x27: ffff80008f7d1940 x26: ffff80008f7d1940 x25: dfff800000000000 x24: ffff700014e18f08 x23: ffff00019bc22948 x22: 1fffe00033784528 x21: ffff00019bc22940 x20: ffff0000cc411c90 x19: ffff0000dcb68060 x18: 1fffe00033781890 x17: 363a682e6b636f6c x16: ffff800082e5c71c x15: ffff70001261fa64 x14: 1ffff0001261fa64 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff70001261fa64 x10: ffff80008f7d1940 x9 : 0000000000000000 x8 : 0000000000000000 x7 : 0000000000000001 x6 : ffff800080575c38 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000803c8274 x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff00019bc22948 Call trace: queued_spin_lock_slowpath+0x858/0xae8 kernel/locking/qspinlock.c:291 (P) queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x2a8/0x2cc kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x64/0x7c 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+0xd24/0x2678 kernel/locking/mutex.c:701 __mutex_lock kernel/locking/mutex.c:776 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:828 l2cap_unregister_user+0x74/0x190 net/bluetooth/l2cap_core.c:1729 hidp_session_thread+0x3d0/0x490 net/bluetooth/hidp/core.c:1304 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Code: aa1a03e0 974810fe aa1703e0 52800081 (f9000355) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1a03e0 mov x0, x26 4: 974810fe bl 0xfffffffffd2043fc 8: aa1703e0 mov x0, x23 c: 52800081 mov w1, #0x4 // #4 * 10: f9000355 str x21, [x26] <-- trapping instruction