================================================================================ 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: 5105 Comm: syz-executor.0 Not tainted 6.7.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 ubsan_epilogue lib/ubsan.c:217 [inline] __ubsan_handle_out_of_bounds+0x11c/0x150 lib/ubsan.c:348 dbJoin+0x2a6/0x2d0 fs/jfs/jfs_dmap.c:2778 dbFreeBits+0x4eb/0xda0 fs/jfs/jfs_dmap.c:2338 dbFreeDmap fs/jfs/jfs_dmap.c:2087 [inline] dbFree+0x343/0x650 fs/jfs/jfs_dmap.c:409 txFreeMap+0x96a/0xd50 fs/jfs/jfs_txnmgr.c:2515 xtTruncate+0xe65/0x3270 fs/jfs/jfs_xtree.c:2467 jfs_free_zero_link+0x46e/0x6e0 fs/jfs/namei.c:759 jfs_evict_inode+0x35f/0x440 fs/jfs/inode.c:153 evict+0x2a4/0x630 fs/inode.c:666 __dentry_kill+0x436/0x660 fs/dcache.c:607 shrink_dentry_list+0x3dd/0x700 fs/dcache.c:1201 shrink_dcache_parent+0xcd/0x4a0 do_one_tree+0x23/0xe0 fs/dcache.c:1681 shrink_dcache_for_umount+0x7d/0x130 fs/dcache.c:1698 generic_shutdown_super+0x6a/0x2c0 fs/super.c:668 kill_block_super+0x44/0x90 fs/super.c:1667 deactivate_locked_super+0xc1/0x130 fs/super.c:484 cleanup_mnt+0x426/0x4c0 fs/namespace.c:1256 task_work_run+0x24a/0x300 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171 exit_to_user_mode_prepare+0xb1/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x69/0x2a0 kernel/entry/common.c:296 do_syscall_64+0x52/0x110 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f6940a7e017 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fffde1f2918 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6940a7e017 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007fffde1f29d0 RBP: 00007fffde1f29d0 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fffde1f3a90 R13: 00007f6940ac83b9 R14: 00000000001f8553 R15: 0000000000000007 ================================================================================