------------[ cut here ]------------ WARNING: CPU: 1 PID: 4571 at fs/btrfs/block-group.c:3509 do_chunk_alloc fs/btrfs/block-group.c:3509 [inline] WARNING: CPU: 1 PID: 4571 at fs/btrfs/block-group.c:3509 btrfs_chunk_alloc+0xb2e/0xf40 fs/btrfs/block-group.c:3732 Modules linked in: CPU: 0 PID: 4571 Comm: syz.4.55 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026 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 b5 aa 13 fe 4c 89 f3 0f 1f 44 00 00 e8 a8 aa 13 fe eb 16 e8 a1 aa 13 fe 48 c7 c7 c0 18 6d 8a 44 89 ee e8 b2 b1 4b 06 <0f> 0b 4c 89 ff 48 c7 c6 c0 26 6d 8a ba b5 0d 00 00 eb 74 e8 7a aa RSP: 0000:ffffc90003f3ec00 EFLAGS: 00010246 RAX: 285f8760cdd0ce00 RBX: ffff888060d04800 RCX: 0000000000080000 RDX: ffffc9000e209000 RSI: 000000000003fbe8 RDI: 000000000003fbe9 RBP: 000000000000000d R08: ffff8880b912795b R09: 1ffff11017224f2b R10: dffffc0000000000 R11: ffffed1017224f2c R12: dffffc0000000000 R13: ffffffffffffffe4 R14: ffff888060d04800 R15: ffff888072d000b0 FS: 00007f608cbed6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564472c7a1e0 CR3: 000000001b19e000 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+0x2c26/0x3610 fs/btrfs/extent-tree.c:4417 btrfs_reserve_extent+0x20a/0x530 fs/btrfs/extent-tree.c:4498 btrfs_new_extent_direct fs/btrfs/inode.c:7559 [inline] btrfs_get_blocks_direct_write+0x510/0xb70 fs/btrfs/inode.c:7974 btrfs_dio_iomap_begin+0x6b2/0xad0 fs/btrfs/inode.c:8135 iomap_iter+0x620/0xdb0 fs/iomap/iter.c:74 __iomap_dio_rw+0xade/0x1b00 fs/iomap/direct-io.c:585 btrfs_direct_write fs/btrfs/file.c:1986 [inline] btrfs_file_write_iter+0x768/0xe00 fs/btrfs/file.c:2092 do_iter_readv_writev+0x47e/0x5f0 fs/read_write.c:-1 do_iter_write+0x205/0x7b0 fs/read_write.c:855 iter_file_splice_write+0x699/0xcc0 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0xe1/0x130 fs/splice.c:956 splice_direct_to_actor+0x4ea/0xc10 fs/splice.c:902 do_splice_direct+0x1d4/0x2f0 fs/splice.c:1008 do_sendfile+0x5fc/0xeb0 fs/read_write.c:1249 __do_sys_sendfile64 fs/read_write.c:1317 [inline] __se_sys_sendfile64+0x141/0x1a0 fs/read_write.c:1303 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:0x7f608e993629 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:00007f608cbed028 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f608ec0cfa0 RCX: 00007f608e993629 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000008 RBP: 00007f608ea29b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020fffe82 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f608ec0d038 R14: 00007f608ec0cfa0 R15: 00007ffd4ce5ab08