================================================================================ 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: 6949 Comm: syz.0.436 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 diFree+0x1994/0x26c0 fs/jfs/jfs_imap.c:886 jfs_evict_inode+0x2d8/0x408 fs/jfs/inode.c:156 evict+0x260/0x68c fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput+0x744/0x824 fs/inode.c:1731 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:380 __dentry_kill+0x324/0x5e4 fs/dcache.c:586 dentry_kill+0xc8/0x250 dput+0x21c/0x458 fs/dcache.c:893 __fput+0x494/0x800 fs/file_table.c:288 ____fput+0x20/0x30 fs/file_table.c:308 task_work_run+0x130/0x1e4 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ Unable to handle kernel paging request at virtual address ffff5fff8d91c123 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 CM = 0, WnR = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001b44e0000 [ffff5fff8d91c123] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6949 Comm: syz.0.436 Not tainted 5.15.164-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __mutex_lock_common+0xf8/0x2154 kernel/locking/mutex.c:575 lr : __mutex_lock_common+0xd0/0x2154 kernel/locking/mutex.c:573 sp : ffff80001efc7280 x29: ffff80001efc7410 x28: dfff800000000000 x27: 1ffff000030c09a4 x26: ffff800018604000 x25: ffff700003df8e6c x24: 0000000000000000 x23: 0000000000000000 x22: ffff8000098b2cc4 x21: 0000000000000000 x20: 0000000000000000 x19: fffefffc6c8e08b8 x18: 1fffe000368f698e x17: 1fffe000368f698e x16: ffff8000082ea3f4 x15: ffff800014b5edc0 x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000005 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000003 x8 : 1fffdfff8d91c123 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : ffff800011c0bfc0 x0 : fffefffc6c8e0918 Call trace: __mutex_lock_common+0xf8/0x2154 kernel/locking/mutex.c:575 __mutex_lock kernel/locking/mutex.c:729 [inline] mutex_lock_nested+0xa4/0xf8 kernel/locking/mutex.c:743 diFree+0x2cc/0x26c0 fs/jfs/jfs_imap.c:886 jfs_evict_inode+0x2d8/0x408 fs/jfs/inode.c:156 evict+0x260/0x68c fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput+0x744/0x824 fs/inode.c:1731 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:380 __dentry_kill+0x324/0x5e4 fs/dcache.c:586 dentry_kill+0xc8/0x250 dput+0x21c/0x458 fs/dcache.c:893 __fput+0x494/0x800 fs/file_table.c:288 ____fput+0x20/0x30 fs/file_table.c:308 task_work_run+0x130/0x1e4 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x262c/0x32b8 arch/arm64/kernel/signal.c:946 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xfc/0x1f0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: b94d2348 35000128 91018260 d343fc08 (387c6908) ---[ end trace 9f06a8cb765d7e6a ]--- ---------------- Code disassembly (best guess): 0: b94d2348 ldr w8, [x26, #3360] 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