diff options
author | Oliver Upton <oupton@google.com> | 2021-08-18 20:21:30 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-08-19 09:08:56 +0100 |
commit | 6654f9dfcb88fea3b9affc180dc3c04333d0f306 (patch) | |
tree | fd54c1cfff1f8bd1d13672699fc2b32b657f3aed /drivers/net/wwan/iosm/iosm_ipc_flash.c | |
parent | c500bee1c5b2f1d59b1081ac879d73268ab0ff17 (diff) |
KVM: arm64: Fix read-side race on updates to vcpu reset state
KVM correctly serializes writes to a vCPU's reset state, however since
we do not take the KVM lock on the read side it is entirely possible to
read state from two different reset requests.
Cure the race for now by taking the KVM lock when reading the
reset_state structure.
Fixes: 358b28f09f0a ("arm/arm64: KVM: Allow a VCPU to fully reset itself")
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210818202133.1106786-2-oupton@google.com
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_flash.c')
0 files changed, 0 insertions, 0 deletions