find_entry called with index = 0 read_mapping_page failed! ERROR: (device loop0): txCommit: loop0: detected capacity change from 32768 to 32767 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2783:24 index 4278910730 is out of range for type 's8[1365]' (aka 'signed char[1365]') CPU: 0 UID: 0 PID: 5318 Comm: syz.0.0 Not tainted 6.13.0-rc2-syzkaller-00362-g2d8308bf5b67 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_out_of_bounds+0x121/0x150 lib/ubsan.c:429 dbJoin+0x2ed/0x310 fs/jfs/jfs_dmap.c:2783 dbFreeBits+0x4db/0xd90 fs/jfs/jfs_dmap.c:2343 dbFreeDmap fs/jfs/jfs_dmap.c:2092 [inline] dbFree+0x35b/0x680 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+0x4e8/0x9a0 fs/inode.c:796 __dentry_kill+0x20d/0x630 fs/dcache.c:625 shrink_kill+0xa9/0x2c0 fs/dcache.c:1070 shrink_dentry_list+0x2c0/0x5b0 fs/dcache.c:1097 prune_dcache_sb+0x10f/0x180 fs/dcache.c:1178 super_cache_scan+0x34f/0x4b0 fs/super.c:221 do_shrink_slab+0x72d/0x1160 mm/shrinker.c:437 shrink_slab_memcg mm/shrinker.c:550 [inline] shrink_slab+0x878/0x14d0 mm/shrinker.c:628 drop_slab_node mm/vmscan.c:414 [inline] drop_slab+0x142/0x280 mm/vmscan.c:432 drop_caches_sysctl_handler+0xbc/0x160 fs/drop_caches.c:68 proc_sys_call_handler+0x5ec/0x920 fs/proc/proc_sysctl.c:601 do_iter_readv_writev+0x600/0x880 vfs_writev+0x376/0xba0 fs/read_write.c:1050 do_writev+0x1b6/0x360 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f68f8d85d19 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:00007f68f9b09038 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f68f8f76160 RCX: 00007f68f8d85d19 RDX: 0000000000000001 RSI: 0000000020000200 RDI: 0000000000000005 RBP: 00007f68f8e01a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f68f8f76160 R15: 00007fff751a8968 ---[ end trace ]---