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: 4036 Comm: syz-executor379 Not tainted 5.15.163-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 : ffff80001c9471d0 x29: ffff80001c9471e0 x28: 0000000000001000 x27: dfff800000000000 x26: ffff0000dfa6bba0 x25: 0000000000000107 x24: 0000000000000000 x23: 0000000000000fff x22: 00000000fffffff4 x21: 0000000000000000 x20: 0000000000001000 x19: ffff0000ca1cad48 x18: 0000000000000002 x17: 0000000000000000 x16: ffff8000119a4394 x15: 00000000ffffffff x14: ffff0000d9ed9b40 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000001 x10: 0000000000000000 x9 : ffff0000d9ed9b40 x8 : ffff80000a09307c x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff80001c9465d8 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:8857 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:5440 [inline] btrfs_setattr+0x6b8/0xe2c fs/btrfs/inode.c:5479 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: 97a0e9d6 f94007e8 17ffff30 9790c1fd (d4210000) ---[ end trace 6150994768aefd66 ]---