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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3289! Internal error: Oops - BUG: 0 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 23495 Comm: syz-executor.4 Not tainted 5.15.131-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3289 lr : btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3289 sp : ffff80001f4371e0 x29: ffff80001f437300 x28: ffff0000cc71c420 x27: ffff80001f437270 x26: 00000000fffffff4 x25: 0000000000000001 x24: ffff0000cfed3670 x23: 0000000000000005 x22: ffff0000cc71c420 x21: ffff0000cfed3550 x20: 0000000000000000 x19: dfff800000000000 x18: 0000000000000001 x17: ff80800008334dcc x16: ffff8000119649dc x15: ffff800008334dcc x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000001165c x10: ffff80001e67c000 x9 : ffff800009fc08e0 x8 : 000000000001165d x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff80001f436538 x4 : 00000000000000a8 x3 : 0000000000000068 x2 : 0000000000000001 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3289 btrfs_del_leaf+0x224/0x3a8 fs/btrfs/ctree.c:4086 btrfs_del_items+0x9f8/0xc3c fs/btrfs/ctree.c:4181 btrfs_batch_delete_items fs/btrfs/delayed-inode.c:839 [inline] btrfs_delete_delayed_items fs/btrfs/delayed-inode.c:887 [inline] __btrfs_commit_inode_delayed_items+0xfe8/0x1308 fs/btrfs/delayed-inode.c:1045 btrfs_commit_inode_delayed_items+0x108/0x1ac fs/btrfs/delayed-inode.c:1143 btrfs_log_inode+0x260/0x201c fs/btrfs/tree-log.c:5426 btrfs_log_inode_parent+0xabc/0x1050 fs/btrfs/tree-log.c:6223 btrfs_log_dentry_safe+0x6c/0x90 fs/btrfs/tree-log.c:6324 btrfs_sync_file+0x844/0xe60 fs/btrfs/file.c:2323 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fsync fs/sync.c:220 [inline] __se_sys_fsync fs/sync.c:218 [inline] __arm64_sys_fsync+0x178/0x1c0 fs/sync.c:218 __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:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Code: c80a7e69 35ffffaa 17ffff2b 979404e3 (d4210000) ---[ end trace 6f99ca6c78df1318 ]---