------------[ 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: 0 PID: 8507 Comm: syz-executor Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 dentry_unlink_inode+0x394/0x4d4 fs/dcache.c:403 __dentry_kill+0x178/0x5e8 fs/dcache.c:606 shrink_kill+0xd4/0x2cc fs/dcache.c:1051 shrink_dentry_list+0x31c/0x768 fs/dcache.c:1078 shrink_dcache_parent+0xc4/0x374 do_one_tree+0x30/0xfc fs/dcache.c:1541 shrink_dcache_for_umount+0x80/0x12c fs/dcache.c:1558 generic_shutdown_super+0x68/0x2b8 fs/super.c:620 kill_block_super+0x44/0x90 fs/super.c:1685 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff5fff8d393123 KASAN: maybe wild-memory-access in range [0xfffefffc69c98918-0xfffefffc69c9891f] 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=00000001ace37000 [ffff5fff8d393123] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 8507 Comm: syz-executor Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 : ffff8000aa127260 x29: ffff8000aa1273f0 x28: dfff800000000000 x27: 1ffff0001273d2b0 x26: ffff8000939e9000 x25: ffff700015424e68 x24: 0000000000000000 x23: 0000000000000000 x22: ffff800081a336bc x21: 0000000000000000 x20: 0000000000000000 x19: fffefffc69c988b8 x18: 1fffe000367ac9de x17: ffff80008f0fd000 x16: ffff80008032b884 x15: 0000000000000005 x14: 1ffff00015424e6c x13: 0000000000000000 x12: 0000000000000000 x11: ffff700015424e71 x10: 0000000000ff0100 x9 : 0000000000000003 x8 : 1fffdfff8d393123 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 0000000000000080 x0 : fffefffc69c98918 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 dentry_unlink_inode+0x394/0x4d4 fs/dcache.c:403 __dentry_kill+0x178/0x5e8 fs/dcache.c:606 shrink_kill+0xd4/0x2cc fs/dcache.c:1051 shrink_dentry_list+0x31c/0x768 fs/dcache.c:1078 shrink_dcache_parent+0xc4/0x374 do_one_tree+0x30/0xfc fs/dcache.c:1541 shrink_dcache_for_umount+0x80/0x12c fs/dcache.c:1558 generic_shutdown_super+0x68/0x2b8 fs/super.c:620 kill_block_super+0x44/0x90 fs/super.c:1685 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 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