================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:633:9 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4206 Comm: syz.1.23 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/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 xtInsert+0xca8/0xd28 fs/jfs/jfs_xtree.c:633 extAlloc+0x8fc/0xe68 fs/jfs/jfs_extent.c:148 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/0x66c 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 do_sendfile+0x4c0/0xcb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1311 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x264/0x408 fs/read_write.c:1303 __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 ================================================================================