================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_txnmgr.c:1777:5 index 18 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 10115 Comm: syz-executor.4 Not tainted 5.15.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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 xtLog fs/jfs/jfs_txnmgr.c:1777 [inline] txLog fs/jfs/jfs_txnmgr.c:1396 [inline] txCommit+0x2d94/0x55b0 fs/jfs/jfs_txnmgr.c:1264 jfs_commit_inode+0x2ac/0x4f8 fs/jfs/inode.c:108 extAlloc+0xa6c/0xe68 fs/jfs/jfs_extent.c:175 jfs_get_block+0x34c/0xbfc fs/jfs/inode.c:258 nobh_write_begin+0x2d8/0xa28 fs/buffer.c:2650 jfs_write_begin+0x58/0xa0 fs/jfs/inode.c:322 generic_perform_write+0x24c/0x520 mm/filemap.c:3785 __generic_file_write_iter+0x230/0x454 mm/filemap.c:3912 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x664 fs/read_write.c:855 vfs_iter_write+0x88/0xac fs/read_write.c:896 iter_file_splice_write+0x618/0xc48 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:936 splice_direct_to_actor+0x408/0x9a0 fs/splice.c:891 do_splice_direct+0x1f4/0x334 fs/splice.c:979 generic_copy_file_range fs/read_write.c:1385 [inline] vfs_copy_file_range+0x944/0x1130 fs/read_write.c:1531 __do_sys_copy_file_range fs/read_write.c:1588 [inline] __se_sys_copy_file_range fs/read_write.c:1551 [inline] __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================