------------[ cut here ]------------ WARNING: CPU: 1 PID: 7760 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 Modules linked in: CPU: 1 PID: 7760 Comm: syz-executor.3 Not tainted 5.15.148-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 lr : nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 sp : ffff80001ce37610 x29: ffff80001ce37620 x28: 1fffe000235d18f0 x27: 1fffe000235d18d4 x26: dfff800000000000 x25: dfff800000000000 x24: 0000000000000101 x23: 1ffff000039c6ed4 x22: 00000000fffffffe x21: ffff00011aefdb08 x20: ffff80001ce376a0 x19: ffff80001ce376b8 x18: 0000000000000000 x17: 0000000000000002 x16: ffff800009ca8998 x15: 00000000ffffffef x14: ffff00011a238000 x13: 0000000000ff0100 x12: 0000000000040000 x11: 000000000000cd9a x10: ffff8000214d9000 x9 : 000000000000cd9b x8 : ffff800009cc2988 x7 : 0000000000000000 x6 : ffff80000805c7bc x5 : ffff0001148f9880 x4 : 0000000000000000 x3 : ffff800008a6cecc x2 : 0000000000000001 x1 : 00000000fffffffe x0 : 00000000fffffffe Call trace: nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 nilfs_bmap_prepare_end_ptr fs/nilfs2/bmap.h:211 [inline] nilfs_direct_delete+0x154/0x2c0 fs/nilfs2/direct.c:155 nilfs_bmap_do_delete fs/nilfs2/bmap.c:184 [inline] nilfs_bmap_do_truncate fs/nilfs2/bmap.c:272 [inline] nilfs_bmap_truncate+0x2a0/0x4c0 fs/nilfs2/bmap.c:305 nilfs_truncate_bmap+0x198/0x314 fs/nilfs2/inode.c:850 nilfs_evict_inode+0x1b0/0x444 fs/nilfs2/inode.c:955 evict+0x260/0x68c fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput+0x744/0x824 fs/inode.c:1731 do_unlinkat+0x530/0x830 fs/namei.c:4361 __do_sys_unlinkat fs/namei.c:4397 [inline] __se_sys_unlinkat fs/namei.c:4390 [inline] __arm64_sys_unlinkat+0xcc/0xfc fs/namei.c:4390 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 9132 hardirqs last enabled at (9131): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (9132): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (9044): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (9042): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace e343e8e0d53062d9 ]--- NILFS (loop3): error -2 truncating bmap (ino=13)