el0_svc_common+0xbc/0x180 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x110 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x14c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 ------------[ 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: 9352 Comm: syz-executor.2 Not tainted 6.2.0-rc7-syzkaller-17907-g2d3827b3f393 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] pc : __set_extent_bit+0x1030/0x11f0 fs/btrfs/extent-io-tree.c:1042 lr : set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] lr : __set_extent_bit+0x1030/0x11f0 fs/btrfs/extent-io-tree.c:1042 sp : ffff8000143338a0 x29: ffff800014333920 x28: 0000000000000000 x27: ffff00011ac05348 x26: ffff00011b28b600 x25: 0000000000000fff x24: 0000000000000800 x23: ffff00011b28b700 x22: ffff00011ac05328 x21: 00000000fffffff4 x20: 0000000000000000 x19: 0000000000000fff x18: 000000000000a000 x17: 6e69676e45206574 x16: ffff0001196da448 x15: ffff80000dbd2118 x14: ffff0001196d9a00 x13: 00000000ffffffff x12: 0000000000040000 x11: 000000000001369a x10: ffff80001843e000 x9 : ffff8000091d43a8 x8 : 000000000001369b x7 : ffff80000bf650d4 x6 : 0000000000000000 x5 : 00000000ffffffff x4 : 0000000000000a20 x3 : 0000000000000080 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: set_state_bits fs/btrfs/extent-io-tree.c:379 [inline] __set_extent_bit+0x1030/0x11f0 fs/btrfs/extent-io-tree.c:1042 set_record_extent_bits+0x74/0xb0 fs/btrfs/extent-io-tree.c:1690 qgroup_reserve_data+0x134/0x5b0 fs/btrfs/qgroup.c:3777 btrfs_qgroup_reserve_data+0x40/0xd0 fs/btrfs/qgroup.c:3820 btrfs_check_data_free_space+0xbc/0x138 fs/btrfs/delalloc-space.c:154 btrfs_delalloc_reserve_space+0x44/0x120 fs/btrfs/delalloc-space.c:467 defrag_one_locked_target fs/btrfs/defrag.c:1037 [inline] defrag_one_range fs/btrfs/defrag.c:1109 [inline] defrag_one_cluster fs/btrfs/defrag.c:1187 [inline] btrfs_defrag_file+0x1020/0x1ec0 fs/btrfs/defrag.c:1312 btrfs_ioctl_defrag+0x258/0x2b0 fs/btrfs/ioctl.c:2604 btrfs_ioctl+0x8ac/0xa6c vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0xd0/0x148 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x64/0x178 arch/arm64/kernel/syscall.c:52 el0_svc_common+0xbc/0x180 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x110 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x14c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: 12800203 94b5dcb5 d4210000 97c3182f (d4210000) ---[ end trace 0000000000000000 ]---