summaryrefslogtreecommitdiff
path: root/lib/test_xarray.c
diff options
context:
space:
mode:
authorSebastian Ene <sebastianene@google.com>2024-01-24 09:10:28 +0000
committerMarc Zyngier <maz@kernel.org>2024-01-30 21:30:33 +0000
commit10c02aad111df02088d1a81792a709f6a7eca6cc (patch)
tree3e7d7c00ac8cf8304d77a10c5ed51c3ad31c816c /lib/test_xarray.c
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
downloadlinux-10c02aad111df02088d1a81792a709f6a7eca6cc.tar.gz
linux-10c02aad111df02088d1a81792a709f6a7eca6cc.tar.bz2
linux-10c02aad111df02088d1a81792a709f6a7eca6cc.zip
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 'lib/test_xarray.c')
0 files changed, 0 insertions, 0 deletions