el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:584! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 UID: 0 PID: 6411 Comm: syz-executor134 Not tainted 6.11.0-rc5-syzkaller-gdf54f4a16f82 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : clear_state_bit+0x300/0x304 fs/btrfs/extent-io-tree.c:584 lr : clear_state_bit+0x300/0x304 fs/btrfs/extent-io-tree.c:584 sp : ffff8000a09a6240 x29: ffff8000a09a6240 x28: ffff0000dce891f8 x27: 000000000000ffff x26: 000000000000a000 x25: dfff800000000000 x24: 0000000000000800 x23: 000000000000ffff x22: 00000000fffffff4 x21: 0000000000000000 x20: ffff0000dce891f8 x19: ffff0000d4d1e300 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008301a844 x15: 0000000000000001 x14: 1ffff00011efd3b6 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700011efd3b7 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c6213c80 x7 : 0000000000000001 x6 : 0000000000000001 x5 : 00000000ffffffff x4 : 0000000000000820 x3 : 0000000000000820 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: clear_state_bit+0x300/0x304 fs/btrfs/extent-io-tree.c:584 __clear_extent_bit+0x59c/0xbc0 fs/btrfs/extent-io-tree.c:755 clear_record_extent_bits+0x60/0xa4 fs/btrfs/extent-io-tree.c:1834 __btrfs_qgroup_release_data+0x48c/0x9d4 fs/btrfs/qgroup.c:4358 btrfs_qgroup_release_data+0x44/0x58 fs/btrfs/qgroup.c:4414 alloc_ordered_extent+0x114/0x500 fs/btrfs/ordered-data.c:168 btrfs_alloc_ordered_extent+0x194/0x96c cow_file_range+0x6c4/0xedc fs/btrfs/inode.c:1459 btrfs_run_delalloc_range+0x278/0xde8 fs/btrfs/inode.c:2312 writepage_delalloc+0x460/0x858 fs/btrfs/extent_io.c:1278 __extent_writepage fs/btrfs/extent_io.c:1572 [inline] extent_write_cache_pages fs/btrfs/extent_io.c:2251 [inline] btrfs_writepages+0x10f8/0x2000 fs/btrfs/extent_io.c:2373 do_writepages+0x304/0x7cc mm/page-writeback.c:2683 filemap_fdatawrite_wbc+0x124/0x174 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_fdatawrite_range+0x10c/0x174 mm/filemap.c:448 btrfs_fdatawrite_range+0x5c/0xe4 fs/btrfs/file.c:3794 btrfs_wait_ordered_range+0x64/0x220 fs/btrfs/ordered-data.c:898 btrfs_punch_hole fs/btrfs/file.c:2635 [inline] btrfs_fallocate+0x3c8/0x1a28 fs/btrfs/file.c:3085 vfs_fallocate+0x48c/0x5d8 fs/open.c:334 ioctl_preallocate+0x288/0x334 fs/ioctl.c:291 do_vfs_ioctl+0x1ef0/0x2a90 fs/ioctl.c:886 __do_sys_ioctl fs/ioctl.c:905 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0xe4/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: aa1803e0 979851fa 17ffff58 9783d9d2 (d4210000) ---[ end trace 0000000000000000 ]---