WARNING: CPU: 1 PID: 6052 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 1 PID: 6052 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 6052 Comm: syz.0.323 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] RIP: 0010:btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Code: 00 00 e8 85 c0 19 fe 4c 89 f3 0f 1f 44 00 00 e8 78 c0 19 fe eb 16 e8 71 c0 19 fe 48 c7 c7 e0 0a 4d 8a 44 89 ee e8 42 9c 40 06 <0f> 0b 4c 89 ff 48 c7 c6 e0 18 4d 8a ba b5 0d 00 00 eb 74 e8 4a c0 RSP: 0018:ffffc90002eaed20 EFLAGS: 00010246 RAX: 737bbc30aa226f00 RBX: ffff888022ff7000 RCX: 0000000000080000 RDX: ffffc9000f8e0000 RSI: 000000000001fc03 RDI: 000000000001fc04 RBP: 000000000000000d R08: dffffc0000000000 R09: ffffed1017224f2c R10: ffffed1017224f2c R11: 1ffff11017224f2b R12: dffffc0000000000 R13: ffffffffffffffe4 R14: ffff888022ff7000 R15: ffff88805cd82370 FS: 00007f0d292e66c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3b3da2 CR3: 000000005f89b000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4054 [inline] find_free_extent+0x2ba5/0x3560 fs/btrfs/extent-tree.c:4417 btrfs_reserve_extent+0x20a/0x530 fs/btrfs/extent-tree.c:4498 btrfs_alloc_tree_block+0x1e8/0x1300 fs/btrfs/extent-tree.c:4916 btrfs_force_cow_block+0x449/0x17c0 fs/btrfs/ctree.c:425 btrfs_cow_block+0x3c8/0x7c0 fs/btrfs/ctree.c:598 btrfs_search_slot+0xa4a/0x20a0 fs/btrfs/ctree.c:-1 btrfs_insert_empty_items+0x321/0x3d0 fs/btrfs/ctree.c:4012 btrfs_new_inode+0x888/0x1740 fs/btrfs/inode.c:6670 btrfs_create+0x292/0x5b0 fs/btrfs/inode.c:6923 lookup_open fs/namei.c:3470 [inline] open_last_lookups fs/namei.c:3540 [inline] path_openat+0x11e1/0x2f30 fs/namei.c:3747 do_filp_open+0x1b3/0x3e0 fs/namei.c:3777 do_sys_openat2+0x142/0x4a0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_open fs/open.c:1277 [inline] __se_sys_open fs/open.c:1273 [inline] __x64_sys_open+0x11b/0x140 fs/open.c:1273 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f0d2b0c1749 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0d292e6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f0d2b318180 RCX: 00007f0d2b0c1749 RDX: 0000000000000000 RSI: 0000000000143142 RDI: 0000200000000280 RBP: 00007f0d2b145f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0d2b318218 R14: 00007f0d2b318180 R15: 00007fffe33bc2f8