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: 8108 Comm: syz.0.287 Not tainted 6.11.0-rc3-syzkaller-g5c43d43bad35 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/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 : ffff80009fed6f60 x29: ffff80009fed6f60 x28: ffff0000ee9e3d40 x27: 000000000003ffff x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000800 x23: 000000000003ffff x22: 00000000fffffff4 x21: 0000000000000000 x20: ffff0000ee9e3d40 x19: ffff0000cb97e9c0 x18: 0000000000000008 x17: 0000000000000000 x16: ffff800083014574 x15: 0000000000000001 x14: 1ffff00011efd3ae x13: 0000000000000000 x12: 0000000000000000 x11: ffff700011efd3af x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d5bb5ac0 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 qgroup_free_reserved_data fs/btrfs/qgroup.c:4321 [inline] __btrfs_qgroup_release_data+0x2f8/0x9d4 fs/btrfs/qgroup.c:4356 btrfs_qgroup_free_data+0x4c/0x64 fs/btrfs/qgroup.c:4394 btrfs_free_reserved_data_space+0xcc/0xf8 fs/btrfs/delalloc-space.c:200 btrfs_dio_iomap_begin+0x758/0xe48 fs/btrfs/direct-io.c:579 iomap_iter+0x608/0x1060 fs/iomap/iter.c:91 __iomap_dio_rw+0xb24/0x216c fs/iomap/direct-io.c:659 btrfs_dio_write fs/btrfs/direct-io.c:756 [inline] btrfs_direct_write+0x560/0x960 fs/btrfs/direct-io.c:861 btrfs_do_write_iter+0x220/0x5d0 fs/btrfs/file.c:1505 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1525 new_sync_write fs/read_write.c:497 [inline] vfs_write+0x940/0xc80 fs/read_write.c:590 ksys_pwrite64 fs/read_write.c:705 [inline] __do_sys_pwrite64 fs/read_write.c:715 [inline] __se_sys_pwrite64 fs/read_write.c:712 [inline] __arm64_sys_pwrite64+0x188/0x220 fs/read_write.c:712 __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 97985fe5 17ffff58 9783eb76 (d4210000) ---[ end trace 0000000000000000 ]---