diff options
| author | Fuad Tabba <tabba@google.com> | 2026-06-12 12:34:14 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-06-17 13:40:18 +0100 |
| commit | ec40342aaca8162bc8ab2607076535ebab1838b8 (patch) | |
| tree | cb6f6153cbee4e6a62d7d25db50a0b366631e655 /scripts/Makefile.thinlto | |
| parent | e2cb1f4578625e71f461d5c1ce70984193389cbb (diff) | |
KVM: arm64: Sync SPSR_EL1 when injecting an exception into a pVM
When pKVM injects a synchronous exception into a protected guest, it
re-enters without restoring the guest's EL1 sysregs and writes the EL1
exception registers to hardware by hand: ESR_EL1 and ELR_EL1, but not
SPSR_EL1. enter_exception64() sets SPSR_EL1 (the interrupted PSTATE)
only in memory, so the guest's handler reads a stale SPSR_EL1 and
restores the wrong PSTATE on eret.
Write SPSR_EL1 alongside the other exception registers.
Fixes: 6c30bfb18d0b ("KVM: arm64: Add handlers for protected VM System Registers")
Reported-by: sashiko <sashiko@sashiko.dev>
Signed-off-by: Fuad Tabba <tabba@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://patch.msgid.link/20260612113414.1022901-1-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
