------------[ cut here ]------------ WARNING: CPU: 0 PID: 41 at fs/xfs/libxfs/xfs_bmap.c:4599 xfs_bmapi_convert_delalloc+0xac2/0xc80 fs/xfs/libxfs/xfs_bmap.c:4599 Modules linked in: CPU: 0 PID: 41 Comm: kworker/u4:3 Not tainted 6.5.0-rc4-syzkaller-00009-g4b954598a47b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:xfs_bmapi_convert_delalloc+0xac2/0xc80 fs/xfs/libxfs/xfs_bmap.c:4599 Code: ff ff e8 71 aa 80 fe 8b 94 24 08 01 00 00 48 8b b4 24 10 01 00 00 48 8b 7c 24 70 e8 98 5b 0c 00 e9 9a fd ff ff e8 4e aa 80 fe <0f> 0b bb e4 ff ff ff e9 fb fd ff ff 48 89 ef e8 ba d3 d3 fe e9 11 RSP: 0018:ffffc90000d2ef50 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffffffffffffff RCX: 0000000000000000 RDX: ffff888014eae140 RSI: ffffffff830475f2 RDI: 0000000000000007 RBP: ffff8880814c3000 R08: 0000000000000007 R09: ffffffffffffffff R10: ffffffffffffffff R11: 000000000000004e R12: 0000000000000000 R13: ffff88803ec48000 R14: ffff8880814c3040 R15: 0000000000000d31 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffff7705fc8 CR3: 000000007d833000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline] xfs_map_blocks+0x5cf/0xe20 fs/xfs/xfs_aops.c:389 iomap_writepage_map fs/iomap/buffered-io.c:1637 [inline] iomap_do_writepage+0x8db/0x21a0 fs/iomap/buffered-io.c:1799 write_cache_pages+0x49d/0xd70 mm/page-writeback.c:2474 iomap_writepages+0x4f/0xb0 fs/iomap/buffered-io.c:1816 xfs_vm_writepages+0x138/0x1c0 fs/xfs/xfs_aops.c:513 do_writepages+0x1b4/0x690 mm/page-writeback.c:2553 __writeback_single_inode+0x158/0xe70 fs/fs-writeback.c:1603 writeback_sb_inodes+0x599/0x1010 fs/fs-writeback.c:1894 wb_writeback+0x2a5/0xa90 fs/fs-writeback.c:2070 wb_do_writeback fs/fs-writeback.c:2217 [inline] wb_workfn+0x29c/0xfd0 fs/fs-writeback.c:2257 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2597 worker_thread+0x687/0x1110 kernel/workqueue.c:2748 kthread+0x33a/0x430 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304