entry_SYSCALL_64_after_hwframe+0x63/0xcd ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6346 at fs/btrfs/extent-tree.c:3026 __btrfs_free_extent+0x119d/0x2c30 fs/btrfs/extent-tree.c:3026 Modules linked in: CPU: 1 PID: 6346 Comm: syz-executor.2 Not tainted 6.5.0-rc3-syzkaller-gf47641f86054 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__btrfs_free_extent+0x119d/0x2c30 fs/btrfs/extent-tree.c:3026 Code: 2c 24 0f b6 e8 48 89 ef 4c 89 ee e8 9d 4c 1a fe 4c 39 ed 0f 84 b7 f3 ff ff e8 7f 51 1a fe 0f 0b e9 ab f3 ff ff e8 73 51 1a fe <0f> 0b be 08 00 00 00 48 89 df e8 04 68 6d fe f0 48 0f ba 2b 02 40 RSP: 0018:ffffc9000621f048 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880240ed9e0 RCX: 0000000000000000 RDX: ffff8880476281c0 RSI: ffffffff836b37fd RDI: 0000000000000005 RBP: 0000000000000101 R08: 0000000000000005 R09: 00000000fffffffe R10: 00000000fffffffe R11: 0000000000094000 R12: ffff888032e382c0 R13: ffff88803ec1e610 R14: 00000000fffffffe R15: 000000000053f000 FS: 00007f53da4016c0(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f53da3dff28 CR3: 000000002d71e000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1657 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1681 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1927 [inline] __btrfs_run_delayed_refs+0xd3d/0x3b80 fs/btrfs/extent-tree.c:1988 btrfs_run_delayed_refs+0x1a1/0x510 fs/btrfs/extent-tree.c:2100 commit_cowonly_roots+0x750/0xa60 fs/btrfs/transaction.c:1331 btrfs_commit_transaction+0x107e/0x3ed0 fs/btrfs/transaction.c:2427 prepare_to_merge+0x9a2/0x1460 fs/btrfs/relocation.c:1978 relocate_block_group+0x8d1/0xe70 fs/btrfs/relocation.c:3779 btrfs_relocate_block_group+0x714/0xd90 fs/btrfs/relocation.c:4117 btrfs_relocate_chunk+0x143/0x440 fs/btrfs/volumes.c:3277 __btrfs_balance fs/btrfs/volumes.c:4012 [inline] btrfs_balance+0x20fc/0x3ef0 fs/btrfs/volumes.c:4389 btrfs_ioctl_balance fs/btrfs/ioctl.c:3604 [inline] btrfs_ioctl+0x1362/0x5cf0 fs/btrfs/ioctl.c:4637 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f53d967cae9 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:00007f53da4010c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f53d979bf80 RCX: 00007f53d967cae9 RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000005 RBP: 00007f53d96c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f53d979bf80 R15: 00007fff5b561968