------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_imap.c:886:2 index -134217728 is out of range for type 'struct mutex[128]' CPU: 1 PID: 98 Comm: jfsCommit Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_out_of_bounds+0xf8/0x148 lib/ubsan.c:429 diFree+0x197c/0x2648 fs/jfs/jfs_imap.c:886 jfs_evict_inode+0x2d0/0x3f4 fs/jfs/inode.c:156 evict+0x260/0x68c fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput+0x74c/0x830 fs/inode.c:1767 txUpdateMap+0x73c/0x8e4 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x3bc/0x9a8 fs/jfs/jfs_txnmgr.c:2733 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff5fff8a964123 KASAN: maybe wild-memory-access in range [0xfffefffc54b20918-0xfffefffc54b2091f] Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004, ISS2 = 0x00000000 CM = 0, WnR = 0, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001accd3000 [ffff5fff8a964123] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 98 Comm: jfsCommit Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0xf4/0x21a0 kernel/locking/mutex.c:587 lr : __mutex_lock_common+0xcc/0x21a0 kernel/locking/mutex.c:585 sp : ffff800095f175c0 x29: ffff800095f17750 x28: dfff800000000000 x27: 1ffff000127514b0 x26: ffff800093a8a000 x25: ffff700012be2ed4 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800081a5a498 x21: 0000000000000000 x20: 0000000000000000 x19: fffefffc54b208b8 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008033656c x15: 0000000000000005 x14: 1ffff00012be2ed8 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700012be2edd x10: 0000000000ff0100 x9 : 0000000000000003 x8 : 1fffdfff8a964123 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 0000000000000080 x0 : fffefffc54b20918 Call trace: __mutex_lock_common+0xf4/0x21a0 kernel/locking/mutex.c:587 __mutex_lock kernel/locking/mutex.c:752 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:804 diFree+0x2cc/0x2648 fs/jfs/jfs_imap.c:886 jfs_evict_inode+0x2d0/0x3f4 fs/jfs/inode.c:156 evict+0x260/0x68c fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput+0x74c/0x830 fs/inode.c:1767 txUpdateMap+0x73c/0x8e4 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x3bc/0x9a8 fs/jfs/jfs_txnmgr.c:2733 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Code: b9458348 35000128 91018260 d343fc08 (387c6908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: b9458348 ldr w8, [x26, #1408] 4: 35000128 cbnz w8, 0x28 8: 91018260 add x0, x19, #0x60 c: d343fc08 lsr x8, x0, #3 * 10: 387c6908 ldrb w8, [x8, x28] <-- trapping instruction