================================================================================ 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: 0 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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+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 get_more_blocks fs/direct-io.c:673 [inline] do_direct_IO fs/direct-io.c:959 [inline] do_blockdev_direct_IO fs/direct-io.c:1276 [inline] __blockdev_direct_IO+0x139c/0x3824 fs/direct-io.c:1368 blockdev_direct_IO include/linux/fs.h:3346 [inline] jfs_direct_IO+0xf4/0x1e0 fs/jfs/inode.c:343 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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:281:11 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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+0xc94/0x156c fs/jfs/jfs_xtree.c:281 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 get_more_blocks fs/direct-io.c:673 [inline] do_direct_IO fs/direct-io.c:959 [inline] do_blockdev_direct_IO fs/direct-io.c:1276 [inline] __blockdev_direct_IO+0x139c/0x3824 fs/direct-io.c:1368 blockdev_direct_IO include/linux/fs.h:3346 [inline] jfs_direct_IO+0xf4/0x1e0 fs/jfs/inode.c:343 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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 34 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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 xtLookup+0x230/0x710 fs/jfs/jfs_xtree.c:163 jfs_get_block+0x26c/0xbfc fs/jfs/inode.c:218 nobh_truncate_page+0x2dc/0x658 fs/buffer.c:2841 jfs_truncate fs/jfs/inode.c:420 [inline] jfs_write_failed+0xfc/0x1a0 fs/jfs/inode.c:312 jfs_direct_IO+0x1b4/0x1e0 fs/jfs/inode.c:354 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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 34 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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+0x550/0x156c fs/jfs/jfs_xtree.c:371 xtLookup+0x230/0x710 fs/jfs/jfs_xtree.c:163 jfs_get_block+0x26c/0xbfc fs/jfs/inode.c:218 nobh_truncate_page+0x2dc/0x658 fs/buffer.c:2841 jfs_truncate fs/jfs/inode.c:420 [inline] jfs_write_failed+0xfc/0x1a0 fs/jfs/inode.c:312 jfs_direct_IO+0x1b4/0x1e0 fs/jfs/inode.c:354 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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 34 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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 xtLookup+0x230/0x710 fs/jfs/jfs_xtree.c:163 jfs_get_block+0x26c/0xbfc fs/jfs/inode.c:218 nobh_truncate_page+0x2dc/0x658 fs/buffer.c:2841 jfs_truncate fs/jfs/inode.c:420 [inline] jfs_write_failed+0xfc/0x1a0 fs/jfs/inode.c:312 jfs_direct_IO+0x1b4/0x1e0 fs/jfs/inode.c:354 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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:3265:9 index 65 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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 xtTruncate+0x205c/0x2b10 fs/jfs/jfs_xtree.c:3265 jfs_truncate_nolock+0x168/0x324 fs/jfs/inode.c:399 jfs_truncate fs/jfs/inode.c:423 [inline] jfs_write_failed+0x128/0x1a0 fs/jfs/inode.c:312 jfs_direct_IO+0x1b4/0x1e0 fs/jfs/inode.c:354 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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:3295:10 index 65 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 4438 Comm: syz.0.71 Not tainted 5.15.173-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 xtTruncate+0x9d8/0x2b10 fs/jfs/jfs_xtree.c:3295 jfs_truncate_nolock+0x168/0x324 fs/jfs/inode.c:399 jfs_truncate fs/jfs/inode.c:423 [inline] jfs_write_failed+0x128/0x1a0 fs/jfs/inode.c:312 jfs_direct_IO+0x1b4/0x1e0 fs/jfs/inode.c:354 generic_file_direct_write+0x234/0x538 mm/filemap.c:3687 __generic_file_write_iter+0x280/0x454 mm/filemap.c:3869 generic_file_write_iter+0xb4/0x1b8 mm/filemap.c:3944 call_write_iter include/linux/fs.h:2174 [inline] aio_write+0x604/0x8dc fs/aio.c:1594 io_submit_one+0x878/0x161c fs/aio.c:2013 __do_sys_io_submit fs/aio.c:2072 [inline] __se_sys_io_submit fs/aio.c:2042 [inline] __arm64_sys_io_submit+0x26c/0x3ec fs/aio.c:2042 __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 ================================================================================