================================================================================ 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: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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/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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:629:12 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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+0xcd8/0xd28 fs/jfs/jfs_xtree.c:629 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_txnmgr.c:1775:21 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:1775 [inline] txLog fs/jfs/jfs_txnmgr.c:1396 [inline] txCommit+0x2d64/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/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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_txnmgr.c:1776:20 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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:1776 [inline] txLog fs/jfs/jfs_txnmgr.c:1396 [inline] txCommit+0x2d7c/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/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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:371:4 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 xtSearch+0x518/0x156c fs/jfs/jfs_xtree.c:371 xtInsert+0x190/0xd28 fs/jfs/jfs_xtree.c:552 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:371:4 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 xtSearch+0x580/0x156c fs/jfs/jfs_xtree.c:371 xtInsert+0x190/0xd28 fs/jfs/jfs_xtree.c:552 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:430:11 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 xtSearch+0xc54/0x156c fs/jfs/jfs_xtree.c:430 xtInsert+0x190/0xd28 fs/jfs/jfs_xtree.c:552 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:430:11 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 xtSearch+0xc7c/0x156c fs/jfs/jfs_xtree.c:430 xtInsert+0x190/0xd28 fs/jfs/jfs_xtree.c:552 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:629:32 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4143 Comm: syz.3.12 Not tainted 5.15.169-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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+0xcf0/0xd28 fs/jfs/jfs_xtree.c:629 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:1317 [inline] __se_sys_sendfile64 fs/read_write.c:1303 [inline] __arm64_sys_sendfile64+0x160/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 ================================================================================