------------[ cut here ]------------ WARNING: CPU: 1 PID: 40 at fs/xfs/libxfs/xfs_bmap.c:4594 xfs_bmapi_convert_delalloc+0xd6c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4594 Modules linked in: CPU: 1 PID: 40 Comm: kworker/u4:2 Not tainted 6.4.0-rc2-syzkaller-00163-g2d1bcbc6cd70 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Workqueue: writeback wb_workfn (flush-7:0) pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : xfs_bmapi_convert_delalloc+0xd6c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4594 lr : xfs_bmapi_convert_delalloc+0xd6c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4594 sp : ffff800019646800 x29: ffff800019646a00 x28: ffff0000db998000 x27: dfff800000000000 x26: 0000000000000000 x25: ffff800019646940 x24: dfff800000000000 x23: ffff7000032c8d14 x22: ffffffffffffffff x21: ffff8000196469c0 x20: 0000000000000000 x19: ffff0000e1438000 x18: ffff800019646480 x17: ffff800014f5d000 x16: ffff800011c2b39c x15: 0000000000000000 x14: ffff800014f60518 x13: dfff800000000000 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000 x8 : ffff0000c109d340 x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000001 x2 : 0000000000000000 x1 : ffffffffffffffff x0 : ffffffffffffffff Call trace: xfs_bmapi_convert_delalloc+0xd6c/0x10e8 fs/xfs/libxfs/xfs_bmap.c:4594 xfs_convert_blocks fs/xfs/xfs_aops.c:266 [inline] xfs_map_blocks+0x5fc/0xf30 fs/xfs/xfs_aops.c:389 iomap_writepage_map fs/iomap/buffered-io.c:1634 [inline] iomap_do_writepage+0x778/0x245c fs/iomap/buffered-io.c:1796 write_cache_pages+0x66c/0xcdc mm/page-writeback.c:2473 iomap_writepages+0x6c/0x1f4 fs/iomap/buffered-io.c:1813 xfs_vm_writepages+0x134/0x198 fs/xfs/xfs_aops.c:513 do_writepages+0x2e8/0x570 mm/page-writeback.c:2551 __writeback_single_inode+0x148/0x146c fs/fs-writeback.c:1603 writeback_sb_inodes+0x720/0xff0 fs/fs-writeback.c:1894 wb_writeback+0x3fc/0xfc8 fs/fs-writeback.c:2068 wb_do_writeback fs/fs-writeback.c:2211 [inline] wb_workfn+0x37c/0xf9c fs/fs-writeback.c:2251 process_one_work+0x788/0x12d4 kernel/workqueue.c:2405 worker_thread+0x8e0/0xfe8 kernel/workqueue.c:2552 kthread+0x288/0x310 kernel/kthread.c:379 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 irq event stamp: 941572 hardirqs last enabled at (941571): [] get_random_u32+0x318/0x618 drivers/char/random.c:532 hardirqs last disabled at (941572): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (941380): [] spin_unlock_bh include/linux/spinlock.h:395 [inline] softirqs last enabled at (941380): [] batadv_nc_purge_paths+0x2f4/0x378 net/batman-adv/network-coding.c:471 softirqs last disabled at (941378): [] spin_lock_bh include/linux/spinlock.h:355 [inline] softirqs last disabled at (941378): [] batadv_nc_purge_paths+0xd0/0x378 net/batman-adv/network-coding.c:442 ---[ end trace 0000000000000000 ]--- XFS (loop0): page discard on page 00000000948f5b25, inode 0x2b, pos 0. XFS (loop0): page discard on page 000000002f851ac2, inode 0x2b, pos 4096. XFS (loop0): page discard on page 00000000bb50dc26, inode 0x2b, pos 8192. XFS (loop0): page discard on page 000000004ca16247, inode 0x2b, pos 12288. XFS (loop0): page discard on page 000000000f289478, inode 0x2b, pos 16384. XFS (loop0): page discard on page 00000000ccd4eb31, inode 0x2b, pos 20480. XFS (loop0): page discard on page 000000007f556c30, inode 0x2b, pos 24576. XFS (loop0): page discard on page 000000006cd4ec68, inode 0x2b, pos 28672. XFS (loop0): page discard on page 0000000064abd03d, inode 0x2b, pos 32768. XFS (loop0): page discard on page 00000000a832cca5, inode 0x2b, pos 36864. xfs_discard_folio: 102 callbacks suppressed XFS (loop0): page discard on page 00000000d0dace0d, inode 0x2b, pos 0. XFS (loop0): page discard on page 00000000f9e860fe, inode 0x2b, pos 4096. XFS (loop0): page discard on page 00000000879ced69, inode 0x2b, pos 8192. XFS (loop0): page discard on page 000000009013e963, inode 0x2b, pos 12288. XFS (loop0): page discard on page 0000000094270d32, inode 0x2b, pos 16384. XFS (loop0): page discard on page 00000000ac958c3b, inode 0x2b, pos 20480. XFS (loop0): page discard on page 00000000357b2cd2, inode 0x2b, pos 24576. XFS (loop0): page discard on page 00000000e0ec2b56, inode 0x2b, pos 28672. XFS (loop0): page discard on page 000000006403d840, inode 0x2b, pos 32768. XFS (loop0): page discard on page 0000000024351668, inode 0x2b, pos 36864.