diff options
| author | Vincent Donnefort <vdonnefort@google.com> | 2026-05-21 15:36:26 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-05-26 16:12:29 +0100 |
| commit | 5c30c9fc117cc7d0c1b45741d1127edd4c2ae990 (patch) | |
| tree | 88d669edb09b957248c434476c82480f93aedfc6 /tools/lib/python/kdoc/python_version.py | |
| parent | 20d2753295b1cd3c766199b5990119ca514e1302 (diff) | |
KVM: arm64: Add fail-safe for refcounted pages in __pkvm_hyp_donate_host
A previous bug in __pkvm_init_vm error path showed that the hypervisor
could leak refcounted pages, (i.e. losing access to a page while its
refcount is still elevated). This poses a threat to the pKVM state
machine.
Address this by introducing a fail-safe in __pkvm_hyp_donate_host.
Transitions are not a hot path so added security is worth the extra
check.
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-4-vdonnefort@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
