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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent_io.c:658! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4883 Comm: syz.0.15 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : clear_state_bit+0x4f0/0x4f4 fs/btrfs/extent_io.c:658 lr : clear_state_bit+0x4f0/0x4f4 fs/btrfs/extent_io.c:658 sp : ffff8000201771d0 x29: ffff8000201771e0 x28: 0000000000001000 x27: dfff800000000000 x26: ffff0000e0c81460 x25: 0000000000000107 x24: 0000000000000000 x23: 0000000000000fff x22: 00000000fffffff4 x21: 0000000000000000 x20: 0000000000001000 x19: ffff0000db9c4af0 x18: 0000000000000002 x17: 0000000000000000 x16: ffff800011ac23e0 x15: 00000000ffffffff x14: ffff0000d8863680 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000001 x10: 0000000000000000 x9 : ffff0000d8863680 x8 : ffff80000a0a3624 x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff8000201765d8 x4 : 0000000000000100 x3 : 0000000000000a20 x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: clear_state_bit+0x4f0/0x4f4 fs/btrfs/extent_io.c:658 __clear_extent_bit+0x630/0xcc0 fs/btrfs/extent_io.c:835 clear_record_extent_bits+0x70/0x98 fs/btrfs/extent_io.c:1450 __btrfs_qgroup_release_data+0x3c0/0x9b4 fs/btrfs/qgroup.c:3851 btrfs_qgroup_free_data+0x40/0x54 fs/btrfs/qgroup.c:3885 btrfs_invalidatepage+0x4f8/0x908 fs/btrfs/inode.c:8864 do_invalidatepage mm/truncate.c:157 [inline] truncate_cleanup_page+0x15c/0x414 mm/truncate.c:176 truncate_inode_pages_range+0x254/0xbe0 mm/truncate.c:325 truncate_inode_pages mm/truncate.c:425 [inline] truncate_pagecache mm/truncate.c:735 [inline] truncate_setsize+0xd8/0x104 mm/truncate.c:760 btrfs_setsize fs/btrfs/inode.c:5447 [inline] btrfs_setattr+0x6b8/0xe2c fs/btrfs/inode.c:5486 notify_change+0xa34/0xcf8 fs/attr.c:505 do_truncate+0x1c0/0x28c fs/open.c:65 do_sys_ftruncate+0x288/0x31c fs/open.c:193 __do_sys_ftruncate fs/open.c:204 [inline] __se_sys_ftruncate fs/open.c:202 [inline] __arm64_sys_ftruncate+0x60/0x74 fs/open.c:202 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: 97a0caeb f94007e8 17ffff30 97908a26 (d4210000) ---[ end trace 3652c8b1e5ecc1d2 ]---