loop2: detected capacity change from 0 to 32768 ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:622:9 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 8335 Comm: syz.2.1316 Not tainted 6.1.114-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x1c8/0x1f4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __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+0xfc/0x148 lib/ubsan.c:282 xtInsert+0xd04/0xd70 fs/jfs/jfs_xtree.c:622 extAlloc+0x87c/0xdec fs/jfs/jfs_extent.c:145 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x340/0x13b4 fs/buffer.c:1991 __block_write_begin fs/buffer.c:2041 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2102 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:304 generic_perform_write+0x278/0x55c mm/filemap.c:3845 __generic_file_write_iter+0x168/0x388 mm/filemap.c:3973 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4005 do_iter_write+0x534/0x964 fs/read_write.c:861 vfs_iter_write+0x88/0xac fs/read_write.c:902 iter_file_splice_write+0x62c/0xc5c fs/splice.c:685 do_splice_from fs/splice.c:763 [inline] direct_splice_actor+0xe4/0x1c0 fs/splice.c:950 splice_direct_to_actor+0x3c4/0x9b4 fs/splice.c:896 do_splice_direct+0x20c/0x348 fs/splice.c:1002 generic_copy_file_range fs/read_write.c:1393 [inline] vfs_copy_file_range+0x9fc/0x122c fs/read_write.c:1539 __do_sys_copy_file_range fs/read_write.c:1596 [inline] __se_sys_copy_file_range fs/read_write.c:1559 [inline] __arm64_sys_copy_file_range+0x578/0x914 fs/read_write.c:1559 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================