------------[ cut here ]------------ WARNING: CPU: 1 PID: 5485 at fs/btrfs/block-group.c:3505 do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] WARNING: CPU: 1 PID: 5485 at fs/btrfs/block-group.c:3505 btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3728 Modules linked in: CPU: 1 PID: 5485 Comm: syz.0.246 Not tainted 5.15.178-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:do_chunk_alloc fs/btrfs/block-group.c:3505 [inline] RIP: 0010:btrfs_chunk_alloc+0xc0e/0x1020 fs/btrfs/block-group.c:3728 Code: 00 00 00 fc ff df 4c 8b 24 24 0f 1f 44 00 00 e8 88 d3 f1 fd eb 16 e8 81 d3 f1 fd 48 c7 c7 20 19 ed 8a 44 89 ee e8 12 6d bd fd <0f> 0b 48 8b 7c 24 20 48 c7 c6 20 27 ed 8a ba b1 0d 00 00 e9 8e 00 RSP: 0018:ffffc9000318ea98 EFLAGS: 00010246 RAX: 55f4fb3aa655b600 RBX: dffffc0000000000 RCX: 0000000000080000 RDX: ffffc9000caf9000 RSI: 000000000001d8da RDI: 000000000001d8db RBP: ffff888051200001 R08: ffffffff8166aa8c R09: ffffed10171e4f24 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807e27e084 R13: ffffffffffffffe4 R14: ffff8880603c030b R15: 1ffff1100fc4fc10 FS: 00007fc81df466c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c41029f CR3: 000000002a71b000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: find_free_extent_update_loop fs/btrfs/extent-tree.c:4039 [inline] find_free_extent+0x3eb7/0x4ff0 fs/btrfs/extent-tree.c:4402 btrfs_reserve_extent+0x20a/0x540 fs/btrfs/extent-tree.c:4483 btrfs_alloc_tree_block+0x209/0x1780 fs/btrfs/extent-tree.c:4901 btrfs_force_cow_block+0x464/0x1af0 fs/btrfs/ctree.c:425 btrfs_cow_block+0x369/0x810 fs/btrfs/ctree.c:598 btrfs_search_slot+0xbc1/0x28f0 fs/btrfs/ctree.c:1858 btrfs_insert_empty_items+0x31e/0x3c0 fs/btrfs/ctree.c:4012 btrfs_new_inode+0xb14/0x1c00 fs/btrfs/inode.c:6655 btrfs_create+0x32d/0x680 fs/btrfs/inode.c:6908 lookup_open fs/namei.c:3462 [inline] open_last_lookups fs/namei.c:3532 [inline] path_openat+0x130a/0x2f20 fs/namei.c:3739 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fc8200fe169 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:00007fc81df46038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc820317080 RCX: 00007fc8200fe169 RDX: 000000000000275a RSI: 0000400000000280 RDI: ffffffffffffff9c RBP: 00007fc82017f2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc820317080 R15: 00007ffd675a4ed8