------------[ cut here ]------------ btrfs_abort_should_print_stack(__error) WARNING: fs/btrfs/inode.c:3302 at btrfs_finish_one_ordered+0x1c6b/0x2120 fs/btrfs/inode.c:3302, CPU#2: kworker/u33:14/1229 Modules linked in: CPU: 2 UID: 0 PID: 1229 Comm: kworker/u33:14 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 Workqueue: btrfs-endio-write btrfs_work_helper RIP: 0010:btrfs_finish_one_ordered+0x1c6b/0x2120 fs/btrfs/inode.c:3302 Code: fd 48 c7 c6 80 32 6b 8c e8 42 f9 97 fd 8d 45 1e 83 f8 19 77 0f ba 01 00 04 02 48 0f a3 c2 0f 82 54 c2 b9 fc e8 56 fe 97 fd 90 <0f> 0b 90 e9 46 c2 b9 fc e8 48 fe 97 fd 49 8d 7f 60 48 b8 00 00 00 RSP: 0018:ffffc900061afa18 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880387b1fa0 RCX: 0000000000000000 RDX: ffff88802c17cb00 RSI: ffffffff84767a4a RDI: 0000000000000005 RBP: 00000000ffffffe4 R08: fffffffffffffffb R09: ffffffffffffffe4 R10: ffff88802c4cdc2f R11: 000000000000777b R12: ffff88802c4cdc00 R13: 0000000000000001 R14: ffff8880387b1fe0 R15: ffff888042831608 FS: 0000000000000000(0000) GS:ffff8880d4675000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f47d75a4f90 CR3: 0000000014009000 CR4: 0000000000352ef0 Call Trace: btrfs_work_helper+0x214/0xc70 fs/btrfs/async-thread.c:312 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495 process_scheduled_works kernel/workqueue.c:3578 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245