BTRFS critical (device loop1): panic in insert_ordered_extent:264: overlapping ordered extents, existing oe file_offset 4096 num_bytes 1044480 flags 0x1089, new oe file_offset 4096 num_bytes 1044480 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 NOPTI CPU: 0 UID: 0 PID: 21356 Comm: syz.1.2982 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026 RIP: 0010:insert_ordered_extent fs/btrfs/ordered-data.c:261 [inline] RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0 fs/btrfs/ordered-data.c:336 Code: 21 8e ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 20 d2 38 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 02 83 13 fd 48 83 c4 28 90 <0f> 0b e8 56 fd af fd 48 c7 c7 80 c9 38 8c 48 c7 c6 e0 c9 38 8c 48 RSP: 0018:ffffc90005d467b0 EFLAGS: 00010292 RAX: 6cff3c02b2318f00 RBX: 00000000000ff000 RCX: 1ffff92000ba8cd4 RDX: 0000000000000001 RSI: ffffffff8e4b425c RDI: ffff88802f0f0000 RBP: ffff88804f742880 R08: ffffc90005d46227 R09: 1ffff92000ba8c44 R10: dffffc0000000000 R11: fffff52000ba8c45 R12: 00000000000ff000 R13: 0000000000001000 R14: 0000000000001089 R15: 0000000000001000 FS: 00007f9df6ce76c0(0000) GS:ffff888124f4b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000ff000 CR3: 00000000a79fc000 CR4: 0000000000350ef0 Call Trace: cow_one_range fs/btrfs/inode.c:1241 [inline] cow_file_range+0x744/0x12a0 fs/btrfs/inode.c:1403 fallback_to_cow+0x5ea/0xa00 fs/btrfs/inode.c:1751 run_delalloc_nocow+0x110c/0x17a0 fs/btrfs/inode.c:2181 btrfs_run_delalloc_range+0x8ba/0x1fd0 fs/btrfs/inode.c:2419 writepage_delalloc+0x104d/0x1ba0 fs/btrfs/extent_io.c:1558 extent_writepage fs/btrfs/extent_io.c:1930 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2593 [inline] btrfs_writepages+0x1667/0x28b0 fs/btrfs/extent_io.c:2725 do_writepages+0x338/0x560 mm/page-writeback.c:2571 filemap_writeback mm/filemap.c:387 [inline] filemap_fdatawrite_range+0x1ef/0x2f0 mm/filemap.c:412 btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3884 btrfs_direct_write+0x69d/0xc20 fs/btrfs/direct-io.c:1038 btrfs_do_write_iter+0x325/0x790 fs/btrfs/file.c:1449 aio_write+0x5cd/0x870 fs/aio.c:1687 __io_submit_one fs/aio.c:-1 [inline] io_submit_one+0x798/0x13d0 fs/aio.c:2106 __do_sys_io_submit fs/aio.c:2165 [inline] __se_sys_io_submit+0x195/0x340 fs/aio.c:2135 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9df5d9e0d9 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:00007f9df6ce7028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d1 RAX: ffffffffffffffda RBX: 00007f9df6025fa0 RCX: 00007f9df5d9e0d9 RDX: 0000200000000540 RSI: 000000000000003b RDI: 00007f9df6cbe000 RBP: 00007f9df5e35024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9df6026038 R14: 00007f9df6025fa0 R15: 00007ffe76c6b2f8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:insert_ordered_extent fs/btrfs/ordered-data.c:261 [inline] RIP: 0010:btrfs_alloc_ordered_extent+0x943/0xad0 fs/btrfs/ordered-data.c:336 Code: 21 8e ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 20 d2 38 8c 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 02 83 13 fd 48 83 c4 28 90 <0f> 0b e8 56 fd af fd 48 c7 c7 80 c9 38 8c 48 c7 c6 e0 c9 38 8c 48 RSP: 0018:ffffc90005d467b0 EFLAGS: 00010292 RAX: 6cff3c02b2318f00 RBX: 00000000000ff000 RCX: 1ffff92000ba8cd4 RDX: 0000000000000001 RSI: ffffffff8e4b425c RDI: ffff88802f0f0000 RBP: ffff88804f742880 R08: ffffc90005d46227 R09: 1ffff92000ba8c44 R10: dffffc0000000000 R11: fffff52000ba8c45 R12: 00000000000ff000 R13: 0000000000001000 R14: 0000000000001089 R15: 0000000000001000 FS: 00007f9df6ce76c0(0000) GS:ffff888124f4b000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00002000000ff000 CR3: 00000000a79fc000 CR4: 0000000000350ef0