BUG: spinlock bad magic on CPU#1, jfsCommit/276 lock: 0xffff88805f67dd28, .magic: ffffffff, .owner: тс|c/0, .owner_cpu: 512 CPU: 1 PID: 276 Comm: jfsCommit Not tainted 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/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+0x1c2/0x280 kernel/locking/spinlock_debug.c:114 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xb0/0xf0 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xed/0x180 kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x154/0xe10 fs/jfs/jfs_metapage.c:737 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:647 txLazyCommit fs/jfs/jfs_txnmgr.c:2698 [inline] jfs_lazycommit+0x437/0xb20 fs/jfs/jfs_txnmgr.c:2766 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9 index 8847 is out of range for type 'unsigned long[8]' CPU: 1 PID: 276 Comm: jfsCommit Not tainted 5.15.187-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x230 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:130 [inline] __pv_queued_spin_lock_slowpath+0x919/0x9c0 kernel/locking/qspinlock.c:468 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath+0x43/0x50 arch/x86/include/asm/qspinlock.h:51 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x217/0x280 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xb0/0xf0 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xed/0x180 kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x154/0xe10 fs/jfs/jfs_metapage.c:737 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:647 txLazyCommit fs/jfs/jfs_txnmgr.c:2698 [inline] jfs_lazycommit+0x437/0xb20 fs/jfs/jfs_txnmgr.c:2766 kthread+0x436/0x520 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 ================================================================================