aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSteven Price <[email protected]>2021-07-29 17:00:36 +0100
committerMarc Zyngier <[email protected]>2021-07-29 17:34:01 +0100
commitc4d7c51845af9542d42cd18a25c570583abf2768 (patch)
treea192daad41b4e977b196a9ee9cf06cb8b357f067 /tools/perf/scripts/python/export-to-sqlite.py
parentfacee1be7689f8cf573b9ffee6a5c28ee193615e (diff)
KVM: arm64: Fix race when enabling KVM_ARM_CAP_MTE
When enabling KVM_CAP_ARM_MTE the ioctl checks that there are no VCPUs created to ensure that the capability is enabled before the VM is running. However no locks are held at that point so it is (theoretically) possible for another thread in the VMM to create VCPUs between the check and actually setting mte_enabled. Close the race by taking kvm->lock. Reported-by: Alexandru Elisei <[email protected]> Fixes: 673638f434ee ("KVM: arm64: Expose KVM_ARM_CAP_MTE") Signed-off-by: Steven Price <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions