------------[ cut here ]------------ BTRFS: Transaction aborted (error -2) WARNING: fs/btrfs/extent-tree.c:3105 at do_free_extent_accounting fs/btrfs/extent-tree.c:3105 [inline], CPU#0: syz-executor/5439 WARNING: fs/btrfs/extent-tree.c:3105 at __btrfs_free_extent+0x3a28/0x4350 fs/btrfs/extent-tree.c:3474, CPU#0: syz-executor/5439 Modules linked in: CPU: 0 UID: 0 PID: 5439 Comm: syz-executor 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:3105 [inline] RIP: 0010:__btrfs_free_extent+0x3a2b/0x4350 fs/btrfs/extent-tree.c:3474 Code: c0 05 00 00 e8 96 07 c4 fd 84 c0 0f 84 f3 00 00 00 e8 89 fd de fd e9 a9 05 00 00 e8 7f fd de fd 48 8d 3d 68 21 34 0c 44 89 ee <67> 48 0f b9 3a e9 af e2 ff ff e8 66 fd de fd eb 05 e8 5f fd de fd RSP: 0018:ffffc90002ab7440 EFLAGS: 00010293 RAX: ffffffff83e69df1 RBX: ffff8880482d4bf0 RCX: ffff888012a0a480 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff901abf60 RBP: ffffc90002ab75f0 R08: ffff888012a0a480 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: ffff888044e6fa50 R13: 00000000fffffffe R14: 0000000000000000 R15: ffff888054e4c001 FS: 000055558bf57500(0000) GS:ffff88808ca58000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff28bd02286 CR3: 00000000331ef000 CR4: 0000000000352ef0 Call Trace: run_one_delayed_ref fs/btrfs/extent-tree.c:-1 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2003 [inline] __btrfs_run_delayed_refs+0x15e7/0x4240 fs/btrfs/extent-tree.c:2078 btrfs_run_delayed_refs+0xe6/0x3b0 fs/btrfs/extent-tree.c:2190 btrfs_commit_transaction+0xfb6/0x31a0 fs/btrfs/transaction.c:2457 sync_filesystem+0x1cf/0x230 fs/sync.c:66 generic_shutdown_super+0x77/0x2d0 fs/super.c:625 kill_anon_super+0x3b/0x70 fs/super.c:1292 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2127 deactivate_locked_super+0xbc/0x130 fs/super.c:476 cleanup_mnt+0x437/0x4d0 fs/namespace.c:1312 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:67 [inline] exit_to_user_mode_loop+0xed/0x480 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:325 [inline] do_syscall_64+0x32d/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5f94d9d9d7 Code: a2 c7 05 1c ed 24 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fff8f996028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f5f94e31f90 RCX: 00007f5f94d9d9d7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff8f9960e0 RBP: 00007fff8f9960e0 R08: 00007fff8f9970e0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8f997170 R13: 00007f5f94e31f90 R14: 000000000001ddb4 R15: 00007fff8f9971b0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 00 00 add %al,(%rax) 2: e8 96 07 c4 fd call 0xfdc4079d 7: 84 c0 test %al,%al 9: 0f 84 f3 00 00 00 je 0x102 f: e8 89 fd de fd call 0xfddefd9d 14: e9 a9 05 00 00 jmp 0x5c2 19: e8 7f fd de fd call 0xfddefd9d 1e: 48 8d 3d 68 21 34 0c lea 0xc342168(%rip),%rdi # 0xc34218d 25: 44 89 ee mov %r13d,%esi * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: e9 af e2 ff ff jmp 0xffffe2e1 32: e8 66 fd de fd call 0xfddefd9d 37: eb 05 jmp 0x3e 39: e8 5f fd de fd call 0xfddefd9d