BUG: spinlock bad magic on CPU#1, jfsCommit/103 lock: 0xffff0000f5cac130, .magic: ffff8000, .owner: /-171260744, .owner_cpu: 768 CPU: 1 UID: 0 PID: 103 Comm: jfsCommit Not tainted 6.15.0-rc2-syzkaller-gc72692105976 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x1028 lib/dump_stack.c:129 spin_dump kernel/locking/spinlock_debug.c:70 [inline] spin_bug+0x118/0x1e8 kernel/locking/spinlock_debug.c:78 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x1d8/0x334 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x64/0x7c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:105 [inline] __wake_up+0x38/0x1b0 kernel/sched/wait.c:127 unlock_metapage fs/jfs/jfs_metapage.c:39 [inline] release_metapage+0x164/0xa38 fs/jfs/jfs_metapage.c:763 xtTruncate+0xc78/0x2a08 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x374/0x598 fs/jfs/namei.c:759 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x430/0x958 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput+0x740/0x8e8 fs/inode.c:1924 txUpdateMap+0x85c/0xa18 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x3bc/0x9c8 fs/jfs/jfs_txnmgr.c:2733 kthread+0x674/0x7dc kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 8950 is out of range for type 'unsigned long[8]' CPU: 1 UID: 0 PID: 103 Comm: jfsCommit Not tainted 6.15.0-rc2-syzkaller-gc72692105976 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x1028 lib/dump_stack.c:129 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_out_of_bounds+0xf8/0x148 lib/ubsan.c:453 decode_tail kernel/locking/qspinlock.h:68 [inline] queued_spin_lock_slowpath+0x978/0xd04 kernel/locking/qspinlock.c:285 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x2ec/0x334 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x64/0x7c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:105 [inline] __wake_up+0x38/0x1b0 kernel/sched/wait.c:127 unlock_metapage fs/jfs/jfs_metapage.c:39 [inline] release_metapage+0x164/0xa38 fs/jfs/jfs_metapage.c:763 xtTruncate+0xc78/0x2a08 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x374/0x598 fs/jfs/namei.c:759 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x430/0x958 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput+0x740/0x8e8 fs/inode.c:1924 txUpdateMap+0x85c/0xa18 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x3bc/0x9c8 fs/jfs/jfs_txnmgr.c:2733 kthread+0x674/0x7dc kernel/kthread.c:464 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 ---[ end trace ]---