BTRFS error (device loop0): cow_file_range failed, root=5 inode=260 start=5570560 len=40960 cur_offset=5570560 cur_alloc_size=0: -28 BTRFS error (device loop0): failed to run delalloc range, root=5 ino=260 folio=5570560 submit_bitmap=0 start=5570560 len=40960: -28 BTRFS error (device loop0): failed to run delayed ref for logical 10829824 num_bytes 65536 type 178 action 1 ref_mod 1: -28 ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 3072 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: 3072 Comm: kworker/u4:10 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 39 9b de fd 84 c0 74 26 e8 10 61 f8 fd eb 70 e8 09 61 f8 fd 90 48 c7 c7 60 c4 ad 8b 44 89 fe e8 69 6d bb fd 90 <0f> 0b 90 90 e9 02 ff ff ff e8 aa 65 80 07 41 89 c4 31 ff 89 c6 e8 RSP: 0000:ffffc9000d8d74b8 EFLAGS: 00010246 RAX: 2b2cba495d179d00 RBX: ffff8880431a3000 RCX: ffff888035bda480 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bba650 R12: ffff8880513d4001 R13: ffff8880115a6000 R14: dffffc0000000000 R15: 00000000ffffffe4 FS: 0000000000000000(0000) GS:ffff88808d733000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f678a51a000 CR3: 000000000dd38000 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