------------[ cut here ]------------ WARNING: CPU: 0 PID: 1393 at fs/xfs/libxfs/xfs_bmap.c:4593 xfs_bmapi_convert_delalloc+0x794/0x7a8 Modules linked in: CPU: 0 PID: 1393 Comm: kworker/u4:5 Not tainted 6.1.106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: writeback wb_workfn (flush-7:0) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : xfs_bmapi_convert_delalloc+0x794/0x7a8 lr : xfs_bmapi_convert_delalloc+0x790/0x7a8 fs/xfs/libxfs/xfs_bmap.c:4593 sp : ffff80001406b4a0 x29: ffff80001406b580 x28: 0000000000000000 x27: 00000000ffffffe4 x26: ffffffffffffffff x25: ffff0000ca032000 x24: ffff0000cd860040 x23: ffff80001406b8e0 x22: ffff80001406b530 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000cd860000 x18: ffff80000b68d2cc x17: 0000000000000000 x16: 0000000000000004 x15: 0000000000000000 x14: 0000000000000040 x13: ffff0000c586cbc0 x12: ffff80000dcce000 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008904ac0 x8 : ffff0000c586cbc0 x7 : 0000000000000000 x6 : ffff8000088e993c x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000010 x1 : ffffffffffffffff x0 : ffffffffffffffff Call trace: xfs_bmapi_convert_delalloc+0x794/0x7a8 xfs_convert_blocks fs/xfs/xfs_aops.c:258 [inline] xfs_map_blocks+0x43c/0x5a0 fs/xfs/xfs_aops.c:379 iomap_writepage_map fs/iomap/buffered-io.c:1608 [inline] iomap_do_writepage+0x2f8/0xc74 fs/iomap/buffered-io.c:1771 write_cache_pages+0x3c8/0x740 mm/page-writeback.c:2382 iomap_writepages+0x44/0xec fs/iomap/buffered-io.c:1788 xfs_vm_writepages+0x98/0xd8 fs/xfs/xfs_aops.c:503 do_writepages+0x134/0x26c mm/page-writeback.c:2491 __writeback_single_inode+0x50/0x2a0 fs/fs-writeback.c:1612 writeback_sb_inodes+0x3d0/0x864 fs/fs-writeback.c:1903 wb_writeback+0x18c/0x30c fs/fs-writeback.c:2077 wb_do_writeback fs/fs-writeback.c:2220 [inline] wb_workfn+0x128/0x5a8 fs/fs-writeback.c:2260 process_one_work+0x2d4/0x4e0 kernel/workqueue.c:2292 worker_thread+0x340/0x5f8 kernel/workqueue.c:2439 kthread+0x120/0x14c kernel/kthread.c:376 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:864 ---[ end trace 0000000000000000 ]--- XFS (loop0): page discard on page 00000000936d7357, inode 0x2b, pos 0. XFS (loop0): page discard on page 00000000255141cd, inode 0x2b, pos 4096. XFS (loop0): page discard on page 00000000f0da3fe4, inode 0x2b, pos 8192. XFS (loop0): page discard on page 0000000085b46aa9, inode 0x2b, pos 12288. XFS (loop0): page discard on page 000000000c00d575, inode 0x2b, pos 16384. XFS (loop0): page discard on page 00000000ed1c81a9, inode 0x2b, pos 20480. XFS (loop0): page discard on page 00000000e6a3dabd, inode 0x2b, pos 24576. XFS (loop0): page discard on page 000000007b3eda9c, inode 0x2b, pos 28672. XFS (loop0): page discard on page 0000000077d71d2b, inode 0x2b, pos 32768. XFS (loop0): page discard on page 00000000af52d886, inode 0x2b, pos 36864. XFS (loop0): page discard on page 00000000082e10c9, inode 0x2b, pos 4096. XFS (loop0): page discard on page 0000000056dc2d8b, inode 0x2b, pos 8192. XFS (loop0): page discard on page 000000006c7e9185, inode 0x2b, pos 12288. XFS (loop0): page discard on page 0000000076b2c037, inode 0x2b, pos 16384. XFS (loop0): page discard on page 00000000c5b70184, inode 0x2b, pos 20480. XFS (loop0): page discard on page 000000000a7be11d, inode 0x2b, pos 24576. XFS (loop0): page discard on page 00000000016394c1, inode 0x2b, pos 28672. XFS (loop0): page discard on page 00000000e7a86fb7, inode 0x2b, pos 32768. XFS (loop0): page discard on page 0000000035ac89dd, inode 0x2b, pos 36864.