------------[ cut here ]------------ WARNING: CPU: 1 PID: 6380 at fs/nilfs2/btree.c:2273 nilfs_btree_assign+0x968/0xde0 fs/nilfs2/btree.c:2273 Modules linked in: CPU: 1 PID: 6380 Comm: segctord Not tainted 6.2.0-rc2-next-20230105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:nilfs_btree_assign+0x968/0xde0 fs/nilfs2/btree.c:2273 Code: 00 00 00 00 e9 93 f8 ff ff e8 64 a8 58 fe 44 89 e6 bf fe ff ff ff e8 07 a5 58 fe 41 83 fc fe 0f 85 9a fb ff ff e8 48 a8 58 fe <0f> 0b e9 8e fb ff ff e8 3c a8 58 fe 48 89 eb 48 c7 44 24 28 18 00 RSP: 0018:ffffc9000568f9f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000 RDX: ffff888020169d40 RSI: ffffffff83290738 RDI: 0000000000000005 RBP: ffff88807666a688 R08: 0000000000000005 R09: 00000000fffffffe R10: 00000000fffffffe R11: 0000000000094001 R12: 00000000fffffffe R13: ffffc9000568fc78 R14: ffffc9000568fcb8 R15: 0000000000000043 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555570d5848 CR3: 00000000200d2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: nilfs_bmap_assign+0x87/0x180 fs/nilfs2/bmap.c:382 nilfs_segctor_update_payload_blocknr fs/nilfs2/segment.c:1595 [inline] nilfs_segctor_assign fs/nilfs2/segment.c:1629 [inline] nilfs_segctor_do_construct+0x1b5b/0x6b30 fs/nilfs2/segment.c:2056 nilfs_segctor_construct+0x8e3/0xb30 fs/nilfs2/segment.c:2379 nilfs_segctor_thread_construct fs/nilfs2/segment.c:2487 [inline] nilfs_segctor_thread+0x3c7/0xf30 fs/nilfs2/segment.c:2570 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308