el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:381! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6381 Comm: syz.4.314 Not tainted 6.1.119-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline] pc : insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439 lr : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline] lr : insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439 sp : ffff8000212673d0 x29: ffff8000212673d0 x28: ffff0000e1741da0 x27: 0000000000000000 x26: dfff800000000000 x25: 0000000000015fff x24: 00000000fffffff4 x23: 0000000000001000 x22: 0000000000000000 x21: ffff0000e1741da0 x20: ffff0000e1741da0 x19: ffff0000ee214240 x18: ffff800021266740 x17: 0000000000000000 x16: ffff800012325074 x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a3d78d0 x8 : ffff0000cdf1d340 x7 : 0000000000000001 x6 : 0000000000000001 x5 : 00000000ffffffff x4 : 0000000000000a20 x3 : 0000000000000a20 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: set_state_bits fs/btrfs/extent-io-tree.c:381 [inline] insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439 __set_extent_bit+0x10f4/0x1650 fs/btrfs/extent-io-tree.c:1000 set_record_extent_bits+0x68/0x98 fs/btrfs/extent-io-tree.c:1607 qgroup_reserve_data+0x214/0x90c fs/btrfs/qgroup.c:3795 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3838 btrfs_check_data_free_space+0x130/0x20c fs/btrfs/delalloc-space.c:152 btrfs_buffered_write+0x4ac/0xfec fs/btrfs/file.c:1242 btrfs_do_write_iter+0x3a0/0x1108 fs/btrfs/file.c:1686 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1707 call_write_iter include/linux/fs.h:2265 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x610/0x91c fs/read_write.c:584 ksys_write+0x15c/0x26c fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:646 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: aa1903e0 97967300 17ffffa0 97846bd0 (d4210000) ---[ end trace 0000000000000000 ]---