el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:379!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 13867 Comm: syz-executor.5 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline]
pc : insert_state+0x358/0x35c fs/btrfs/extent-io-tree.c:401
lr : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline]
lr : insert_state+0x358/0x35c fs/btrfs/extent-io-tree.c:401
sp : ffff80009c0a66f0
x29: ffff80009c0a66f0 x28: 00000000ffff2eff x27: 1fffe0001a177049
x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000fff
x23: 0000000000000800 x22: 00000000fffffff4 x21: 0000000000000fff
x20: ffff000131a7d490 x19: ffff0000d0bb8240 x18: ffff80009c0a5b60
x17: 0000000000000000 x16: ffff80008a71b23c x15: 0000000000000001
x14: 1ffff00011cbf62e x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000040000 x10: 000000000001a1b7 x9 : ffff800097d1a000
x8 : 000000000001a1b8 x7 : 0000000000000001 x6 : 0000000000000001
x5 : 00000000ffffffff x4 : 0000000000000820 x3 : 0000000000000820
x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000
Call trace:
 set_state_bits fs/btrfs/extent-io-tree.c:379 [inline]
 insert_state+0x358/0x35c fs/btrfs/extent-io-tree.c:401
 __set_extent_bit+0xedc/0x195c fs/btrfs/extent-io-tree.c:1151
 set_record_extent_bits+0x68/0xa8 fs/btrfs/extent-io-tree.c:1705
 qgroup_reserve_data+0x214/0x870 fs/btrfs/qgroup.c:3803
 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3846
 btrfs_check_data_free_space+0x130/0x20c fs/btrfs/delalloc-space.c:154
 btrfs_delalloc_reserve_space+0x4c/0x1ec fs/btrfs/delalloc-space.c:467
 btrfs_page_mkwrite+0x368/0xcbc fs/btrfs/inode.c:8117
 do_page_mkwrite+0x140/0x2dc mm/memory.c:2931
 wp_page_shared mm/memory.c:3291 [inline]
 do_wp_page+0xb6c/0x2f4c mm/memory.c:3376
 handle_pte_fault mm/memory.c:4994 [inline]
 __handle_mm_fault mm/memory.c:5119 [inline]
 handle_mm_fault+0x11b0/0x49fc mm/memory.c:5284
 __do_page_fault arch/arm64/mm/fault.c:513 [inline]
 do_page_fault+0x4e8/0xa54 arch/arm64/mm/fault.c:626
 do_mem_abort+0x74/0x200 arch/arm64/mm/fault.c:846
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:398
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:458
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:590
 __arch_copy_to_user+0x190/0x234 arch/arm64/lib/copy_template.S:158
 _copy_to_iter+0x448/0xe1c lib/iov_iter.c:316
 copy_page_to_iter+0x200/0x2f8 lib/iov_iter.c:481
 copy_folio_to_iter include/linux/uio.h:185 [inline]
 filemap_read+0x698/0xbf8 mm/filemap.c:2703
 btrfs_file_read_iter+0x240/0x5ac fs/btrfs/file.c:3818
 do_iter_read+0x670/0xab0 fs/read_write.c:795
 vfs_readv fs/read_write.c:915 [inline]
 do_preadv+0x1e4/0x324 fs/read_write.c:1007
 __do_sys_preadv fs/read_write.c:1057 [inline]
 __se_sys_preadv fs/read_write.c:1052 [inline]
 __arm64_sys_preadv+0xa0/0xb8 fs/read_write.c:1052
 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51
 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136
 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155
 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678
 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696
 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595
Code: aa1903e0 9797cc76 17ffff56 97850e93 (d4210000) 
---[ end trace 0000000000000000 ]---