------------[ cut here ]------------ WARNING: CPU: 1 PID: 41 at fs/xfs/libxfs/xfs_bmap.c:4697 xfs_bmapi_convert_delalloc+0xd78/0x10f4 fs/xfs/libxfs/xfs_bmap.c:4697 Modules linked in: CPU: 1 PID: 41 Comm: kworker/u8:2 Not tainted 6.9.0-rc4-syzkaller-g6a71d2909427 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: writeback wb_workfn (flush-7:0) pstate: 80401005 (Nzcv daif +PAN -UAO -TCO -DIT +SSBS BTYPE=--) pc : xfs_bmapi_convert_delalloc+0xd78/0x10f4 fs/xfs/libxfs/xfs_bmap.c:4697 lr : xfs_bmapi_convert_delalloc+0xd78/0x10f4 fs/xfs/libxfs/xfs_bmap.c:4697 sp : ffff8000952767c0 x29: ffff8000952769c0 x28: ffff0000cbd70000 x27: dfff800000000000 x26: 0000000000000000 x25: ffff800095276900 x24: dfff800000000000 x23: ffff700012a4ed0c x22: ffffffffffffffff x21: ffff800095276980 x20: 0000000000000000 x19: ffff0000e38b1740 x18: 1ffff00012a4eded x17: ffff80008ee7d000 x16: ffff80008ae725bc x15: 0000000000000001 x14: 1fffe0001a0c4e02 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a0c4e03 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c1f59e40 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : 0000000000000000 x1 : ffffffffffffffff x0 : ffffffffffffffff Call trace: xfs_bmapi_convert_delalloc+0xd78/0x10f4 fs/xfs/libxfs/xfs_bmap.c:4697 xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline] xfs_map_blocks+0x600/0xf90 fs/xfs/xfs_aops.c:390 iomap_writepage_map_blocks fs/iomap/buffered-io.c:1777 [inline] iomap_writepage_map fs/iomap/buffered-io.c:1925 [inline] iomap_do_writepage+0xef0/0x2cb8 fs/iomap/buffered-io.c:1964 write_cache_pages+0xc8/0x20c mm/page-writeback.c:2569 iomap_writepages+0xb0/0x214 fs/iomap/buffered-io.c:1983 xfs_vm_writepages+0x100/0x150 fs/xfs/xfs_aops.c:507 do_writepages+0x2f8/0x7c4 mm/page-writeback.c:2612 __writeback_single_inode+0x160/0x1548 fs/fs-writeback.c:1650 writeback_sb_inodes+0x700/0x101c fs/fs-writeback.c:1941 wb_writeback+0x404/0x1048 fs/fs-writeback.c:2117 wb_do_writeback fs/fs-writeback.c:2264 [inline] wb_workfn+0x394/0x104c fs/fs-writeback.c:2304 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3254 process_scheduled_works kernel/workqueue.c:3335 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3416 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 irq event stamp: 3521852 hardirqs last enabled at (3521851): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (3521852): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (3516512): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (3516512): [] macvlan_process_broadcast+0x230/0x6c8 drivers/net/macvlan.c:332 softirqs last disabled at (3516510): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (3516510): [] macvlan_process_broadcast+0xec/0x6c8 drivers/net/macvlan.c:330 ---[ end trace 0000000000000000 ]--- XFS (loop0): page discard on page 00000000c2700b02, inode 0x114d, pos 12099584. hfsplus: b-tree write err: -5, ino 4 hfsplus: b-tree write err: -5, ino 4