------------[ cut here ]------------ WARNING: CPU: 0 PID: 24018 at fs/nilfs2/dat.c:158 nilfs_dat_prepare_end+0x248/0x2a0 Modules linked in: CPU: 0 PID: 24018 Comm: segctord Not tainted 6.1.74-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:nilfs_dat_prepare_end+0x248/0x2a0 fs/nilfs2/dat.c:158 Code: c3 3d fe 89 eb 89 d8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 77 c3 3d fe e8 42 de b3 fd e9 5a ff ff ff e8 68 c3 3d fe <0f> 0b bb fe ff ff ff eb d2 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c RSP: 0018:ffffc900056872f8 EFLAGS: 00010293 RAX: ffffffff834caf58 RBX: 00000000fffffffe RCX: ffff888063fa1dc0 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 00000000fffffffe RBP: 1ffff1101124a0f3 R08: ffffffff834caed1 R09: ffffffff834aecc7 R10: 0000000000000002 R11: ffff888063fa1dc0 R12: ffff888089250798 R13: ffff888070f8e7d8 R14: ffff8880892507b0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f916f8d56c6 CR3: 000000008342d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_dat_prepare_update+0x1f/0xd0 fs/nilfs2/dat.c:230 nilfs_btree_prepare_update_v+0x1c5/0x450 fs/nilfs2/btree.c:1919 nilfs_btree_prepare_propagate_v fs/nilfs2/btree.c:1987 [inline] nilfs_btree_propagate_v fs/nilfs2/btree.c:2040 [inline] nilfs_btree_propagate+0x3bb/0xde0 fs/nilfs2/btree.c:2097 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+0x82d/0xad0 fs/nilfs2/segment.c:1096 nilfs_segctor_collect_blocks fs/nilfs2/segment.c:1205 [inline] nilfs_segctor_collect fs/nilfs2/segment.c:1532 [inline] nilfs_segctor_do_construct+0x1c1b/0x6dd0 fs/nilfs2/segment.c:2080 nilfs_segctor_construct+0x145/0x8c0 fs/nilfs2/segment.c:2414 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2522 [inline] nilfs_segctor_thread+0x536/0x1130 fs/nilfs2/segment.c:2605 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306