BTRFS critical (device loop7): panic in insert_ordered_extent:264: overlapping ordered extents, existing oe file_offset 94208 num_bytes 368640 flags 0x1089, new oe file_offset 94208 num_bytes 36864 flags 0x80 (errno=-17 Object already exists)
------------[ cut here ]------------
kernel BUG at fs/btrfs/ordered-data.c:264!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 1227 Comm: kworker/u9:10 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: writeback wb_workfn (flush-btrfs-62)
RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0
Code: fd 8d ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 20 67 18 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 b2 44 2d fd 48 83 c4 28 90 <0f> 0b e8 f6 f2 c8 fd 48 c7 c7 80 5e 18 8c 48 c7 c6 e0 5e 18 8c 48
RSP: 0018:ffffc90007e8e5d0 EFLAGS: 00010292
RAX: bb249cc150641300 RBX: 000000000005a000 RCX: 1ffff92000fd1c98
RDX: 0000000000000003 RSI: ffffffff8e267552 RDI: ffff88810c22d940
RBP: ffff88810e2b0bc0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1cfca1c R12: 0000000000009000
R13: 0000000000017000 R14: 0000000000001089 R15: 0000000000017000
FS:  0000000000000000(0000) GS:ffff88818dc1c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000069000 CR3: 000000016f136000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 cow_file_range+0x744/0x12a0
 fallback_to_cow+0x5ea/0xa00
 run_delalloc_nocow+0x110c/0x17a0
 btrfs_run_delalloc_range+0xbe4/0x1c20
 writepage_delalloc+0x104d/0x1ba0
 btrfs_writepages+0x1667/0x28b0
 do_writepages+0x338/0x560
 __writeback_single_inode+0x12e/0xf90
 writeback_sb_inodes+0x9de/0x1b00
 wb_writeback+0x41c/0xad0
 wb_workfn+0x431/0x10f0
 process_scheduled_works+0xa8e/0x14e0
 worker_thread+0xa47/0xfb0
 kthread+0x388/0x470
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0
Code: fd 8d ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 20 67 18 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 b2 44 2d fd 48 83 c4 28 90 <0f> 0b e8 f6 f2 c8 fd 48 c7 c7 80 5e 18 8c 48 c7 c6 e0 5e 18 8c 48
RSP: 0018:ffffc90007e8e5d0 EFLAGS: 00010292
RAX: bb249cc150641300 RBX: 000000000005a000 RCX: 1ffff92000fd1c98
RDX: 0000000000000003 RSI: ffffffff8e267552 RDI: ffff88810c22d940
RBP: ffff88810e2b0bc0 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1cfca1c R12: 0000000000009000
R13: 0000000000017000 R14: 0000000000001089 R15: 0000000000017000
FS:  0000000000000000(0000) GS:ffff88818dc1c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000069000 CR3: 000000016f136000 CR4: 00000000000006f0
