aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorAndrew Jones <[email protected]>2017-04-18 17:59:58 +0200
committerChristoffer Dall <[email protected]>2017-04-19 17:28:11 +0200
commit6c7a5dce22b3f3cc44be098e2837fa6797edb8b8 (patch)
treedbda1126626c9f9455038d7c082def0b4c1dfbce /scripts/gdb/linux/proc.py
parent5f6e00709c16b63c7a93552ed4ab2b48a0dd47ac (diff)
KVM: arm/arm64: fix races in kvm_psci_vcpu_on
Fix potential races in kvm_psci_vcpu_on() by taking the kvm->lock mutex. In general, it's a bad idea to allow more than one PSCI_CPU_ON to process the same target VCPU at the same time. One such problem that may arise is that one PSCI_CPU_ON could be resetting the target vcpu, which fills the entire sys_regs array with a temporary value including the MPIDR register, while another looks up the VCPU based on the MPIDR value, resulting in no target VCPU found. Resolves both races found with the kvm-unit-tests/arm/psci unit test. Reviewed-by: Marc Zyngier <[email protected]> Reviewed-by: Christoffer Dall <[email protected]> Reported-by: Levente Kurusa <[email protected]> Suggested-by: Christoffer Dall <[email protected]> Signed-off-by: Andrew Jones <[email protected]> Cc: [email protected] Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions