UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2257:2 index 524288 is out of range for type 's64[128]' (aka 'long long[128]') CPU: 0 PID: 4387 Comm: syz.0.1 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 ubsan_epilogue+0xa/0x30 lib/ubsan.c:151 __ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282 dbAllocBits+0xa04/0xa50 fs/jfs/jfs_dmap.c:2257 dbAllocDmap fs/jfs/jfs_dmap.c:2034 [inline] dbAllocDmapLev+0x1bd/0x3c0 fs/jfs/jfs_dmap.c:1988 dbAllocCtl+0x148/0x9b0 fs/jfs/jfs_dmap.c:1825 dbAllocAG+0x1e7/0xfe0 fs/jfs/jfs_dmap.c:1353 dbAlloc+0x5a3/0xb90 fs/jfs/jfs_dmap.c:877 diNewIAG fs/jfs/jfs_imap.c:2510 [inline] diAllocExt fs/jfs/jfs_imap.c:1905 [inline] diAllocAG+0xcac/0x1c20 fs/jfs/jfs_imap.c:1669 diAlloc+0x1c9/0x1910 fs/jfs/jfs_imap.c:1590 ialloc+0x88/0x950 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x190/0xa70 fs/jfs/namei.c:225 vfs_mkdir+0x387/0x570 fs/namei.c:4114 do_mkdirat+0x1d0/0x430 fs/namei.c:4139 __do_sys_mkdirat fs/namei.c:4154 [inline] __se_sys_mkdirat fs/namei.c:4152 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4152 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc86078f749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc861544038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fc8609e5fa0 RCX: 00007fc86078f749 RDX: 0000000000000000 RSI: 0000200000001dc0 RDI: ffffffffffffff9c RBP: 00007fc860813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fc8609e6038 R14: 00007fc8609e5fa0 R15: 00007ffc1deea458 ================================================================================