BUG: spinlock bad magic on CPU#0, kbnepd bnep0/7377 lock: 0xffff0000d923d708, .magic: ffff8000, .owner: hþCÓiz8h/-1860567040, .owner_cpu: -1965222728 CPU: 0 PID: 7377 Comm: kbnepd bnep0 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 spin_dump kernel/locking/spinlock_debug.c:70 [inline] spin_bug+0x124/0x240 kernel/locking/spinlock_debug.c:78 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x1f0/0x348 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] pm_runtime_set_memalloc_noio+0x114/0x210 drivers/base/power/runtime.c:228 netdev_unregister_kobject+0x148/0x208 net/core/net-sysfs.c:2106 unregister_netdevice_many_notify+0x117c/0x1770 net/core/dev.c:11129 unregister_netdevice_many net/core/dev.c:11157 [inline] unregister_netdevice_queue net/core/dev.c:11036 [inline] unregister_netdevice include/linux/netdevice.h:3115 [inline] unregister_netdev+0x180/0x1f8 net/core/dev.c:11175 bnep_session+0x23bc/0x257c net/bluetooth/bnep/core.c:525 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:131:9 index 8229 is out of range for type 'unsigned long[8]' CPU: 0 PID: 7377 Comm: kbnepd bnep0 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xf8/0x148 lib/ubsan.c:415 decode_tail kernel/locking/qspinlock.c:131 [inline] queued_spin_lock_slowpath+0x984/0xd38 kernel/locking/qspinlock.c:471 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x320/0x348 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] pm_runtime_set_memalloc_noio+0x114/0x210 drivers/base/power/runtime.c:228 netdev_unregister_kobject+0x148/0x208 net/core/net-sysfs.c:2106 unregister_netdevice_many_notify+0x117c/0x1770 net/core/dev.c:11129 unregister_netdevice_many net/core/dev.c:11157 [inline] unregister_netdevice_queue net/core/dev.c:11036 [inline] unregister_netdevice include/linux/netdevice.h:3115 [inline] unregister_netdev+0x180/0x1f8 net/core/dev.c:11175 bnep_session+0x23bc/0x257c net/bluetooth/bnep/core.c:525 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff80008ede8afc KASAN: probably user-memory-access in range [0x0000000476f457e0-0x0000000476f457e7] 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=00000001ad5bd000 [ffff80008ede8afc] pgd=0000000000000000, p4d=10000001b26f7003, pud=10000001b26f8003, pmd=10000001b26fc003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 7377 Comm: kbnepd bnep0 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 804010c5 (Nzcv daIF +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x3d4/0xd38 kernel/locking/qspinlock.c:474 lr : decode_tail kernel/locking/qspinlock.c:131 [inline] lr : queued_spin_lock_slowpath+0x984/0xd38 kernel/locking/qspinlock.c:471 sp : ffff80009e8c7680 x29: ffff80009e8c7720 x28: 000000000000809b x27: 1ffff00013d18edc x26: dfff800000000000 x25: 1fffe0001b247ae1 x24: 0000000000040000 x23: ffff0001b3de1ac8 x22: ffff80008ede8afc x21: ffff0001b3de1ac0 x20: 1fffe000367bc358 x19: ffff0000d923d708 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008ae725bc x15: ffff7000124347f0 x14: 1ffff000124347f0 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff7000124347f0 x10: ffff80008ede8ac0 x9 : 0000000000000003 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009e8c6db8 x4 : ffff80008ef650a0 x3 : ffff8000801ce878 x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff0001b3de1ac8 Call trace: queued_spin_lock_slowpath+0x3d4/0xd38 kernel/locking/qspinlock.c:477 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x320/0x348 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 spin_lock_irq include/linux/spinlock.h:376 [inline] pm_runtime_set_memalloc_noio+0x114/0x210 drivers/base/power/runtime.c:228 netdev_unregister_kobject+0x148/0x208 net/core/net-sysfs.c:2106 unregister_netdevice_many_notify+0x117c/0x1770 net/core/dev.c:11129 unregister_netdevice_many net/core/dev.c:11157 [inline] unregister_netdevice_queue net/core/dev.c:11036 [inline] unregister_netdevice include/linux/netdevice.h:3115 [inline] unregister_netdev+0x180/0x1f8 net/core/dev.c:11175 bnep_session+0x23bc/0x257c net/bluetooth/bnep/core.c:525 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Code: aa1603e0 973edfc5 aa1703e0 52800081 (f90002d5) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1603e0 mov x0, x22 4: 973edfc5 bl 0xfffffffffcfb7f18 8: aa1703e0 mov x0, x23 c: 52800081 mov w1, #0x4 // #4 * 10: f90002d5 str x21, [x22] <-- trapping instruction