loop0: detected capacity change from 0 to 32768 BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.0 (5327) BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d BTRFS info (device loop0): using sha256 checksum algorithm BTRFS info (device loop0): checking UUID tree BTRFS info (device loop0): enabling ssd optimizations BTRFS info (device loop0): using spread ssd allocation scheme BTRFS info (device loop0): turning on async discard BTRFS info (device loop0): enabling free space tree BTRFS info (device loop0): use zlib compression, level 3 openvswitch: netlink: Geneve opt len 145 is not a multiple of 4. BTRFS info (device loop0): balance: start -d -m BTRFS info (device loop0): relocating block group 6881280 flags data|metadata ------------[ cut here ]------------ ret WARNING: fs/btrfs/extent-tree.c:879 at lookup_inline_extent_backref+0x145c/0x1a90 fs/btrfs/extent-tree.c:879, CPU#0: syz.0.0/5327 Modules linked in: CPU: 0 UID: 0 PID: 5327 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 04/01/2014 RIP: 0010:lookup_inline_extent_backref+0x145c/0x1a90 fs/btrfs/extent-tree.c:879 Code: 86 05 00 00 89 d8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 1f cd b9 fd bb fe ff ff ff e9 05 fd ff ff 90 <0f> 0b 90 48 8b 84 24 88 00 00 00 48 b9 00 00 00 00 00 fc ff df 80 RSP: 0018:ffffc9000e4aea80 EFLAGS: 00010202 RAX: ffffffff840ca4ab RBX: 0000000000000001 RCX: 0000000000000002 RDX: ffff88803706ca80 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000e4aeca8 R08: 0000000000000000 R09: 1ffffd40002a4d50 R10: dffffc0000000000 R11: fffff940002a4d51 R12: ffff88803fe55e70 R13: 0000000000533000 R14: 0000000000000009 R15: ffff8880129d0000 FS: 00007fa3c0e8e6c0(0000) GS:ffff88808c549000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffd2b47b84 CR3: 0000000043b96000 CR4: 0000000000352ef0 Call Trace: insert_inline_extent_backref+0xa8/0x300 fs/btrfs/extent-tree.c:1248 __btrfs_inc_extent_ref+0x262/0x820 fs/btrfs/extent-tree.c:1547 run_delayed_tree_ref fs/btrfs/extent-tree.c:1819 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1851 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2058 [inline] __btrfs_run_delayed_refs+0xfc4/0x43b0 fs/btrfs/extent-tree.c:2134 btrfs_run_delayed_refs+0x185/0x2a0 fs/btrfs/extent-tree.c:2246 qgroup_account_snapshot fs/btrfs/transaction.c:1607 [inline] create_pending_snapshot+0x11bc/0x2610 fs/btrfs/transaction.c:1879 create_pending_snapshots+0x17c/0x1c0 fs/btrfs/transaction.c:1965 btrfs_commit_transaction+0xf95/0x30b0 fs/btrfs/transaction.c:2466 prepare_to_relocate+0x3db/0x4e0 fs/btrfs/relocation.c:3540 relocate_block_group+0x141/0xe90 fs/btrfs/relocation.c:3565 do_nonremap_reloc+0xa7/0x560 fs/btrfs/relocation.c:5322 btrfs_relocate_block_group+0x6e2/0xaf0 fs/btrfs/relocation.c:5489 btrfs_relocate_chunk+0x114/0x810 fs/btrfs/volumes.c:3647 __btrfs_balance+0x1b5f/0x29d0 fs/btrfs/volumes.c:4586 btrfs_balance+0xaa6/0x1180 fs/btrfs/volumes.c:4973 btrfs_ioctl_balance+0x3da/0x640 fs/btrfs/ioctl.c:3480 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa3bff9de99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa3c0e8dfe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fa3c0225fa0 RCX: 00007fa3bff9de99 RDX: 0000200000000180 RSI: 00000000c4009420 RDI: 0000000000000007 RBP: 00007fa3c0033eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa3c0226038 R14: 00007fa3c0225fa0 R15: 00007ffdaf4281f8