------------[ cut here ]------------ WARNING: CPU: 1 PID: 7146 at fs/nilfs2/dat.c:200 nilfs_dat_commit_end+0x59c/0x6a0 Modules linked in: CPU: 1 PID: 7146 Comm: syz.3.974 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:nilfs_dat_commit_end+0x59c/0x6a0 fs/nilfs2/dat.c:200 Code: 48 89 ee 48 83 c4 38 5b 41 5c 41 5d 41 5e 41 5f 5d e9 c8 89 03 00 e8 e3 f9 3c fe e8 1e e9 b2 fd e9 d8 fc ff ff e8 d4 f9 3c fe <0f> 0b e9 39 fc ff ff e8 c8 f9 3c fe e8 03 e9 b2 fd 43 80 7c 35 00 RSP: 0018:ffffc9000324f088 EFLAGS: 00010283 RAX: ffffffff834da9ec RBX: ffff8880496921a0 RCX: 0000000000040000 RDX: ffffc9000a549000 RSI: 0000000000037a74 RDI: 0000000000037a75 RBP: 0000000000000003 R08: ffffffff834da61e R09: ffffed100a08d401 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805ada39e0 R13: 1ffff1100b33c6a6 R14: 00000000003f0002 R15: ffff888020333530 FS: 00007fc59fc7f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000100000085 CR3: 00000000519c2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_dat_commit_update+0x25/0x40 fs/nilfs2/dat.c:250 nilfs_btree_commit_update_v+0x9b/0x3f0 fs/nilfs2/btree.c:1954 nilfs_btree_commit_propagate_v fs/nilfs2/btree.c:2030 [inline] nilfs_btree_propagate_v fs/nilfs2/btree.c:2060 [inline] nilfs_btree_propagate+0xa48/0xde0 fs/nilfs2/btree.c:2102 nilfs_bmap_propagate+0x6d/0x120 fs/nilfs2/bmap.c:345 nilfs_collect_file_data+0x49/0xc0 fs/nilfs2/segment.c:587 nilfs_segctor_apply_buffers+0x180/0x330 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+0x19e2/0x71b0 fs/nilfs2/segment.c:2085 nilfs_construct_dsync_segment+0x5c0/0x6c0 fs/nilfs2/segment.c:2369 do_writepages+0x3a2/0x670 mm/page-writeback.c:2491 filemap_fdatawrite_wbc+0x121/0x180 mm/filemap.c:388 __filemap_fdatawrite_range mm/filemap.c:421 [inline] filemap_write_and_wait_range+0x1a4/0x290 mm/filemap.c:674 __generic_file_write_iter+0x2c4/0x400 mm/filemap.c:3931 generic_file_write_iter+0xab/0x310 mm/filemap.c:3977 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x857/0xbc0 fs/read_write.c:584 ksys_write+0x19c/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc59ef79e79 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc59fc7f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc59f115f80 RCX: 00007fc59ef79e79 RDX: 0000000000000001 RSI: 0000000020000400 RDI: 0000000000000004 RBP: 00007fc59efe793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc59f115f80 R15: 00007ffe8e4c2d08