------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3181 at do_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline], CPU#0: syz.0.0/5332 WARNING: fs/btrfs/extent-tree.c:3181 at __btrfs_free_extent+0x3c6e/0x4570 fs/btrfs/extent-tree.c:3554, CPU#0: syz.0.0/5332 Modules linked in: CPU: 0 UID: 0 PID: 5332 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:do_free_extent_accounting fs/btrfs/extent-tree.c:3181 [inline] RIP: 0010:__btrfs_free_extent+0x3c70/0x4570 fs/btrfs/extent-tree.c:3554 Code: e9 c8 05 00 00 e8 d0 89 c0 fd 84 c0 0f 84 f2 00 00 00 e8 63 81 db fd e9 b1 05 00 00 e8 59 81 db fd 48 8d 3d 02 a5 4f 0c 89 de <67> 48 0f b9 3a e9 c1 e0 ff ff e8 41 81 db fd eb 05 e8 3a 81 db fd RSP: 0018:ffffc9000fa4f4e0 EFLAGS: 00010287 RAX: ffffffff83ea4d87 RBX: 00000000fffffffe RCX: 0000000000100000 RDX: ffffc90020001000 RSI: 00000000fffffffe RDI: ffffffff9039f290 RBP: ffffc9000fa4f690 R08: ffff8880007b0000 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000002 R12: dffffc0000000000 R13: ffff888047fa6468 R14: 0000000000000000 R15: ffff888042714001 FS: 00007f92ac8156c0(0000) GS:ffff88808c885000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d1cb2fcd38 CR3: 0000000012164000 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+0x1870/0x4710 fs/btrfs/extent-tree.c:2133 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2245 btrfs_commit_transaction+0x29a/0x30e0 fs/btrfs/transaction.c:2262 btrfs_ioctl_subvol_setflags+0x4e4/0x820 fs/btrfs/ioctl.c:1358 btrfs_ioctl+0x2c9/0xd10 fs/btrfs/ioctl.c:5175 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+0x15f/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f92ab99cdd9 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:00007f92ac814fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f92abc16090 RCX: 00007f92ab99cdd9 RDX: 0000200000000140 RSI: 000000004008941a RDI: 0000000000000003 RBP: 00007f92aba32d69 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f92abc16128 R14: 00007f92abc16090 R15: 00007ffc17777498 ---------------- Code disassembly (best guess): 0: e9 c8 05 00 00 jmp 0x5cd 5: e8 d0 89 c0 fd call 0xfdc089da a: 84 c0 test %al,%al c: 0f 84 f2 00 00 00 je 0x104 12: e8 63 81 db fd call 0xfddb817a 17: e9 b1 05 00 00 jmp 0x5cd 1c: e8 59 81 db fd call 0xfddb817a 21: 48 8d 3d 02 a5 4f 0c lea 0xc4fa502(%rip),%rdi # 0xc4fa52a 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: e9 c1 e0 ff ff jmp 0xffffe0f5 34: e8 41 81 db fd call 0xfddb817a 39: eb 05 jmp 0x40 3b: e8 3a 81 db fd call 0xfddb817a