------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/extent-tree.c:3425 at __btrfs_free_extent+0x1eff/0x38a0 fs/btrfs/extent-tree.c:3425, CPU#0: syz.0.0/5335 Modules linked in: CPU: 0 UID: 0 PID: 5335 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:__btrfs_free_extent+0x1eff/0x38a0 fs/btrfs/extent-tree.c:3425 Code: 6b a5 fd 45 85 f6 0f 85 d6 05 00 00 e8 da 66 a5 fd e9 3d 09 00 00 e8 d0 66 a5 fd eb 10 e8 c9 66 a5 fd eb 09 e8 c2 66 a5 fd 90 <0f> 0b 90 4c 8b 7c 24 08 44 89 f1 f7 d9 e9 57 e8 ff ff e8 9a 0b e3 RSP: 0018:ffffc9000f66f480 EFLAGS: 00010287 RAX: ffffffff8423c03e RBX: ffff888046128001 RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 0000000000003410 RDI: 0000000000003411 RBP: ffffc9000f66f630 R08: ffff88801e3a4b00 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: dffffc0000000000 R13: ffff888045de05e0 R14: 00000000ffffffe4 R15: 00000000ffffffe4 FS: 00007f21f59f56c0(0000) GS:ffff88808aa01000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f42c439eb50 CR3: 0000000041a6d000 CR4: 0000000000352ef0 Call Trace: run_delayed_tree_ref fs/btrfs/extent-tree.c:1824 [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+0x1669/0x43a0 fs/btrfs/extent-tree.c:2134 btrfs_run_delayed_refs+0xdc/0x2a0 fs/btrfs/extent-tree.c:2246 btrfs_commit_transaction+0x287/0x3010 fs/btrfs/transaction.c:2283 btrfs_quota_enable+0x1274/0x1f70 fs/btrfs/qgroup.c:1241 btrfs_ioctl_quota_ctl+0x186/0x1f0 fs/btrfs/ioctl.c:3581 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:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f21f959f559 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:00007f21f59f4fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f21f9826090 RCX: 00007f21f959f559 RDX: 0000200000006380 RSI: 00000000c0109428 RDI: 0000000000000008 RBP: 00007f21f9636b50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f21f9826128 R14: 00007f21f9826090 R15: 00007ffef54bf0f8