================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2778:24 index 4294967295 is out of range for type 's8[1365]' (aka 'signed char[1365]') CPU: 1 PID: 133 Comm: jfsCommit Not tainted 6.1.97-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x118/0x140 lib/ubsan.c:282 dbJoin+0x2e9/0x310 fs/jfs/jfs_dmap.c:2778 dbFreeBits+0x4ef/0xdb0 fs/jfs/jfs_dmap.c:2338 dbFreeDmap fs/jfs/jfs_dmap.c:2087 [inline] dbFree+0x357/0x670 fs/jfs/jfs_dmap.c:409 txFreeMap+0x966/0xd50 fs/jfs/jfs_txnmgr.c:2515 xtTruncate+0xe58/0x3260 fs/jfs/jfs_xtree.c:2467 jfs_free_zero_link+0x46a/0x6e0 fs/jfs/namei.c:758 jfs_evict_inode+0x35b/0x440 fs/jfs/inode.c:153 evict+0x2a4/0x620 fs/inode.c:666 txUpdateMap+0x825/0x9e0 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x476/0xb60 fs/jfs/jfs_txnmgr.c:2732 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 ================================================================================