summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/Kconfig
diff options
context:
space:
mode:
authorSebastian Ene <sebastianene@google.com>2024-01-24 12:10:28 +0300
committerMarc Zyngier <maz@kernel.org>2024-01-31 00:30:33 +0300
commit10c02aad111df02088d1a81792a709f6a7eca6cc (patch)
tree3e7d7c00ac8cf8304d77a10c5ed51c3ad31c816c /arch/arm64/kvm/Kconfig
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
downloadlinux-10c02aad111df02088d1a81792a709f6a7eca6cc.tar.xz
KVM: arm64: Fix circular locking dependency
The rule inside kvm enforces that the vcpu->mutex is taken *inside* kvm->lock. The rule is violated by the pkvm_create_hyp_vm() which acquires the kvm->lock while already holding the vcpu->mutex lock from kvm_vcpu_ioctl(). Avoid the circular locking dependency altogether by protecting the hyp vm handle with the config_lock, much like we already do for other forms of VM-scoped data. Signed-off-by: Sebastian Ene <sebastianene@google.com> Cc: stable@vger.kernel.org Reviewed-by: Oliver Upton <oliver.upton@linux.dev> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20240124091027.1477174-2-sebastianene@google.com
Diffstat (limited to 'arch/arm64/kvm/Kconfig')
0 files changed, 0 insertions, 0 deletions