------------[ cut here ]------------ WARNING: CPU: 0 PID: 4751 at fs/nilfs2/dat.c:200 nilfs_dat_commit_end+0x5ac/0x6f8 Modules linked in: CPU: 0 PID: 4751 Comm: syz.1.102 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : nilfs_dat_commit_end+0x5ac/0x6f8 lr : nilfs_dat_commit_end+0x5a8/0x6f8 fs/nilfs2/dat.c:200 sp : ffff80001e387060 x29: ffff80001e387080 x28: 1fffe0001abbe633 x27: 1fffe0001d314966 x26: dfff800000000000 x25: 0000000000000003 x24: ffff0000cd2a6980 x23: 0000000000000003 x22: ffff0000d5df3198 x21: ffff0000e98a4b30 x20: ffff0000d5df1bc0 x19: ffff0000e98a4b18 x18: ffff0000f1202010 x17: ffff8000159bd000 x16: ffff80000825ffa0 x15: 0000000000000002 x14: 1ffff00002b380b0 x13: dfff800000000000 x12: 0000000000040000 x11: 0000000000003f4f x10: ffff80002d59e000 x9 : ffff800009db9a44 x8 : 0000000000003f50 x7 : ffff800009deae30 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff0000cd2a6000 x2 : ffff0000f11aa2b8 x1 : 0000000000000003 x0 : 0000000009000002 Call trace: nilfs_dat_commit_end+0x5ac/0x6f8 nilfs_dat_commit_update+0x38/0x58 fs/nilfs2/dat.c:250 nilfs_btree_commit_update_v+0x88/0x384 fs/nilfs2/btree.c:1954 nilfs_btree_commit_propagate_v fs/nilfs2/btree.c:2027 [inline] nilfs_btree_propagate_v fs/nilfs2/btree.c:2060 [inline] nilfs_btree_propagate+0xb44/0xe90 fs/nilfs2/btree.c:2102 nilfs_bmap_propagate+0x7c/0x130 fs/nilfs2/bmap.c:345 nilfs_collect_file_data+0x54/0xe8 fs/nilfs2/segment.c:587 nilfs_segctor_apply_buffers+0x170/0x31c fs/nilfs2/segment.c:1047 nilfs_segctor_scan_file_dsync fs/nilfs2/segment.c:1136 [inline] nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1290 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1532 [inline] nilfs_segctor_do_construct+0x1418/0x6608 fs/nilfs2/segment.c:2085 nilfs_construct_dsync_segment+0x438/0x51c fs/nilfs2/segment.c:2369 nilfs_sync_file+0xc8/0x244 fs/nilfs2/file.c:32 vfs_fsync_range+0x168/0x188 fs/sync.c:188 generic_write_sync include/linux/fs.h:2957 [inline] generic_file_write_iter+0x228/0x2b4 mm/filemap.c:3981 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x91c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __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:140 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204 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: 8886 hardirqs last enabled at (8885): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (8885): [] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194 hardirqs last disabled at (8886): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (8818): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (8816): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---