------------[ cut here ]------------ WARNING: CPU: 1 PID: 302 at fs/xfs/libxfs/xfs_bmap.c:4641 xfs_bmapi_convert_delalloc+0xcec/0x1018 Modules linked in: CPU: 1 PID: 302 Comm: kworker/u4:3 Not tainted 5.15.117-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Workqueue: writeback wb_workfn (flush-7:3) 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 : ffff80001c8a67c0 x29: ffff80001c8a69c0 x28: ffff0000d7760000 x27: dfff800000000000 x26: ffff80001c8a6860 x25: 1ffff00003914d1b x24: 00000000ffffffe4 x23: ffff700003914d0c x22: ffffffffffffffff x21: ffff80001c8a6980 x20: 0000000000000000 x19: ffff80001c8a68a0 x18: 0000000000000000 x17: ff80800009961084 x16: ffff8000119534fc x15: ffff800009961084 x14: 1ffff0000291e06a x13: ffffffffffffffff x12: 0000000000000000 x11: ff808000099a653c x10: 0000000000000000 x9 : ffff8000099a653c x8 : ffff0000c78c8000 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : ffffffffffffffe0 x3 : ffff80000995019c 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: 744606 hardirqs last enabled at (744605): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (744605): [] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194 hardirqs last disabled at (744606): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (743918): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (743918): [] ieee80211_ibss_work+0x2d8/0x1230 net/mac80211/ibss.c:1706 softirqs last disabled at (743916): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (743916): [] ieee80211_ibss_work+0xd8/0x1230 net/mac80211/ibss.c:1695 ---[ end trace 01cbdb770d5d3300 ]--- XFS (loop3): page discard on page 000000000ed56691, inode 0x50c, offset 0.