================================================================================ 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]' CPU: 0 PID: 32092 Comm: syz-executor.5 Not tainted 6.2.0-rc4-syzkaller-00350-gedc00350d205 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0xe0/0x110 lib/ubsan.c:282 xtTruncate+0x2778/0x32d0 fs/jfs/jfs_xtree.c:2304 jfs_free_zero_link+0x3f5/0x680 fs/jfs/namei.c:758 jfs_evict_inode+0x35a/0x440 fs/jfs/inode.c:153 evict+0x2a4/0x620 fs/inode.c:664 __dentry_kill+0x3b1/0x5b0 fs/dcache.c:607 dentry_kill+0xbb/0x290 dput+0x1f3/0x410 fs/dcache.c:913 __fput+0x5e4/0x880 fs/file_table.c:328 task_work_run+0x243/0x300 kernel/task_work.c:179 get_signal+0x1606/0x17c0 kernel/signal.c:2635 arch_do_signal_or_restart+0x7b/0x5e0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x74/0x150 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xb2/0x140 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:296 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9968a8c0c9 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:00007f996988c168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: 0000000000060000 RBX: 00007f9968bac120 RCX: 00007f9968a8c0c9 RDX: 0000000000000000 RSI: 000000000000000d RDI: 000000000000000c RBP: 00007f9968ae7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 000080001d00c0d0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff19d1ce6f R14: 00007f996988c300 R15: 0000000000022000 ================================================================================