------------[ cut here ]------------ WARNING: CPU: 1 PID: 4073 at fs/nilfs2/dat.c:200 nilfs_dat_commit_end+0x59c/0x6a0 Modules linked in: CPU: 1 PID: 4073 Comm: syz.0.83 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:ffffc90005147088 EFLAGS: 00010283 RAX: ffffffff834da9ec RBX: ffff888025a3c1a0 RCX: 0000000000040000 RDX: ffffc900057ba000 RSI: 0000000000015d79 RDI: 0000000000015d7a RBP: 0000000000000003 R08: ffffffff834da61e R09: ffffed100b351506 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888023aa49e0 R13: 1ffff1100f7516a6 R14: 00000000003f0002 R15: ffff88807cfe3530 FS: 00007f4b599db6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000c000 CR3: 0000000078b61000 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:0x7f4b58b79e79 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:00007f4b599db038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4b58d15f80 RCX: 00007f4b58b79e79 RDX: 0000000000000420 RSI: 0000000020000340 RDI: 0000000000000004 RBP: 00007f4b58be793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4b58d15f80 R15: 00007ffd95b8ee48