diff options
| author | Oliver Upton <oupton@kernel.org> | 2026-06-18 16:42:03 -0700 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-06-22 10:43:25 +0100 |
| commit | 9f3e83345a56280efffe235c65593c7e544c0fcc (patch) | |
| tree | 9d76ebdec2f05cd71416900e6192e36e4bdf836a /scripts/Makefile.thinlto | |
| parent | 2684e02bac41c5220f6c1ab2bdcc957b71812977 (diff) | |
KVM: arm64: nv: Inject SEA if kvm_translate_vncr() can't resolve PFN
kvm_handle_vncr_abort() assumes that s1_walk_result conveys an abort
when kvm_translate_vncr() returns -EFAULT. This is not always the case
as it's possible to encounter 'late' failures on the output of S1
translation, e.g. a GFN outside of the memslots.
Fix it by preparing an external abort before returning from
kvm_translate_vncr(). Get rid of the BUG_ON() in the fault injection
path while at it.
Cc: stable@vger.kernel.org
Fixes: 2a359e072596 ("KVM: arm64: nv: Handle mapping of VNCR_EL2 at EL2")
Signed-off-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20260618234207.1063941-3-oupton@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
