------------[ 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/5327 WARNING: fs/btrfs/extent-tree.c:3181 at __btrfs_free_extent+0x3c6e/0x4570 fs/btrfs/extent-tree.c:3554, 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: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 10 57 c0 fd 84 c0 0f 84 f2 00 00 00 e8 53 4e db fd e9 b1 05 00 00 e8 49 4e db fd 48 8d 3d d2 b1 4f 0c 89 de <67> 48 0f b9 3a e9 c1 e0 ff ff e8 31 4e db fd eb 05 e8 2a 4e db fd RSP: 0018:ffffc9000e29f4c0 EFLAGS: 00010293 RAX: ffffffff83ea7707 RBX: 00000000fffffffe RCX: ffff888000894a00 RDX: 0000000000000000 RSI: 00000000fffffffe RDI: ffffffff903a28e0 RBP: ffffc9000e29f670 R08: ffff888000894a00 R09: 0000000000000003 R10: 00000000fffffffb R11: 0000000000000000 R12: dffffc0000000000 R13: ffff888047ce9490 R14: 0000000000000000 R15: ffff888042760001 FS: 000055556d979540(0000) GS:ffff88808c87c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d0f378000 CR3: 00000000132c7000 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+0xf91/0x2fc0 fs/btrfs/transaction.c:2480 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+0xf3/0x4d0 kernel/entry/common.c:98 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:318 [inline] do_syscall_64+0x33e/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbf0219ce59 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:00007ffc8665bb18 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007ffc8665bc00 RCX: 00007fbf0219ce59 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 0000000000014c64 R08: 0000000000000001 R09: 0000000000000000 R10: 00007fbf01fff030 R11: 0000000000000246 R12: 00007ffc8665bc40 R13: 00007fbf02415fac R14: 00000000000153ff R15: 00007fbf02415fa0 ---------------- Code disassembly (best guess): 0: e9 c8 05 00 00 jmp 0x5cd 5: e8 10 57 c0 fd call 0xfdc0571a a: 84 c0 test %al,%al c: 0f 84 f2 00 00 00 je 0x104 12: e8 53 4e db fd call 0xfddb4e6a 17: e9 b1 05 00 00 jmp 0x5cd 1c: e8 49 4e db fd call 0xfddb4e6a 21: 48 8d 3d d2 b1 4f 0c lea 0xc4fb1d2(%rip),%rdi # 0xc4fb1fa 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 31 4e db fd call 0xfddb4e6a 39: eb 05 jmp 0x40 3b: e8 2a 4e db fd call 0xfddb4e6a