diff options
| author | Will Deacon <will@kernel.org> | 2026-03-30 15:48:03 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-03-30 16:58:07 +0100 |
| commit | 5e66f723d4de432a5acb481293d81dc88c7f61a4 (patch) | |
| tree | 9a0ac3c2cb6a047d219f23a041c583a721c3cdf9 /include/net/phy/git@git.tavy.me:linux.git | |
| parent | 660b208e8b5ea0f5a68a8333e18960d89d484a27 (diff) | |
KVM: arm64: Don't leak stage-2 page-table if VM fails to init under pKVM
If pkvm_init_host_vm() fails, we should free the stage-2 page-table
previously allocated by kvm_init_stage2_mmu().
Cc: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Tested-by: Fuad Tabba <tabba@google.com>
Tested-by: Mostafa Saleh <smostafa@google.com>
Fixes: 07aeb70707b1 ("KVM: arm64: Reserve pKVM handle during pkvm_init_host_vm()")
Signed-off-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260330144841.26181-3-will@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include/net/phy/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
