================================================================================ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2846:24 index 1621 is out of range for type 's8[1365]' (aka 'signed char[1365]') CPU: 0 PID: 239 Comm: jfsCommit Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 ubsan_epilogue lib/ubsan.c:151 [inline] __ubsan_handle_out_of_bounds+0x108/0x15c lib/ubsan.c:282 dbJoin+0x268/0x2a4 fs/jfs/jfs_dmap.c:2846 dbFreeBits+0x458/0xc30 fs/jfs/jfs_dmap.c:2406 dbFreeDmap fs/jfs/jfs_dmap.c:2155 [inline] dbFree+0x2dc/0x5d8 fs/jfs/jfs_dmap.c:409 txFreeMap+0x668/0xb84 fs/jfs/jfs_txnmgr.c:2568 txUpdateMap+0x2e8/0x914 txLazyCommit fs/jfs/jfs_txnmgr.c:2698 [inline] jfs_lazycommit+0x3b0/0xa40 fs/jfs/jfs_txnmgr.c:2766 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 ================================================================================ ------------[ cut here ]------------ WARNING: CPU: 1 PID: 239 at fs/jfs/jfs_dmap.c:2941 dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2941 Modules linked in: CPU: 1 PID: 239 Comm: jfsCommit Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2941 lr : dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2941 sp : ffff80001f817930 x29: ffff80001f817930 x28: dfff800000000000 x27: 1fffe0001a44f802 x26: dfff800000000000 x25: ffff0000d227c676 x24: 0000000000000000 x23: 0000000000000155 x22: 0000000000000656 x21: 0000000000000004 x20: 0000000000000001 x19: ffff0000d227c010 x18: 0000000000000001 x17: 0000000000000000 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000c696d1c0 x13: 0000000000000001 x12: ffff700002e22164 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c696d1c0 x8 : ffff8000098ce810 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80001f817098 x4 : ffff800014b9fae0 x3 : 0000000000000000 x2 : 0000000000000004 x1 : 0000000000000155 x0 : 0000000000000656 Call trace: dbAdjTree+0x3a0/0x480 fs/jfs/jfs_dmap.c:2941 dbJoin+0x1ec/0x2a4 fs/jfs/jfs_dmap.c:2909 dbFreeBits+0x458/0xc30 fs/jfs/jfs_dmap.c:2406 dbFreeDmap fs/jfs/jfs_dmap.c:2155 [inline] dbFree+0x2dc/0x5d8 fs/jfs/jfs_dmap.c:409 txFreeMap+0x668/0xb84 fs/jfs/jfs_txnmgr.c:2568 txUpdateMap+0x2e8/0x914 txLazyCommit fs/jfs/jfs_txnmgr.c:2698 [inline] jfs_lazycommit+0x3b0/0xa40 fs/jfs/jfs_txnmgr.c:2766 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 150 hardirqs last enabled at (149): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (150): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (136): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (136): [] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586 softirqs last disabled at (87): [] __do_softirq kernel/softirq.c:592 [inline] softirqs last disabled at (87): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (87): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (87): [] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641 ---[ end trace cdc94252dac523b3 ]---