loop4: detected capacity change from 0 to 2048 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8452 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x2ac/0x2f4 fs/nilfs2/dat.c:158 Modules linked in: CPU: 0 PID: 8452 Comm: syz-executor.4 Not tainted 5.15.148-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 : ffff8000252a6f50 x29: ffff8000252a6f60 x28: 0000000000000000 x27: dfff800000000000 x26: ffff00010004b358 x25: dfff800000000000 x24: 0000000000000000 x23: 1fffe0001afa83d3 x22: 00000000fffffffe x21: ffff00010004db08 x20: ffff0000d7d41e98 x19: ffff0000d7d41eb0 x18: 0000000000000000 x17: 0000000000000002 x16: ffff800009ca8998 x15: 00000000ffffffef x14: ffff000101659b40 x13: 0000000000ff0100 x12: 0000000000040000 x11: 000000000002b863 x10: ffff80001e8ac000 x9 : 000000000002b864 x8 : ffff800009cc2988 x7 : 0000000000000000 x6 : ffff80000805c7bc x5 : ffff0000ce127118 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_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:850 nilfs_truncate+0x1f8/0x404 fs/nilfs2/inode.c:880 nilfs_setattr+0x1d4/0x278 fs/nilfs2/inode.c:994 notify_change+0xa34/0xcf8 fs/attr.c:505 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3271 [inline] do_open fs/namei.c:3618 [inline] path_openat+0x20e8/0x26f0 fs/namei.c:3748 do_filp_open+0x1a8/0x3b4 fs/namei.c:3775 do_sys_openat2+0x128/0x3d8 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238 __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: 7568 hardirqs last enabled at (7567): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:231 hardirqs last disabled at (7568): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (7238): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (7238): [] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587 softirqs last disabled at (7161): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (7161): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (7161): [] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637 ---[ end trace 6d969c71a1bb24c2 ]--- NILFS (loop4): error -2 truncating bmap (ino=16)