syzbot


BUG: spinlock bad magic in skb_queue_tail (2)

Status: closed as invalid on 2025/07/30 09:20
Subsystems: hams
[Documentation on labels]
First crash: 65d, last: 65d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: spinlock bad magic in skb_queue_tail afs net 4 1 987d 983d 0/29 auto-obsoleted due to no activity on 2023/03/19 17:50

Sample crash report:
BUG: spinlock bad magic on CPU#0, syz.3.1106/10881
 lock: 0xffff88805759f450, .magic: ffff8880, .owner: A1ԼEt:}t聸XzQIBA1觼Et=euT+M$FeH@럌K/67205, .owner_cpu: 1465513040
CPU: 0 UID: 0 PID: 10881 Comm: syz.3.1106 Not tainted 6.16.0-rc3-syzkaller-00902-gbeead7eea896 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 spin_bug kernel/locking/spinlock_debug.c:78 [inline]
 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
 do_raw_spin_lock+0x1ca/0x290 kernel/locking/spinlock_debug.c:115
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0xb3/0xf0 kernel/locking/spinlock.c:162
 skb_queue_tail+0x30/0xf0 net/core/skbuff.c:4033
 rose_transmit_link+0x2ea/0x740 net/rose/rose_link.c:281
 rose_write_internal+0x11dc/0x1ac0 net/rose/rose_subr.c:198
 rose_connect+0x8ee/0x10a0 net/rose/af_rose.c:879
 __sys_connect_file net/socket.c:2086 [inline]
 __sys_connect+0x313/0x440 net/socket.c:2105
 __do_sys_connect net/socket.c:2111 [inline]
 __se_sys_connect net/socket.c:2108 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2108
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff53458e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff53548c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007ff5347b6080 RCX: 00007ff53458e929
RDX: 000000000000001c RSI: 0000200000000100 RDI: 0000000000000007
RBP: 00007ff534610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff5347b6080 R15: 00007ffdd5fc1fa8
 </TASK>
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9
index 5589 is out of range for type 'unsigned long[8]'
CPU: 0 UID: 0 PID: 10881 Comm: syz.3.1106 Not tainted 6.16.0-rc3-syzkaller-00902-gbeead7eea896 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 ubsan_epilogue+0xa/0x40 lib/ubsan.c:233
 __ubsan_handle_out_of_bounds+0xe9/0xf0 lib/ubsan.c:455
 decode_tail kernel/locking/qspinlock.h:68 [inline]
 __pv_queued_spin_lock_slowpath+0xaaf/0xb60 kernel/locking/qspinlock.c:285
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [inline]
 queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock+0x21f/0x290 kernel/locking/spinlock_debug.c:116
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0xb3/0xf0 kernel/locking/spinlock.c:162
 skb_queue_tail+0x30/0xf0 net/core/skbuff.c:4033
 rose_transmit_link+0x2ea/0x740 net/rose/rose_link.c:281
 rose_write_internal+0x11dc/0x1ac0 net/rose/rose_subr.c:198
 rose_connect+0x8ee/0x10a0 net/rose/af_rose.c:879
 __sys_connect_file net/socket.c:2086 [inline]
 __sys_connect+0x313/0x440 net/socket.c:2105
 __do_sys_connect net/socket.c:2111 [inline]
 __se_sys_connect net/socket.c:2108 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2108
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff53458e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff53548c038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007ff5347b6080 RCX: 00007ff53458e929
RDX: 000000000000001c RSI: 0000200000000100 RDI: 0000000000000007
RBP: 00007ff534610b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff5347b6080 R15: 00007ffdd5fc1fa8
 </TASK>
---[ end trace ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/29 04:35 net-next beead7eea896 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: spinlock bad magic in skb_queue_tail
* Struck through repros no longer work on HEAD.