el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 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+0x190/0x194 arch/arm64/kernel/entry.S:591 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-io-tree.c:515! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 11729 Comm: syz-executor.0 Not tainted 6.3.0-rc5-syzkaller-g9a03cbd79d3a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : clear_state_bit+0x2c8/0x2cc fs/btrfs/extent-io-tree.c:515 lr : clear_state_bit+0x2c8/0x2cc fs/btrfs/extent-io-tree.c:515 sp : ffff8000216771a0 x29: ffff8000216771a0 x28: 0000000000000fff x27: ffff0000d62a6a88 x26: 0000000000000000 x25: dfff800000000000 x24: 0000000000000800 x23: 0000000000000fff x22: 00000000fffffff4 x21: 0000000000000000 x20: ffff0000e0ff00c0 x19: ffff0000d62a6a80 x18: ffff800021676640 x17: 0000000000000000 x16: ffff800012328c14 x15: 0000000000000000 x14: 0000000000000002 x13: 0000000000000001 x12: 0000000000040000 x11: 000000000001660a x10: ffff800020d70000 x9 : ffff80000a33d4b8 x8 : 000000000001660b x7 : 0000000000000001 x6 : 0000000000000001 x5 : 00000000ffffffff x4 : 0000000000000820 x3 : 0000000000000820 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: clear_state_bit+0x2c8/0x2cc fs/btrfs/extent-io-tree.c:515 __clear_extent_bit+0x56c/0xaf0 fs/btrfs/extent-io-tree.c:674 clear_record_extent_bits+0x64/0xa0 fs/btrfs/extent-io-tree.c:1703 __btrfs_qgroup_release_data+0x3c0/0x9b4 fs/btrfs/qgroup.c:3910 btrfs_qgroup_free_data+0x40/0x54 fs/btrfs/qgroup.c:3944 btrfs_invalidate_folio+0x56c/0x9f0 fs/btrfs/inode.c:8067 folio_invalidate mm/truncate.c:159 [inline] truncate_cleanup_folio+0x1f4/0x3bc mm/truncate.c:179 truncate_inode_pages_range+0x230/0xd54 mm/truncate.c:368 truncate_inode_pages mm/truncate.c:448 [inline] truncate_pagecache mm/truncate.c:743 [inline] truncate_setsize+0xd8/0x104 mm/truncate.c:768 btrfs_setsize fs/btrfs/inode.c:5107 [inline] btrfs_setattr+0x550/0xf34 fs/btrfs/inode.c:5146 notify_change+0xa84/0xd20 fs/attr.c:482 do_truncate+0x1c0/0x28c fs/open.c:66 do_sys_ftruncate+0x284/0x318 fs/open.c:194 __do_sys_ftruncate fs/open.c:205 [inline] __se_sys_ftruncate fs/open.c:203 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:203 __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:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 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+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: aa1603e0 9798b60f 17ffffb4 978707c6 (d4210000) ---[ end trace 0000000000000000 ]---