loop0: detected capacity change from 0 to 32768 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2257:2 index 2097152 is out of range for type 's64[128]' (aka 'long long[128]') CPU: 0 UID: 0 PID: 6062 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/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 dbAllocBits+0xa07/0xa60 fs/jfs/jfs_dmap.c:2257 dbAllocDmap fs/jfs/jfs_dmap.c:2034 [inline] dbAllocNear+0x2aa/0x3d0 fs/jfs/jfs_dmap.c:1247 dbAlloc+0x933/0xba0 fs/jfs/jfs_dmap.c:832 extBalloc fs/jfs/jfs_extent.c:336 [inline] extAlloc+0x54a/0xfb0 fs/jfs/jfs_extent.c:127 jfs_get_block+0x346/0xab0 fs/jfs/inode.c:254 get_more_blocks fs/direct-io.c:648 [inline] do_direct_IO fs/direct-io.c:936 [inline] __blockdev_direct_IO+0x157c/0x31f0 fs/direct-io.c:1243 blockdev_direct_IO include/linux/fs.h:3509 [inline] jfs_direct_IO+0x11b/0x220 fs/jfs/inode.c:339 generic_file_direct_write+0x1dc/0x3e0 mm/filemap.c:4176 __generic_file_write_iter+0x120/0x240 mm/filemap.c:4345 generic_file_write_iter+0x118/0x550 mm/filemap.c:4385 do_iter_readv_writev+0x635/0x8d0 fs/read_write.c:-1 vfs_writev+0x323/0x970 fs/read_write.c:1057 do_pwritev fs/read_write.c:1153 [inline] __do_sys_pwritev2 fs/read_write.c:1211 [inline] __se_sys_pwritev2+0x17c/0x2a0 fs/read_write.c:1202 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8e097eefc9 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:00007fff71526748 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f8e09a45fa0 RCX: 00007f8e097eefc9 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000004 RBP: 00007f8e09871f91 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007800 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f8e09a45fa0 R14: 00007f8e09a45fa0 R15: 0000000000000006 ---[ end trace ]---