------------[ cut here ]------------ WARNING: CPU: 0 PID: 298 at fs/xfs/libxfs/xfs_bmap.c:4641 xfs_bmapi_convert_delalloc+0xcec/0x1018 Modules linked in: CPU: 0 PID: 298 Comm: kworker/u4:3 Not tainted 5.15.161-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 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 : ffff80001c8a67c0 x29: ffff80001c8a69c0 x28: ffff0000cdcb6000 x27: dfff800000000000 x26: ffff80001c8a6860 x25: 1ffff00003914d1b x24: 00000000ffffffe4 x23: ffff700003914d0c x22: ffffffffffffffff x21: ffff80001c8a6980 x20: 0000000000000000 x19: ffff80001c8a68a0 x18: 0000000000000000 x17: 0000000000000000 x16: ffff8000119a23d0 x15: 0000000000000040 x14: 1ffff0000292c06a x13: 0000000000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000c79b0000 x8 : ffff8000099c5a60 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : ffffffffffffffe0 x3 : ffff80000996f6c0 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:1647 writeback_sb_inodes+0x94c/0x1654 fs/fs-writeback.c:1930 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2104 wb_do_writeback fs/fs-writeback.c:2247 [inline] wb_workfn+0x3a4/0x1070 fs/fs-writeback.c:2288 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 538420 hardirqs last enabled at (538419): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (538419): [] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194 hardirqs last disabled at (538420): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (538010): [] spin_unlock_bh include/linux/spinlock.h:408 [inline] softirqs last enabled at (538010): [] batadv_nc_purge_paths+0x308/0x38c net/batman-adv/network-coding.c:475 softirqs last disabled at (538008): [] spin_lock_bh include/linux/spinlock.h:368 [inline] softirqs last disabled at (538008): [] batadv_nc_purge_paths+0xd0/0x38c net/batman-adv/network-coding.c:446 ---[ end trace 85bb21d524739856 ]--- XFS (loop0): page discard on page 00000000cd1bafab, inode 0x2b, offset 0. XFS (loop0): page discard on page 00000000d08d76e5, inode 0x2b, offset 4096. XFS (loop0): page discard on page 000000000da2eb1a, inode 0x2b, offset 8192. XFS (loop0): page discard on page 000000007cdf3a2b, inode 0x2b, offset 12288. XFS (loop0): page discard on page 0000000058331251, inode 0x2b, offset 16384. XFS (loop0): page discard on page 00000000d6555666, inode 0x2b, offset 20480. XFS (loop0): page discard on page 000000003aac1b77, inode 0x2b, offset 24576. XFS (loop0): page discard on page 00000000416a565f, inode 0x2b, offset 28672. XFS (loop0): page discard on page 00000000d98bebb7, inode 0x2b, offset 32768. XFS (loop0): page discard on page 00000000eda92702, inode 0x2b, offset 36864.