------------[ cut here ]------------
WARNING: CPU: 1 PID: 3476 at fs/xfs/libxfs/xfs_bmap.c:660 xfs_bmap_extents_to_btree+0xe1b/0x1190
Modules linked in:
CPU: 1 PID: 3476 Comm: kworker/1:3 Not tainted 6.3.0-syzkaller-05127-g5c7ecada25d2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
Workqueue: xfs-conv/loop2 xfs_end_io
RIP: 0010:xfs_bmap_extents_to_btree+0xe1b/0x1190 fs/xfs/libxfs/xfs_bmap.c:660
Code: 01 00 00 44 0f 44 f0 48 8b 84 24 88 00 00 00 42 0f b6 04 28 84 c0 0f 85 91 02 00 00 45 89 34 24 e9 10 fb ff ff e8 e5 92 75 fe <0f> 0b 41 bf e4 ff ff ff 48 8b 5c 24 18 e9 bd fa ff ff 89 d9 80 e1
RSP: 0018:ffffc90016f16fe0 EFLAGS: 00010293
RAX: ffffffff831576db RBX: ffffffffffffffff RCX: ffff88801dce1dc0
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: ffffffffffffffff
RBP: ffffc90016f17270 R08: ffffffff83156f08 R09: fffffbfff1ca6c6e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110063c680f
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888031e34000
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe78fab1000 CR3: 00000000450fa000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
xfs_bmap_add_extent_unwritten_real+0x1eec/0x31f0 fs/xfs/libxfs/xfs_bmap.c:2426
xfs_bmapi_convert_unwritten+0x505/0x6e0 fs/xfs/libxfs/xfs_bmap.c:4191
xfs_bmapi_write+0xb55/0x1980 fs/xfs/libxfs/xfs_bmap.c:4418
xfs_iomap_write_unwritten+0x45f/0xc40 fs/xfs/xfs_iomap.c:615
xfs_end_ioend+0x232/0x4d0 fs/xfs/xfs_aops.c:131
xfs_end_io+0x2e5/0x370 fs/xfs/xfs_aops.c:173
process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390
worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
kthread+0x2b2/0x350 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
</TASK>