mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
78a0055555
kvm_vgic_map_resources() prematurely marks the distributor as 'ready',
potentially allowing vCPUs to enter the guest before the distributor's
MMIO registration has been made visible.
Plug the race by marking the distributor as ready only after MMIO
registration is completed. Rely on the implied ordering of
synchronize_srcu() to ensure the MMIO registration is visible before
vgic_dist::ready. This also means that writers to vgic_dist::ready are
now serialized by the slots_lock, which was effectively the case already
as all writers held the slots_lock in addition to the config_lock.
Fixes:
|
||
---|---|---|
.. | ||
trace.h | ||
vgic-debug.c | ||
vgic-init.c | ||
vgic-irqfd.c | ||
vgic-its.c | ||
vgic-kvm-device.c | ||
vgic-mmio-v2.c | ||
vgic-mmio-v3.c | ||
vgic-mmio.c | ||
vgic-mmio.h | ||
vgic-v2.c | ||
vgic-v3.c | ||
vgic-v4.c | ||
vgic.c | ||
vgic.h |