------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.h:68:9 index 8962 is out of range for type 'unsigned long[8]' CPU: 0 UID: 0 PID: 108 Comm: jfsCommit Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x30 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe8/0xf0 lib/ubsan.c:455 decode_tail kernel/locking/qspinlock.h:68 [inline] native_queued_spin_lock_slowpath+0x920/0x960 kernel/locking/qspinlock.c:285 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt-spinlock.h:35 [inline] queued_spin_lock_slowpath arch/x86/include/asm/paravirt-spinlock.h:66 [inline] queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x26c/0x2f0 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock_irqsave+0x4c/0x60 kernel/locking/spinlock.c:166 __wake_up_common_lock+0x30/0x1f0 kernel/sched/wait.c:124 unlock_metapage fs/jfs/jfs_metapage.c:40 [inline] release_metapage+0x131/0xa60 fs/jfs/jfs_metapage.c:872 xtTruncate+0xeaa/0x2eb0 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x35b/0x4c0 fs/jfs/namei.c:760 jfs_evict_inode+0x356/0x430 fs/jfs/inode.c:159 evict+0x624/0xb50 fs/inode.c:828 txLazyCommit fs/jfs/jfs_txnmgr.c:2666 [inline] jfs_lazycommit+0x44c/0xac0 fs/jfs/jfs_txnmgr.c:2735 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---[ end trace ]---