BUG: spinlock bad magic on CPU#0, jfsCommit/107
lock: 0xffff888070ad89e8, .magic: ffffffff, .owner: /-1, .owner_cpu: 512
CPU: 0 PID: 107 Comm: jfsCommit Not tainted 6.1.137-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call Trace:
dump_stack_lvl+0x168/0x22e 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+0x1c2/0x280 kernel/locking/spinlock_debug.c:114
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xb0/0xf0 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0xf4/0x190 kernel/sched/wait.c:160
unlock_metapage fs/jfs/jfs_metapage.c:38 [inline]
release_metapage+0xc1/0x980 fs/jfs/jfs_metapage.c:736
xtTruncate+0xe39/0x2c60 fs/jfs/jfs_xtree.c:-1
jfs_free_zero_link+0x337/0x490 fs/jfs/namei.c:758
jfs_evict_inode+0x359/0x430 fs/jfs/inode.c:153
evict+0x485/0x870 fs/inode.c:705
txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline]
jfs_lazycommit+0x427/0xa50 fs/jfs/jfs_txnmgr.c:2732
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:131:9
index 8872 is out of range for type 'unsigned long[8]'
CPU: 0 PID: 107 Comm: jfsCommit Not tainted 6.1.137-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call Trace:
dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106
ubsan_epilogue+0xa/0x30 lib/ubsan.c:151
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282
decode_tail kernel/locking/qspinlock.c:131 [inline]
__pv_queued_spin_lock_slowpath+0x927/0x9c0 kernel/locking/qspinlock.c:471
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [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+0x217/0x280 kernel/locking/spinlock_debug.c:115
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
_raw_spin_lock_irqsave+0xb0/0xf0 kernel/locking/spinlock.c:162
__wake_up_common_lock kernel/sched/wait.c:137 [inline]
__wake_up+0xf4/0x190 kernel/sched/wait.c:160
unlock_metapage fs/jfs/jfs_metapage.c:38 [inline]
release_metapage+0xc1/0x980 fs/jfs/jfs_metapage.c:736
xtTruncate+0xe39/0x2c60 fs/jfs/jfs_xtree.c:-1
jfs_free_zero_link+0x337/0x490 fs/jfs/namei.c:758
jfs_evict_inode+0x359/0x430 fs/jfs/inode.c:153
evict+0x485/0x870 fs/inode.c:705
txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline]
jfs_lazycommit+0x427/0xa50 fs/jfs/jfs_txnmgr.c:2732
kthread+0x29d/0x330 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
================================================================================