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: 15502 Comm: syz-executor.2 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 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+0x46c/0x158c fs/buffer.c:2120 __block_write_begin fs/buffer.c:2169 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2228 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 generic_perform_write+0x28c/0x588 mm/filemap.c:3969 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4064 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x628/0x93c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:2304:9 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 15502 Comm: syz-executor.2 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 xtTruncate+0x1fd0/0x2a08 fs/jfs/jfs_xtree.c:2304 jfs_truncate_nolock+0x15c/0x2fc fs/jfs/inode.c:388 jfs_truncate fs/jfs/inode.c:412 [inline] jfs_write_failed+0x128/0x1a0 fs/jfs/inode.c:289 jfs_write_end+0x80/0xa8 fs/jfs/inode.c:314 generic_perform_write+0x394/0x588 mm/filemap.c:3980 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4064 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x628/0x93c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:2334:10 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 15502 Comm: syz-executor.2 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 xtTruncate+0x9cc/0x2a08 fs/jfs/jfs_xtree.c:2334 jfs_truncate_nolock+0x15c/0x2fc fs/jfs/inode.c:388 jfs_truncate fs/jfs/inode.c:412 [inline] jfs_write_failed+0x128/0x1a0 fs/jfs/inode.c:289 jfs_write_end+0x80/0xa8 fs/jfs/inode.c:314 generic_perform_write+0x394/0x588 mm/filemap.c:3980 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4064 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x628/0x93c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_txnmgr.c:2020:23 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 15502 Comm: syz-executor.2 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xfc/0x148 lib/ubsan.c:348 xtLog fs/jfs/jfs_txnmgr.c:2020 [inline] txLog fs/jfs/jfs_txnmgr.c:1396 [inline] txCommit+0x48e0/0x5574 fs/jfs/jfs_txnmgr.c:1264 jfs_truncate_nolock+0x1fc/0x2fc fs/jfs/inode.c:399 jfs_truncate fs/jfs/inode.c:412 [inline] jfs_write_failed+0x128/0x1a0 fs/jfs/inode.c:289 jfs_write_end+0x80/0xa8 fs/jfs/inode.c:314 generic_perform_write+0x394/0x588 mm/filemap.c:3980 __generic_file_write_iter+0xfc/0x204 mm/filemap.c:4064 generic_file_write_iter+0xb8/0x2b4 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x628/0x93c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================