linux-stable/arch/arm64/kvm/hyp
Andrew Scull 1dbce9ba2a KVM: arm64: Fix nVHE hyp panic host context restore
Commit c4b000c392 upstream.

When panicking from the nVHE hyp and restoring the host context, x29 is
expected to hold a pointer to the host context. This wasn't being done
so fix it to make sure there's a valid pointer the host context being
used.

Rather than passing a boolean indicating whether or not the host context
should be restored, instead pass the pointer to the host context. NULL
is passed to indicate that no context should be restored.

Fixes: a2e102e20f ("KVM: arm64: nVHE: Handle hyp panics")
Cc: stable@vger.kernel.org # 5.10.y only
Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210219122406.1337626-1-ascull@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-17 17:06:37 +01:00
..
include/hyp arm64: Add workaround for Arm Cortex-A77 erratum 1508412 2020-10-29 12:56:01 +00:00
nvhe KVM: arm64: Fix nVHE hyp panic host context restore 2021-03-17 17:06:37 +01:00
vhe KVM: arm64: Ensure I-cache isolation between vcpus of a same VM 2021-03-17 17:06:37 +01:00
aarch32.c Merge branch 'kvm-arm64/misc-5.9' into kvmarm-master/next-WIP 2020-07-28 16:26:16 +01:00
entry.S KVM: arm64: Avoid corrupting vCPU context register in guest exit 2021-03-17 17:06:36 +01:00
fpsimd.S KVM: arm64: Remove __hyp_text macro, use build rules instead 2020-07-05 18:38:45 +01:00
hyp-entry.S Merge branch 'kvm-arm64/hyp-pcpu' into kvmarm-master/next 2020-09-30 14:05:35 +01:00
Makefile Merge branch 'kvm-arm64/hyp-pcpu' into kvmarm-master/next 2020-09-30 14:05:35 +01:00
pgtable.c KVM: arm64: Fix range alignment when walking page tables 2021-03-17 17:06:36 +01:00
smccc_wa.S KVM: arm64: Move __smccc_workaround_1_smc to .rodata 2020-07-05 18:37:48 +01:00
vgic-v2-cpuif-proxy.c KVM: arm64: Remove __hyp_text macro, use build rules instead 2020-07-05 18:38:45 +01:00
vgic-v3-sr.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00