------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2778:24 index 1621 is out of range for type 's8[1365]' (aka 'signed char[1365]') CPU: 0 PID: 111 Comm: jfsCommit Not tainted 6.8.0-rc3-syzkaller-00293-ga5b6244cf87c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x120/0x150 lib/ubsan.c:347 dbJoin+0x2ed/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+0x35b/0x680 fs/jfs/jfs_dmap.c:409 txFreeMap+0x798/0xd50 fs/jfs/jfs_txnmgr.c:2534 txUpdateMap+0x342/0x9f0 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x47f/0xb70 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 ---[ end trace ]--- Kernel panic - not syncing: UBSAN: panic_on_warn set ... CPU: 1 PID: 111 Comm: jfsCommit Not tainted 6.8.0-rc3-syzkaller-00293-ga5b6244cf87c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 panic+0x349/0x860 kernel/panic.c:344 check_panic_on_warn+0x86/0xb0 kernel/panic.c:237 ubsan_epilogue lib/ubsan.c:222 [inline] __ubsan_handle_out_of_bounds+0x140/0x150 lib/ubsan.c:347 dbJoin+0x2ed/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+0x35b/0x680 fs/jfs/jfs_dmap.c:409 txFreeMap+0x798/0xd50 fs/jfs/jfs_txnmgr.c:2534 txUpdateMap+0x342/0x9f0 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x47f/0xb70 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Kernel Offset: disabled Rebooting in 86400 seconds..