------------[ cut here ]------------ WARNING: CPU: 0 PID: 30706 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 Modules linked in: CPU: 0 PID: 30706 Comm: syz-executor.3 Not tainted 6.1.19-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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 : ffff80002d337510 x29: ffff80002d337520 x28: 0000000000000000 x27: dfff800000000000 x26: ffff00013a050ce8 x25: dfff800000000000 x24: 0000000000000000 x23: 1fffe0002252a3d3 x22: 00000000fffffffe x21: ffff00013a056e40 x20: ffff000112951e98 x19: ffff000112951eb0 x18: ffff80002d336d00 x17: ffff80001572d000 x16: 0000000000000000 x15: 0000000000000000 x14: 0000000000000002 x13: 00000000ffffffef x12: 0000000000040000 x11: 000000000001d43c x10: ffff80002294b000 x9 : ffff800009e27294 x8 : 000000000001d43d x7 : ffff800008062f50 x6 : ffff800008063160 x5 : ffff0000d02e2cd0 x4 : ffff80002d336d18 x3 : ffff800008b3d16c 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_btree_prepare_delete fs/nilfs2/btree.c:1451 [inline] nilfs_btree_delete+0x6f0/0x11bc fs/nilfs2/btree.c:1599 nilfs_bmap_do_delete fs/nilfs2/bmap.c:176 [inline] nilfs_bmap_do_truncate fs/nilfs2/bmap.c:264 [inline] nilfs_bmap_truncate+0x2a0/0x4c0 fs/nilfs2/bmap.c:297 nilfs_truncate_bmap+0x198/0x314 fs/nilfs2/inode.c:846 nilfs_truncate+0x1f8/0x404 fs/nilfs2/inode.c:876 nilfs_setattr+0x1d4/0x278 fs/nilfs2/inode.c:972 notify_change+0xc24/0xec0 fs/attr.c:482 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __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:581 irq event stamp: 8542 hardirqs last enabled at (8541): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (8542): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8286): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (8284): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- NILFS (loop3): error -2 truncating bmap (ino=16)