================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_txnmgr.c:1743:5 index 18 is out of range for type 'xad_t[18]' (aka 'struct xad[18]') CPU: 1 PID: 30398 Comm: syz-executor.5 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x11c/0x150 lib/ubsan.c:348 xtLog fs/jfs/jfs_txnmgr.c:1743 [inline] txLog fs/jfs/jfs_txnmgr.c:1396 [inline] txCommit+0x3f0b/0x6ba0 fs/jfs/jfs_txnmgr.c:1264 jfs_commit_inode+0x366/0x580 fs/jfs/inode.c:108 extAlloc+0xcac/0x1000 fs/jfs/jfs_extent.c:172 jfs_get_block+0x41b/0xe60 fs/jfs/inode.c:248 __block_write_begin_int+0x555/0x1a40 fs/buffer.c:2107 __block_write_begin fs/buffer.c:2157 [inline] block_write_begin+0x9b/0x1e0 fs/buffer.c:2216 jfs_write_begin+0x31/0x70 fs/jfs/inode.c:299 generic_perform_write+0x31b/0x630 mm/filemap.c:3942 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4063 __kernel_write_iter+0x32a/0x7c0 fs/read_write.c:517 dump_emit_page fs/coredump.c:888 [inline] dump_user_range+0x46c/0x910 fs/coredump.c:915 elf_core_dump+0x3b75/0x4490 fs/binfmt_elf.c:2142 do_coredump+0x1b73/0x2ab0 fs/coredump.c:764 get_signal+0x145e/0x1840 kernel/signal.c:2878 arch_do_signal_or_restart+0x96/0x860 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0x9/0x40 kernel/entry/common.c:309 exc_page_fault+0x57c/0x860 arch/x86/mm/fault.c:1564 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f561a227797 Code: fa 09 00 e8 db fa ff ff 48 8d 3d 81 fa 09 00 e8 cf fa ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 53 89 fb 48 83 ec 10 <64> 8b 04 25 ac ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f561b0550e0 EFLAGS: 00010202 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f561a27cae9 RDX: 00007f561b055100 RSI: 00007f561b055230 RDI: 000000000000000b RBP: 00007f561a2c847a R08: 0000000000000000 R09: 0000000000000058 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f561a39bf80 R15: 00007ffcc619fd98 ================================================================================