diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-05-21 15:36:25 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-05-26 16:12:29 +0100 |
| commit | 20d2753295b1cd3c766199b5990119ca514e1302 (patch) | |
| tree | 318c9f46202314e3034f7c770bef7561f9aeadba /scripts/git.orderFile | |
| parent | 6835fbed39bb329744a3f44e8e6a39e24079af10 (diff) | |
KVM: arm64: Fix __pkvm_init_vm error path
In the unlikely case where insert_vm_table_entry fails, __pkvm_init_vm
release the memory donated by the host for the PGD, but as the stage-2
is still set-up the hypervisor keeps a refcount on those pages,
effectively leaking the references.
Fix the rollback with the newly added kvm_guest_destroy_stage2().
Fixes: 256b4668cd89 ("KVM: arm64: Introduce separate hypercalls for pKVM VM reservation and initialization")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Link: https://patch.msgid.link/20260521143626.1005660-3-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
