el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:939! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6352 Comm: syz.1.452 Not tainted 5.15.162-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939 lr : set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939 sp : ffff80001dae7210 x29: ffff80001dae7210 x28: dfff800000000000 x27: 0000000000001000 x26: dfff800000000000 x25: 0000000000000001 x24: 0000000000000104 x23: 0000000000007000 x22: 0000000000007fff x21: 0000000000001000 x20: 00000000fffffff4 x19: ffff0000d1a79960 x18: 0000000000000002 x17: 0000000000000000 x16: ffff8000119a6548 x15: 00000000ffffffff x14: ffff0000d2a09b40 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000001 x10: 0000000000000000 x9 : ffff0000d2a09b40 x8 : ffff80000a0970b0 x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff80001dae6618 x4 : 0000000000000100 x3 : 0000000000000a20 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939 insert_state+0xac/0x2e8 fs/btrfs/extent_io.c:572 set_extent_bit+0xb70/0x1464 fs/btrfs/extent_io.c:1139 set_record_extent_bits+0x70/0x94 fs/btrfs/extent_io.c:1422 qgroup_reserve_data+0x214/0x878 fs/btrfs/qgroup.c:3727 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3770 btrfs_check_data_free_space+0x208/0x2f4 fs/btrfs/delalloc-space.c:145 btrfs_buffered_write+0x46c/0xe6c fs/btrfs/file.c:1730 btrfs_file_write_iter+0x198/0xad8 fs/btrfs/file.c:2088 do_iter_readv_writev+0x420/0x5f8 do_iter_write+0x1b8/0x664 fs/read_write.c:855 vfs_writev fs/read_write.c:928 [inline] do_pwritev+0x1ec/0x334 fs/read_write.c:1025 __do_sys_pwritev2 fs/read_write.c:1084 [inline] __se_sys_pwritev2 fs/read_write.c:1075 [inline] __arm64_sys_pwritev2+0xd4/0x108 fs/read_write.c:1075 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 97a0e04a f9400fa8 17ffff54 9790b542 (d4210000) ---[ end trace b93e162f806b274e ]---