================================================================================ 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: 0 PID: 10376 Comm: syz-executor.4 Not tainted 6.2.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: dump_stack_lvl+0x12e/0x1d0 __ubsan_handle_out_of_bounds+0xac/0xd0 xtTruncate+0x2257/0x2c90 jfs_truncate_nolock+0x18b/0x340 jfs_truncate+0xb3/0x120 jfs_setattr+0x38b/0x630 notify_change+0x8da/0xbf0 do_truncate+0x1af/0x2b0 path_openat+0x260d/0x2b80 do_filp_open+0x25f/0x4b0 do_sys_openat2+0x100/0x420 __x64_sys_open+0x1ef/0x240 do_syscall_64+0x41/0xc0 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f19cca8c0d9 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:00007f19cd79d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f19ccbac2c0 RCX: 00007f19cca8c0d9 RDX: 0000000000000000 RSI: 000000000014d27e RDI: 0000000020000180 RBP: 00007f19ccae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcd2d66c8f R14: 00007f19cd79d300 R15: 0000000000022000 ================================================================================