BTRFS error (device loop0): cow_file_range failed, root=5 inode=263 start=1024000 len=8192 cur_offset=1024000 cur_alloc_size=0: -28 BTRFS error (device loop0): failed to run delalloc range, root=5 ino=263 folio=1024000 submit_bitmap=0 start=1024000 len=8192: -28 BTRFS error (device loop0): failed to run delayed ref for logical 8671232 num_bytes 4096 type 178 action 1 ref_mod 1: -28 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 178 at fs/btrfs/extent-tree.c:2161 btrfs_run_delayed_refs+0x318/0x3b0 fs/btrfs/extent-tree.c:2161 Modules linked in: CPU: 0 UID: 0 PID: 178 Comm: kworker/u4:5 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound btrfs_async_reclaim_data_space RIP: 0010:btrfs_run_delayed_refs+0x318/0x3b0 fs/btrfs/extent-tree.c:2161 Code: 80 00 00 00 e8 c9 ce de fd 84 c0 74 26 e8 80 94 f8 fd eb 70 e8 79 94 f8 fd 90 48 c7 c7 60 cc ad 8b 44 89 fe e8 d9 a1 bb fd 90 <0f> 0b 90 90 e9 02 ff ff ff e8 ba 39 86 07 41 89 c4 31 ff 89 c6 e8 RSP: 0018:ffffc90001a6f4b8 EFLAGS: 00010246 RAX: 2e8238f403710e00 RBX: ffff8880445bc818 RCX: ffff888000ca0000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa658 R12: ffff888051740001 R13: ffff8880514b1000 R14: dffffc0000000000 R15: 00000000ffffffe4 FS: 0000000000000000(0000) GS:ffff88808d306000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000012507000 CR4: 0000000000352ef0 Call Trace: btrfs_commit_transaction+0x269/0x3950 fs/btrfs/transaction.c:2211 flush_space+0x48b/0xcd0 fs/btrfs/space-info.c:888 do_async_reclaim_data_space+0x2a6/0x520 fs/btrfs/space-info.c:1410 btrfs_async_reclaim_data_space+0x41/0x90 fs/btrfs/space-info.c:1458 process_one_work kernel/workqueue.c:3263 [inline] process_scheduled_works+0xae1/0x17b0 kernel/workqueue.c:3346 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3427 kthread+0x711/0x8a0 kernel/kthread.c:463 ret_from_fork+0x4bc/0x870 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245