------------[ cut here ]------------ WARNING: CPU: 0 PID: 9675 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 Modules linked in: CPU: 0 PID: 9675 Comm: syz-executor.4 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 : ffff80001f6f6f70 x29: ffff80001f6f6f80 x28: 0000000000000000 x27: dfff800000000000 x26: ffff00010d789350 x25: dfff800000000000 x24: 0000000000000000 x23: 1fffe0001b1dfa63 x22: 00000000fffffffe x21: ffff00010d460158 x20: ffff0000d8efd318 x19: ffff0000d8efd330 x18: ffff80001f6f6760 x17: ffff8000188c9000 x16: ffff80001215337c x15: 0000000000000002 x14: 00000000ffffffef x13: ffff0000d2ab5340 x12: 0000000000040000 x11: 00000000000330a8 x10: ffff80001e269000 x9 : ffff800009dac3e4 x8 : 00000000000330a9 x7 : ffff800008062348 x6 : ffff800008062558 x5 : ffff0000d77e5130 x4 : ffff80001f6f6788 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_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: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_truncate+0x1f8/0x404 fs/nilfs2/inode.c:876 nilfs_setattr+0x1d4/0x278 fs/nilfs2/inode.c:990 notify_change+0xb58/0xe1c fs/attr.c:499 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3287 [inline] do_open fs/namei.c:3632 [inline] path_openat+0x1fa0/0x2548 fs/namei.c:3785 do_filp_open+0x1bc/0x3cc fs/namei.c:3812 do_sys_openat2+0x128/0x3d8 fs/open.c:1318 do_sys_open fs/open.c:1334 [inline] __do_sys_openat fs/open.c:1350 [inline] __se_sys_openat fs/open.c:1345 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1345 __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: 7646 hardirqs last enabled at (7645): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (7646): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7474): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (7474): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (7421): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- NILFS (loop4): error -2 truncating bmap (ino=16)