UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:360:4 index 18 is out of range for type 'xad_t [18]' CPU: 1 PID: 5961 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-12454-g1c7873e33645 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x136/0x150 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0xd5/0x140 lib/ubsan.c:348 xtSearch+0x11b5/0x1690 fs/jfs/jfs_xtree.c:360 xtLookup+0x242/0x8a0 fs/jfs/jfs_xtree.c:152 extHint+0x214/0x4e0 fs/jfs/jfs_extent.c:215 jfs_get_block+0x2a0/0xa90 fs/jfs/inode.c:246 __block_write_begin_int+0x3b1/0x14a0 fs/buffer.c:2128 __block_write_begin fs/buffer.c:2178 [inline] block_write_begin+0xb9/0x4d0 fs/buffer.c:2239 jfs_write_begin+0x31/0xd0 fs/jfs/inode.c:299 generic_perform_write+0x26b/0x5d0 mm/filemap.c:3923 __generic_file_write_iter+0x1cf/0x240 mm/filemap.c:4014 generic_file_write_iter+0xe3/0x350 mm/filemap.c:4044 call_write_iter include/linux/fs.h:1871 [inline] do_iter_readv_writev+0x211/0x3b0 fs/read_write.c:735 do_iter_write+0x182/0x810 fs/read_write.c:860 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901 iter_file_splice_write+0x73b/0xc70 fs/splice.c:739 do_splice_from fs/splice.c:934 [inline] direct_splice_actor+0x11a/0x190 fs/splice.c:1143 splice_direct_to_actor+0x366/0xa00 fs/splice.c:1089 do_splice_direct+0x1aa/0x280 fs/splice.c:1195 do_sendfile+0xb9c/0x1380 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x1d0/0x210 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbf8328c389 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbf83f18168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fbf833ac050 RCX: 00007fbf8328c389 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 000000000000000f RBP: 00007fbf832d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc3323d4df R14: 00007fbf83f18300 R15: 0000000000022000 ================================================================================