el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 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: 4311 Comm: syz-executor243 Not tainted 6.1.115-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 : ffff800021187170 x29: ffff800021187170 x28: ffff0000e13a0a60 x27: 0000000000001000 x26: dfff800000000000 x25: 000000000000ffff x24: 00000000fffffff4 x23: 0000000000001000 x22: ffff0000d77189d0 x21: ffff0000d77189d8 x20: ffff0000e13a0a60 x19: ffff0000d7718e40 x18: ffff8000211864e0 x17: 0000000000000000 x16: ffff80001229a1fc x15: 0000000000000000 x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a34f7a4 x8 : ffff0000d9c95340 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] aio_write+0x588/0x824 fs/aio.c:1615 io_submit_one+0x824/0x15b8 fs/aio.c:2034 __do_sys_io_submit fs/aio.c:2093 [inline] __se_sys_io_submit fs/aio.c:2063 [inline] __arm64_sys_io_submit+0x248/0x3c8 fs/aio.c:2063 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x64/0x218 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 9798aae7 17ffffa0 9786a22c (d4210000) ---[ end trace 0000000000000000 ]---