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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 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: 0 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 11519 Comm: syz-executor.0 Not tainted 5.15.118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 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 : ffff800026ac7400 x29: ffff800026ac7400 x28: 000000000000f000 x27: 0000000000001000 x26: dfff800000000000 x25: 0000000000000001 x24: 0000000000000107 x23: 000000000000f000 x22: 000000000000ffff x21: 0000000000001000 x20: 00000000fffffff4 x19: ffff000124fa5e10 x18: 0000000000000002 x17: ff80800008335ea8 x16: ffff8000119547c4 x15: ffff800008335ea8 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000000ed2c x10: ffff80001fcea000 x9 : ffff80000a0757b4 x8 : 000000000000ed2d x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff800026ac6818 x4 : 0000000000000100 x3 : 0000000000000a20 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939 set_extent_bit+0x6e4/0x1464 fs/btrfs/extent_io.c:1105 set_record_extent_bits+0x70/0x94 fs/btrfs/extent_io.c:1422 qgroup_reserve_data+0x214/0x878 fs/btrfs/qgroup.c:3699 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3742 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 call_write_iter include/linux/fs.h:2103 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x87c/0xb3c fs/read_write.c:594 ksys_write+0x15c/0x26c fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __arm64_sys_write+0x7c/0x90 fs/read_write.c:656 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 97a15453 f9400fa8 17ffff54 9791366f (d4210000) ---[ end trace 35df3d4ba08641c8 ]---