------------[ cut here ]------------ WARNING: CPU: 1 PID: 4891 at fs/btrfs/extent-tree.c:3082 __btrfs_free_extent+0x8a6/0x2170 fs/btrfs/extent-tree.c:3082 Modules linked in: CPU: 1 PID: 4891 Comm: syz-executor.1 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:__btrfs_free_extent+0x8a6/0x2170 fs/btrfs/extent-tree.c:3082 Code: fe e9 3e 02 00 00 e8 c9 d5 3d fe 0f 1f 44 00 00 e8 bf d5 3d fe eb 15 e8 b8 d5 3d fe 48 c7 c7 60 53 4a 8a 89 de e8 7a bb 5c 06 <0f> 0b 4c 89 ef 48 c7 c6 e0 60 4a 8a ba 0a 0c 00 00 89 d9 e8 b2 de RSP: 0018:ffffc9000350ea80 EFLAGS: 00010246 RAX: 1640da053c446c00 RBX: 00000000ffffffe4 RCX: ffff8880210bbb80 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000350ebe0 R08: dffffc0000000000 R09: ffffed1017224f24 R10: ffffed1017224f24 R11: 1ffff11017224f23 R12: 00000000ffffffe4 R13: ffff888072096840 R14: 00000000ffffffe4 R15: ffff88807e5b52c0 FS: 00007f63fa9476c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2e75072000 CR3: 0000000060838000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_one_delayed_ref fs/btrfs/extent-tree.c:-1 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1977 [inline] __btrfs_run_delayed_refs+0xf27/0x3840 fs/btrfs/extent-tree.c:2040 btrfs_run_delayed_refs+0x140/0x480 fs/btrfs/extent-tree.c:2171 flush_space+0x8f7/0xc50 fs/btrfs/space-info.c:660 priority_reclaim_metadata_space+0xab/0x140 fs/btrfs/space-info.c:1256 handle_reserve_ticket fs/btrfs/space-info.c:-1 [inline] __reserve_bytes+0x9a9/0x1360 fs/btrfs/space-info.c:1544 btrfs_reserve_metadata_bytes+0x7f/0x250 fs/btrfs/space-info.c:1572 btrfs_block_rsv_refill+0x8d/0x170 fs/btrfs/block-rsv.c:266 evict_refill_and_join+0x8d/0x1f0 fs/btrfs/inode.c:5621 btrfs_evict_inode+0xb71/0xf50 fs/btrfs/inode.c:5701 evict+0x485/0x870 fs/inode.c:647 btrfs_new_inode+0x8ae/0x1740 fs/btrfs/inode.c:6711 btrfs_tmpfile+0x212/0x460 fs/btrfs/inode.c:10614 vfs_tmpfile+0x214/0x300 fs/namei.c:3657 do_tmpfile+0x140/0x370 fs/namei.c:3692 path_openat+0x292b/0x2f30 fs/namei.c:3733 do_filp_open+0x1b3/0x3e0 fs/namei.c:3769 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f63fb607ae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f63fa9470c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f63fb727120 RCX: 00007f63fb607ae9 RDX: 0000000000000000 RSI: 0000000000591002 RDI: 0000000020000100 RBP: 00007f63fb65347a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f63fb727120 R15: 00007ffe704d1738