BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): enabling free space tree BTRFS error (device loop0): allocation failed flags 36, wanted 4096 tree-log 1, relocation: 0 BTRFS info (device loop0): space_info DATA+METADATA (sub-group id 0) has 12288 free, is full BTRFS info (device loop0): space_info total=7405568, used=1511424, pinned=0, reserved=4100096, may_use=1781760, readonly=0 zone_unusable=0 BTRFS info (device loop0): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop0): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop0): delayed_block_rsv: size 32768 reserved 32768 BTRFS info (device loop0): delayed_refs_rsv: size 1310720 reserved 303104 BTRFS info (device loop0): block group 5242880 has 1638400 bytes, 1482752 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (155648 bytes available) BTRFS critical (device loop0): entry offset 5242880, bytes 45056, bitmap no BTRFS critical (device loop0): entry offset 5308416, bytes 40960, bitmap no BTRFS critical (device loop0): entry offset 5353472, bytes 16384, bitmap no BTRFS critical (device loop0): entry offset 6828032, bytes 53248, bitmap no BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 4 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): block group 6881280 has 1638400 bytes, 0 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (1638400 bytes available) BTRFS critical (device loop0): entry offset 6881280, bytes 1638400, bitmap no BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 1 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): block group 8519680 has 4128768 bytes, 28672 used 0 pinned 4100096 reserved 0 delalloc 0 super 0 zone_unusable (0 bytes available) BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 0 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): 1794048 bytes available across all block groups BTRFS error (device loop0): allocation failed flags 36, wanted 4096 tree-log 0, relocation: 0 BTRFS info (device loop0): space_info DATA+METADATA (sub-group id 0) has 12288 free, is full BTRFS info (device loop0): space_info total=7405568, used=1511424, pinned=0, reserved=4100096, may_use=1781760, readonly=0 zone_unusable=0 BTRFS info (device loop0): global_block_rsv: size 1441792 reserved 1441792 BTRFS info (device loop0): trans_block_rsv: size 0 reserved 0 BTRFS info (device loop0): chunk_block_rsv: size 0 reserved 0 BTRFS info (device loop0): delayed_block_rsv: size 32768 reserved 32768 BTRFS info (device loop0): delayed_refs_rsv: size 1310720 reserved 303104 BTRFS info (device loop0): block group 5242880 has 1638400 bytes, 1482752 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (155648 bytes available) BTRFS critical (device loop0): entry offset 5242880, bytes 45056, bitmap no BTRFS critical (device loop0): entry offset 5308416, bytes 40960, bitmap no BTRFS critical (device loop0): entry offset 5353472, bytes 16384, bitmap no BTRFS critical (device loop0): entry offset 6828032, bytes 53248, bitmap no BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 4 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): block group 6881280 has 1638400 bytes, 0 used 0 pinned 0 reserved 0 delalloc 0 super 0 zone_unusable (1638400 bytes available) BTRFS critical (device loop0): entry offset 6881280, bytes 1638400, bitmap no BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 1 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): block group 8519680 has 4128768 bytes, 28672 used 0 pinned 4100096 reserved 0 delalloc 0 super 0 zone_unusable (0 bytes available) BTRFS info (device loop0): block group has cluster?: no BTRFS info (device loop0): 0 free space entries at or bigger than 4096 bytes BTRFS info (device loop0): 1794048 bytes available across all block groups ------------[ cut here ]------------ BTRFS: Transaction aborted (error -28) WARNING: CPU: 0 PID: 5363 at fs/btrfs/extent-tree.c:3237 __btrfs_free_extent+0x2cd5/0x4250 fs/btrfs/extent-tree.c:3237 Modules linked in: CPU: 0 UID: 0 PID: 5363 Comm: syz.0.0 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 RIP: 0010:__btrfs_free_extent+0x2cd5/0x4250 fs/btrfs/extent-tree.c:3237 Code: 94 e2 fd 84 c0 74 58 e8 39 f2 fb fd e9 dd 02 00 00 e8 2f f2 fb fd 90 48 c7 c7 e0 31 cd 8b 45 89 f7 44 89 f6 e8 1c 81 bf fd 90 <0f> 0b 90 90 e9 47 da ff ff e8 bd d5 b7 07 89 c3 31 ff 89 c6 e8 42 RSP: 0018:ffffc9000d337060 EFLAGS: 00010246 RAX: 30c341e7bc1bf400 RBX: 0000000000000000 RCX: 0000000000100000 RDX: ffffc9000e282000 RSI: 00000000000fffff RDI: 0000000000100000 RBP: ffffc9000d337210 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff1bfa1ec R12: 00000000ffffffe4 R13: 0000000000000b45 R14: 00000000ffffffe4 R15: 00000000ffffffe4 FS: 00007f403d51e6c0(0000) GS:ffff88808d210000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000547000 CR3: 0000000032a8e000 CR4: 0000000000352ef0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1749 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1775 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1972 [inline] __btrfs_run_delayed_refs+0xe7f/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 btrfs_sync_file+0xd30/0x1160 fs/btrfs/file.c:1819 generic_write_sync include/linux/fs.h:3042 [inline] btrfs_do_write_iter+0x59a/0x710 fs/btrfs/file.c:1470 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f403c78ebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f403d51e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f403c9b5fa0 RCX: 00007f403c78ebe9 RDX: 00000000fffffe16 RSI: 0000200000005680 RDI: 0000000000000005 RBP: 00007f403c811e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000600000fff R11: 0000000000000246 R12: 0000000000000000 R13: 00007f403c9b6038 R14: 00007f403c9b5fa0 R15: 00007ffef923d968