BUG: spinlock bad magic on CPU#0, jfsCommit/110 lock: 0xffff8880785e5cd8, .magic: ffffffff, .owner: /768, .owner_cpu: 768 CPU: 0 UID: 0 PID: 110 Comm: jfsCommit Not tainted 6.16.0-syzkaller-11105-ga6923c06a3b2 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x223/0x2b0 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x42/0x60 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:124 [inline] __wake_up+0x1c/0x60 kernel/sched/wait.c:146 unlock_metapage fs/jfs/jfs_metapage.c:40 [inline] release_metapage+0x10c/0x880 fs/jfs/jfs_metapage.c:871 discard_metapage fs/jfs/jfs_metapage.h:88 [inline] xtTruncate+0x2382/0x2ca0 fs/jfs/jfs_xtree.c:2502 jfs_free_zero_link+0x36d/0x4e0 fs/jfs/namei.c:759 jfs_evict_inode+0x422/0x4b0 fs/jfs/inode.c:153 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 txUpdateMap+0x995/0xb70 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x5f9/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 8954 is out of range for type 'long unsigned int [8]' CPU: 0 UID: 0 PID: 110 Comm: jfsCommit Not tainted 6.16.0-syzkaller-11105-ga6923c06a3b2 #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:233 [inline] __ubsan_handle_out_of_bounds+0x11c/0x160 lib/ubsan.c:455 decode_tail kernel/locking/qspinlock.h:68 [inline] __pv_queued_spin_lock_slowpath+0xcdb/0xcf0 kernel/locking/qspinlock.c:285 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:557 [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+0x20e/0x2b0 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x42/0x60 kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:124 [inline] __wake_up+0x1c/0x60 kernel/sched/wait.c:146 unlock_metapage fs/jfs/jfs_metapage.c:40 [inline] release_metapage+0x10c/0x880 fs/jfs/jfs_metapage.c:871 discard_metapage fs/jfs/jfs_metapage.h:88 [inline] xtTruncate+0x2382/0x2ca0 fs/jfs/jfs_xtree.c:2502 jfs_free_zero_link+0x36d/0x4e0 fs/jfs/namei.c:759 jfs_evict_inode+0x422/0x4b0 fs/jfs/inode.c:153 evict+0x3e6/0x920 fs/inode.c:810 iput_final fs/inode.c:1897 [inline] iput fs/inode.c:1923 [inline] iput+0x521/0x880 fs/inode.c:1909 txUpdateMap+0x995/0xb70 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x5f9/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---[ end trace ]---