loop1: detected capacity change from 0 to 2048 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 906 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 Modules linked in: CPU: 1 PID: 906 Comm: syz-executor.1 Not tainted 6.1.77-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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 : ffff8000201a7330 x29: ffff8000201a7340 x28: 1fffe000256addbe x27: 1fffe000256adda6 x26: dfff800000000000 x25: dfff800000000000 x24: 0000000040000000 x23: 1ffff00004034e78 x22: 00000000fffffffe x21: ffff00012b56a160 x20: ffff8000201a73c0 x19: ffff8000201a73d8 x18: 1fffe0003686fb76 x17: ffff80001583d000 x16: ffff80001215337c x15: 0000000000000002 x14: 00000000ffffffef x13: ffff0000d8f2b780 x12: 0000000000040000 x11: 000000000000b3ee x10: ffff8000209bb000 x9 : ffff800009dac3e4 x8 : 000000000000b3ef x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000001 x3 : ffff800008b3219c 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:846 nilfs_evict_inode+0x1b0/0x430 fs/nilfs2/inode.c:951 evict+0x260/0x68c fs/inode.c:666 iput_final fs/inode.c:1791 [inline] iput+0x7c0/0x8a4 fs/inode.c:1817 dentry_unlink_inode+0x370/0x4b0 fs/dcache.c:401 __dentry_kill+0x324/0x5e4 fs/dcache.c:607 dentry_kill+0xc8/0x250 dput+0x218/0x454 fs/dcache.c:914 do_renameat2+0x9f8/0xe64 fs/namei.c:5031 __do_sys_renameat2 fs/namei.c:5062 [inline] __se_sys_renameat2 fs/namei.c:5059 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5059 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 7676 hardirqs last enabled at (7675): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (7676): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7412): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (7410): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- NILFS (loop1): error -2 truncating bmap (ino=14)