WARNING: CPU: 1 PID: 5946 at fs/btrfs/free-space-tree.c:1056 add_to_free_space_tree+0x279/0x2c0 fs/btrfs/free-space-tree.c:1056 Modules linked in: CPU: 0 PID: 5946 Comm: syz-executor.3 Not tainted 6.2.0-rc6-syzkaller-00011-gc0b67534c95c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:add_to_free_space_tree+0x279/0x2c0 fs/btrfs/free-space-tree.c:1056 Code: cd 8c ba 20 04 00 00 44 89 e1 e8 92 a4 03 07 e9 f9 fe ff ff e8 58 0c dd fd 48 c7 c7 40 90 3b 8b 44 89 e6 31 c0 e8 f7 fa a3 fd <0f> 0b eb bb 89 e9 80 e1 07 38 c1 0f 8c fc fd ff ff be 08 00 00 00 RSP: 0018:ffffc90014ecf290 EFLAGS: 00010246 RAX: 8db27e197a162b00 RBX: ffff88807dd00001 RCX: 0000000000040000 RDX: ffffc9000c6f1000 RSI: 00000000000099e4 RDI: 00000000000099e5 RBP: dffffc0000000000 R08: ffffffff816e1b8d R09: fffff520029d9e0d R10: fffff520029d9e0d R11: 1ffff920029d9e0c R12: 00000000ffffffe4 R13: ffff8880761a7738 R14: 1ffff1100ec34ef1 R15: ffff8880761a7788 FS: 00007fa966e17700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4f1ff61000 CR3: 000000007646c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_free_extent_accounting fs/btrfs/extent-tree.c:2852 [inline] __btrfs_free_extent+0x14b3/0x29d0 fs/btrfs/extent-tree.c:3190 run_delayed_tree_ref fs/btrfs/extent-tree.c:1682 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1706 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:1955 [inline] __btrfs_run_delayed_refs+0xfde/0x2340 fs/btrfs/extent-tree.c:2018 btrfs_run_delayed_refs+0x13b/0x480 fs/btrfs/extent-tree.c:2149 btrfs_commit_transaction+0x23d/0x3340 fs/btrfs/transaction.c:2151 insert_balance_item+0x11cc/0x1ff0 fs/btrfs/volumes.c:3456 btrfs_balance+0x99e/0x1150 fs/btrfs/volumes.c:4339 btrfs_ioctl_balance+0x478/0x740 fs/btrfs/ioctl.c:3591 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa96608c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa966e17168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa9661ac050 RCX: 00007fa96608c0c9 RDX: 0000000020000480 RSI: 00000000c4009420 RDI: 0000000000000007 RBP: 00007fa9660e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb71be48f R14: 00007fa966e17300 R15: 0000000000022000