BUG: spinlock bad magic on CPU#1, jfsCommit/113
lock: 0xffff88805ee2a5a8, .magic: ffffffff, .owner: /-1, .owner_cpu: 512
CPU: 1 PID: 113 Comm: jfsCommit Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
spin_bug kernel/locking/spinlock_debug.c:77 [inline]
debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline]
do_raw_spin_lock+0x1c6/0x2c0 kernel/locking/spinlock_debug.c:114
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xb4/0xf0 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0xf8/0x190 kernel/sched/wait.c:160
unlock_metapage fs/jfs/jfs_metapage.c:38 [inline]
release_metapage+0xc5/0x870 fs/jfs/jfs_metapage.c:765
xtTruncate+0xe65/0x2dc0 fs/jfs/jfs_xtree.c:-1
jfs_free_zero_link+0x33b/0x490 fs/jfs/namei.c:758
jfs_evict_inode+0x35d/0x440 fs/jfs/inode.c:159
evict+0x486/0x870 fs/inode.c:705
txLazyCommit fs/jfs/jfs_txnmgr.c:2665 [inline]
jfs_lazycommit+0x42b/0xa60 fs/jfs/jfs_txnmgr.c:2733
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:131:9
index 8887 is out of range for type 'unsigned long[8]'
CPU: 1 PID: 113 Comm: jfsCommit Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
ubsan_epilogue+0xa/0x30 lib/ubsan.c:217
__ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348
decode_tail kernel/locking/qspinlock.c:131 [inline]
__pv_queued_spin_lock_slowpath+0x92b/0x9d0 kernel/locking/qspinlock.c:471
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:586 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
do_raw_spin_lock+0x24e/0x2c0 kernel/locking/spinlock_debug.c:115
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xb4/0xf0 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0xf8/0x190 kernel/sched/wait.c:160
unlock_metapage fs/jfs/jfs_metapage.c:38 [inline]
release_metapage+0xc5/0x870 fs/jfs/jfs_metapage.c:765
xtTruncate+0xe65/0x2dc0 fs/jfs/jfs_xtree.c:-1
jfs_free_zero_link+0x33b/0x490 fs/jfs/namei.c:758
jfs_evict_inode+0x35d/0x440 fs/jfs/inode.c:159
evict+0x486/0x870 fs/inode.c:705
txLazyCommit fs/jfs/jfs_txnmgr.c:2665 [inline]
jfs_lazycommit+0x42b/0xa60 fs/jfs/jfs_txnmgr.c:2733
kthread+0x2fa/0x390 kernel/kthread.c:388
ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
================================================================================