================================================================================ 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: 0 PID: 7288 Comm: syz-executor.4 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 __kernel_write_iter+0x264/0x620 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x378/0x6b4 fs/coredump.c:915 elf_core_dump+0x301c/0x3780 fs/binfmt_elf.c:2142 do_coredump+0x1548/0x23f4 fs/coredump.c:764 get_signal+0xfec/0x15ec kernel/signal.c:2878 do_signal arch/arm64/kernel/signal.c:1249 [inline] do_notify_resume+0x328/0x393c arch/arm64/kernel/signal.c:1302 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_da+0xac/0x168 arch/arm64/kernel/entry-common.c:547 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================ ================================================================================ 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: 7288 Comm: syz-executor.4 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 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+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 __kernel_write_iter+0x264/0x620 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x378/0x6b4 fs/coredump.c:915 elf_core_dump+0x301c/0x3780 fs/binfmt_elf.c:2142 do_coredump+0x1548/0x23f4 fs/coredump.c:764 get_signal+0xfec/0x15ec kernel/signal.c:2878 do_signal arch/arm64/kernel/signal.c:1249 [inline] do_notify_resume+0x328/0x393c arch/arm64/kernel/signal.c:1302 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_da+0xac/0x168 arch/arm64/kernel/entry-common.c:547 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699 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 84 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 7288 Comm: syz-executor.4 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_free_zero_link+0x374/0x598 fs/jfs/namei.c:758 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x260/0x68c fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput+0x734/0x818 fs/inode.c:1801 dentry_unlink_inode+0x370/0x4b0 fs/dcache.c:401 __dentry_kill+0x324/0x5e4 fs/dcache.c:607 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:913 __fput+0x4f0/0x7f8 fs/file_table.c:392 ____fput+0x20/0x30 fs/file_table.c:412 task_work_run+0x230/0x2e0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x63c/0x1f58 kernel/exit.c:874 do_group_exit+0x194/0x22c kernel/exit.c:1024 get_signal+0x1500/0x15ec kernel/signal.c:2892 do_signal arch/arm64/kernel/signal.c:1249 [inline] do_notify_resume+0x328/0x393c arch/arm64/kernel/signal.c:1302 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_da+0xac/0x168 arch/arm64/kernel/entry-common.c:547 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699 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 84 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 7288 Comm: syz-executor.4 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_free_zero_link+0x374/0x598 fs/jfs/namei.c:758 jfs_evict_inode+0x300/0x3f4 fs/jfs/inode.c:153 evict+0x260/0x68c fs/inode.c:664 iput_final fs/inode.c:1775 [inline] iput+0x734/0x818 fs/inode.c:1801 dentry_unlink_inode+0x370/0x4b0 fs/dcache.c:401 __dentry_kill+0x324/0x5e4 fs/dcache.c:607 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:913 __fput+0x4f0/0x7f8 fs/file_table.c:392 ____fput+0x20/0x30 fs/file_table.c:412 task_work_run+0x230/0x2e0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x63c/0x1f58 kernel/exit.c:874 do_group_exit+0x194/0x22c kernel/exit.c:1024 get_signal+0x1500/0x15ec kernel/signal.c:2892 do_signal arch/arm64/kernel/signal.c:1249 [inline] do_notify_resume+0x328/0x393c arch/arm64/kernel/signal.c:1302 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:144 [inline] el0_da+0xac/0x168 arch/arm64/kernel/entry-common.c:547 el0t_64_sync_handler+0xcc/0xfc arch/arm64/kernel/entry-common.c:699 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 ================================================================================