aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSebastian Ene <[email protected]>2024-01-24 09:10:28 +0000
committerMarc Zyngier <[email protected]>2024-01-30 21:30:33 +0000
commit10c02aad111df02088d1a81792a709f6a7eca6cc (patch)
tree3e7d7c00ac8cf8304d77a10c5ed51c3ad31c816c /lib
parent6613476e225e090cc9aad49be7fa504e290dd33d (diff)
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 <[email protected]> Cc: [email protected] Reviewed-by: Oliver Upton <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions