KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit state
authorMarc Zyngier <maz@kernel.org>
Sun, 17 Aug 2025 12:19:23 +0000 (13:19 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 28 Aug 2025 18:39:48 +0000 (11:39 -0700)
commitb720269334f55f2e683fbb8f1f065a12f2c72eb6
treed7ece2fb0f4abd0a9ee6a1913120ef909efc7742
parent01860bcc53432d8b9b92a72939b35679ac24059f
KVM: arm64: Check for SYSREGS_ON_CPU before accessing the 32bit state

Just like c6e35dff58d3 ("KVM: arm64: Check for SYSREGS_ON_CPU before
accessing the CPU state") fixed the 64bit state access, add a check
for the 32bit state actually being on the CPU before writing it.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250817121926.217900-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/exception.c