BTRFS info (device loop9): turning on async discard BTRFS info (device loop9): enabling free space tree BTRFS info (device loop9): trying to use backup root at mount time BTRFS info (device loop9): max_inline set to 0 BTRFS critical (device loop9): panic in insert_ordered_extent:264: overlapping ordered extents, existing oe file_offset 16384 num_bytes 430080 flags 0x1089, new oe file_offset 16384 num_bytes 4096 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: 1 UID: 0 PID: 14525 Comm: syz.9.826 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/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: 61 8d ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 60 0c 97 8b 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 d2 82 37 fd 48 83 c4 28 90 <0f> 0b e8 a6 51 d2 fd 48 c7 c7 c0 03 97 8b 48 c7 c6 20 04 97 8b 48 RSP: 0000:ffffc9000e7fe890 EFLAGS: 00010296 RAX: 8b7ccb8af43a4d00 RBX: 0000000000069000 RCX: 1ffff92001cffcf0 RDX: 0000000000000000 RSI: ffffffff8ba7f180 RDI: ffff88801e750000 RBP: ffff88805f2ab880 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001cffc61 R12: 0000000000001000 R13: 0000000000004000 R14: 0000000000001089 R15: 0000000000004000 FS: 00007f2c985566c0(0000) GS:ffff888126244000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1210589b4c CR3: 0000000027062000 CR4: 00000000003526f0 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+0xbe4/0x1c20 fs/btrfs/inode.c:2419 writepag[ 384.171188][T14525] 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:388 [inline] filemap_fdatawrite_range+0x1f2/0x300 mm/filemap.c:413 btrfs_fdatawrite_range+0x54/0xf0 fs/btrfs/file.c:3884 btrfs_direct_write+0x6a0/0xc30 fs/btrfs/direct-io.c:1038 btrfs_do_write_iter+0x329/0x790 fs/btrfs/file.c:1449 do_iter_readv_writev+0x624/0x8d0 fs/read_write.c:-1 vfs_writev+0x34c/0x990 fs/read_write.c:1058 do_pwritev fs/read_write.c:1154 [inline] __do_sys_pwritev2 fs/read_write.c:1212 [inline] __se_sys_pwritev2+0x17a/0x2a0 fs/read_write.c:1203 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:0x7f2c9a2fce59 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:00007f2c98556028 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f2c9a575fa0 RCX: 00007f2c9a2fce59 RDX: 0000000000000020 RSI: 0000200000000240 RDI: 0000000000000004 RBP: 00007f2c9a392e6f R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000003000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f2c9a576038 R14: 00007f2c9a575fa0 R15: 00007fff9db87058 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: 61 8d ba 08 01 00 00 b9 ef ff ff ff 49 c7 c0 60 0c 97 8b 4d 89 f9 ff 75 00 41 54 41 55 41 56 53 e8 d2 82 37 fd 48 83 c4 28 90 <0f> 0b e8 a6 51 d2 fd 48 c7 c7 c0 03 97 8b 48 c7 c6 20 04 97 8b 48 RSP: 0000:ffffc9000e7fe890 EFLAGS: 00010296 RAX: 8b7ccb8af43a4d00 RBX: 0000000000069000 RCX: 1ffff92001cffcf0 RDX: 0000000000000000 RSI: ffffffff8ba7f180 RDI: ffff88801e750000 RBP: ffff88805f2ab880 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52001cffc61 R12: 0000000000001000 R13: 0000000000004000 R14: 0000000000001089 R15: 0000000000004000 FS: 00007f2c985566c0(0000) GS:ffff888126244000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f25d2a4f000 CR3: 0000000027062000 CR4: 00000000003526f0