------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 55 at fs/btrfs/extent-tree.c:2986 do_free_extent_accounting fs/btrfs/extent-tree.c:2986 [inline] WARNING: CPU: 0 PID: 55 at fs/btrfs/extent-tree.c:2986 __btrfs_free_extent+0x37c0/0x4250 fs/btrfs/extent-tree.c:3372 Modules linked in: CPU: 0 UID: 0 PID: 55 Comm: kworker/u4:4 Not tainted 6.16.0-syzkaller-12288-g2b38afce25c4 #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_metadata_space RIP: 0010:do_free_extent_accounting fs/btrfs/extent-tree.c:2986 [inline] RIP: 0010:__btrfs_free_extent+0x37c0/0x4250 fs/btrfs/extent-tree.c:3372 Code: c0 0f 84 59 01 00 00 e8 ce 00 fc fd e9 df 06 00 00 e8 c4 00 fc fd 90 48 c7 c7 60 31 cd 8b 45 89 fc 44 89 fe e8 81 8f bf fd 90 <0f> 0b 90 90 e9 f2 e4 ff ff e8 a2 00 fc fd eb 05 e8 9b 00 fc fd e8 RSP: 0018:ffffc9000102ef40 EFLAGS: 00010246 RAX: d31604eaa47d0200 RBX: 0000000000000000 RCX: ffff88801f7e8000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: ffffc9000102f0f0 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: 00000000ffffffe4 R13: ffff888044310878 R14: ffff88805324c001 R15: 00000000ffffffe4 FS: 0000000000000000(0000) GS:ffff88808d211000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff79c6e150 CR3: 0000000051acc000 CR4: 0000000000352ef0 Call Trace: run_delayed_data_ref fs/btrfs/extent-tree.c:1599 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1779 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1972 [inline] __btrfs_run_delayed_refs+0xc39/0x4130 fs/btrfs/extent-tree.c:2047 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2159 btrfs_commit_transaction+0x269/0x3950 fs/btrfs/transaction.c:2214 flush_space+0x48b/0xcd0 fs/btrfs/space-info.c:888 do_async_reclaim_metadata_space+0x144/0x390 fs/btrfs/space-info.c:1158 btrfs_async_reclaim_metadata_space+0x89/0xe0 fs/btrfs/space-info.c:1226 process_one_work kernel/workqueue.c:3236 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3319 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400 kthread+0x70e/0x8a0 kernel/kthread.c:463 ret_from_fork+0x3f9/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245