------------[ cut here ]------------ WARNING: CPU: 0 PID: 153 at fs/xfs/libxfs/xfs_bmap.c:4641 xfs_bmapi_convert_delalloc+0xcec/0x1018 Modules linked in: CPU: 0 PID: 153 Comm: kworker/u4:3 Not tainted 5.15.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: writeback wb_workfn (flush-7:0) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : xfs_bmapi_convert_delalloc+0xcec/0x1018 lr : xfs_bmapi_convert_delalloc+0xce8/0x1018 fs/xfs/libxfs/xfs_bmap.c:4641 sp : ffff80001a8867c0 x29: ffff80001a8869c0 x28: ffff0000d77d8000 x27: dfff800000000000 x26: ffff80001a886860 x25: 1ffff00003510d1b x24: 00000000ffffffe4 x23: ffff700003510d0c x22: ffffffffffffffff x21: ffff80001a886980 x20: 0000000000000000 x19: ffff80001a8868a0 x18: 0000000000000000 x17: ff80800009960bcc x16: ffff80001194786c x15: ffff800009960bcc x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000000 x11: ff808000099a6084 x10: 0000000000000000 x9 : ffff8000099a6084 x8 : ffff0000c5f60000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : ffffffffffffffe0 x3 : ffff80000994fce4 x2 : 0000000000000001 x1 : ffffffffffffffff x0 : ffffffffffffffff Call trace: xfs_bmapi_convert_delalloc+0xcec/0x1018 xfs_convert_blocks fs/xfs/xfs_aops.c:245 [inline] xfs_map_blocks+0x858/0x1318 fs/xfs/xfs_aops.c:366 iomap_writepage_map fs/iomap/buffered-io.c:1320 [inline] iomap_do_writepage+0x538/0x1db8 fs/iomap/buffered-io.c:1485 write_cache_pages+0x878/0xf58 mm/page-writeback.c:2255 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1516 xfs_vm_writepages+0x124/0x180 fs/xfs/xfs_aops.c:488 do_writepages+0x39c/0x5ec mm/page-writeback.c:2364 __writeback_single_inode+0x148/0x13a4 fs/fs-writeback.c:1625 writeback_sb_inodes+0x94c/0x1620 fs/fs-writeback.c:1908 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2082 wb_do_writeback fs/fs-writeback.c:2225 [inline] wb_workfn+0x3a4/0x1070 fs/fs-writeback.c:2266 process_one_work+0x790/0x11b8 kernel/workqueue.c:2307 worker_thread+0x910/0x1034 kernel/workqueue.c:2454 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 672658 hardirqs last enabled at (672657): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (672657): [] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194 hardirqs last disabled at (672658): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (672538): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (672536): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 03d93e4566892b4d ]--- XFS (loop0): page discard on page 0000000048f9ec32, inode 0x2b, offset 0. XFS (loop0): page discard on page 0000000047f4e6c3, inode 0x2b, offset 4096. XFS (loop0): page discard on page 00000000c4303a7f, inode 0x2b, offset 8192. XFS (loop0): page discard on page 000000009807846a, inode 0x2b, offset 12288. XFS (loop0): page discard on page 00000000afb91032, inode 0x2b, offset 16384. XFS (loop0): page discard on page 00000000e0622c16, inode 0x2b, offset 20480. XFS (loop0): page discard on page 00000000a00f1fd6, inode 0x2b, offset 24576. XFS (loop0): page discard on page 000000002d8ab8c0, inode 0x2b, offset 28672. XFS (loop0): page discard on page 0000000025b1aba0, inode 0x2b, offset 32768. XFS (loop0): page discard on page 000000001a6903b6, inode 0x2b, offset 36864.