================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:270:11 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 5499 Comm: syz.4.359 Not tainted 6.1.119-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 xtSearch+0xc94/0x156c fs/jfs/jfs_xtree.c:270 xtLookup+0x230/0x710 fs/jfs/jfs_xtree.c:152 extHint+0x200/0x544 fs/jfs/jfs_extent.c:215 jfs_get_block+0x2e4/0xb98 fs/jfs/inode.c:246 __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 __kernel_write_iter+0x264/0x600 fs/read_write.c:517 dump_emit_page fs/coredump.c:881 [inline] dump_user_range+0x384/0x6b8 fs/coredump.c:908 elf_core_dump+0x2fe4/0x3714 fs/binfmt_elf.c:2313 do_coredump+0x14a0/0x2234 fs/coredump.c:755 get_signal+0xfd8/0x158c kernel/signal.c:2857 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x2f8/0x2cb8 arch/arm64/kernel/signal.c:1129 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xb8/0x184 arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:179:9 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 5499 Comm: syz.4.359 Not tainted 6.1.119-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 xtLookup+0x70c/0x710 fs/jfs/jfs_xtree.c:179 extHint+0x200/0x544 fs/jfs/jfs_extent.c:215 jfs_get_block+0x2e4/0xb98 fs/jfs/inode.c:246 __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 __kernel_write_iter+0x264/0x600 fs/read_write.c:517 dump_emit_page fs/coredump.c:881 [inline] dump_user_range+0x384/0x6b8 fs/coredump.c:908 elf_core_dump+0x2fe4/0x3714 fs/binfmt_elf.c:2313 do_coredump+0x14a0/0x2234 fs/coredump.c:755 get_signal+0xfd8/0x158c kernel/signal.c:2857 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x2f8/0x2cb8 arch/arm64/kernel/signal.c:1129 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xb8/0x184 arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================ ================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:1370:9 index 19 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 0 PID: 5499 Comm: syz.4.359 Not tainted 6.1.119-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 xtExtend+0x10fc/0x1334 fs/jfs/jfs_xtree.c:1370 extAlloc+0x84c/0xdec fs/jfs/jfs_extent.c:143 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 __kernel_write_iter+0x264/0x600 fs/read_write.c:517 dump_emit_page fs/coredump.c:881 [inline] dump_user_range+0x384/0x6b8 fs/coredump.c:908 elf_core_dump+0x2fe4/0x3714 fs/binfmt_elf.c:2313 do_coredump+0x14a0/0x2234 fs/coredump.c:755 get_signal+0xfd8/0x158c kernel/signal.c:2857 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x2f8/0x2cb8 arch/arm64/kernel/signal.c:1129 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xb8/0x184 arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================ ================================================================================ 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: 5499 Comm: syz.4.359 Not tainted 6.1.119-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 xtTruncate+0x1fd0/0x2a08 fs/jfs/jfs_xtree.c:2304 jfs_free_zero_link+0x374/0x598 fs/jfs/namei.c:758 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x418/0x894 fs/inode.c:701 iput_final fs/inode.c:1830 [inline] iput+0x7c0/0x8a4 fs/inode.c:1856 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:405 __dentry_kill+0x324/0x5e4 fs/dcache.c:611 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:918 __fput+0x488/0x7c8 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x240/0x2f0 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x554/0x1a88 kernel/exit.c:871 do_group_exit+0x194/0x22c kernel/exit.c:1021 get_signal+0x14a0/0x158c kernel/signal.c:2871 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x2f8/0x2cb8 arch/arm64/kernel/signal.c:1129 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xb8/0x184 arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================ ================================================================================ 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: 5499 Comm: syz.4.359 Not tainted 6.1.119-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 xtTruncate+0x9cc/0x2a08 fs/jfs/jfs_xtree.c:2334 jfs_free_zero_link+0x374/0x598 fs/jfs/namei.c:758 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x418/0x894 fs/inode.c:701 iput_final fs/inode.c:1830 [inline] iput+0x7c0/0x8a4 fs/inode.c:1856 dentry_unlink_inode+0x37c/0x4bc fs/dcache.c:405 __dentry_kill+0x324/0x5e4 fs/dcache.c:611 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:918 __fput+0x488/0x7c8 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x240/0x2f0 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x554/0x1a88 kernel/exit.c:871 do_group_exit+0x194/0x22c kernel/exit.c:1021 get_signal+0x14a0/0x158c kernel/signal.c:2871 do_signal arch/arm64/kernel/signal.c:1076 [inline] do_notify_resume+0x2f8/0x2cb8 arch/arm64/kernel/signal.c:1129 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_da+0xb8/0x184 arch/arm64/kernel/entry-common.c:516 el0t_64_sync_handler+0xcc/0xf0 arch/arm64/kernel/entry-common.c:658 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ================================================================================