------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:3700:8 index -1 is out of range for type 'struct dtslot[128]' CPU: 0 UID: 0 PID: 14124 Comm: syz.5.803 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 ubsan_epilogue+0xa/0x40 lib/ubsan.c:233 __ubsan_handle_out_of_bounds+0xe9/0xf0 lib/ubsan.c:455 dtInsertEntry+0x936/0x1430 fs/jfs/jfs_dtree.c:3700 dtSplitPage+0x2a83/0x3b20 fs/jfs/jfs_dtree.c:1596 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline] dtInsert+0x109b/0x5f40 fs/jfs/jfs_dtree.c:871 jfs_mkdir+0x6ec/0xa70 fs/jfs/namei.c:270 vfs_mkdir+0x52d/0x5d0 fs/namei.c:5130 do_mkdirat+0x27a/0x4b0 fs/namei.c:5164 __do_sys_mkdirat fs/namei.c:5186 [inline] __se_sys_mkdirat fs/namei.c:5184 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:5184 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5bf100de97 Code: 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5bef275e68 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f5bef275ef0 RCX: 00007f5bf100de97 RDX: 00000000000001ff RSI: 00002000000005c0 RDI: 00000000ffffff9c RBP: 0000200000000080 R08: 0000200000000140 R09: 0000000000000000 R10: 0000200000000080 R11: 0000000000000246 R12: 00002000000005c0 R13: 00007f5bef275eb0 R14: 0000000000000000 R15: 0000000000000000 ---[ end trace ]---