c4d7c51845
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 <alexandru.elisei@arm.com>
Fixes:
|
||
---|---|---|
.. | ||
hyp | ||
vgic | ||
Kconfig | ||
Makefile | ||
arch_timer.c | ||
arm.c | ||
debug.c | ||
fpsimd.c | ||
guest.c | ||
handle_exit.c | ||
hypercalls.c | ||
inject_fault.c | ||
irq.h | ||
mmio.c | ||
mmu.c | ||
perf.c | ||
pmu-emul.c | ||
pmu.c | ||
psci.c | ||
pvtime.c | ||
reset.c | ||
sys_regs.c | ||
sys_regs.h | ||
trace.h | ||
trace_arm.h | ||
trace_handle_exit.h | ||
trng.c | ||
va_layout.c | ||
vgic-sys-reg-v3.c |