WSL2-Linux-Kernel/arch/arm64
Andre Przywara bf308242ab KVM: arm/arm64: VGIC/ITS: protect kvm_read_guest() calls with SRCU lock
kvm_read_guest() will eventually look up in kvm_memslots(), which requires
either to hold the kvm->slots_lock or to be inside a kvm->srcu critical
section.
In contrast to x86 and s390 we don't take the SRCU lock on every guest
exit, so we have to do it individually for each kvm_read_guest() call.

Provide a wrapper which does that and use that everywhere.

Note that ending the SRCU critical section before returning from the
kvm_read_guest() wrapper is safe, because the data has been *copied*, so
we don't need to rely on valid references to the memslot anymore.

Cc: Stable <stable@vger.kernel.org> # 4.8+
Reported-by: Jan Glauber <jan.glauber@caviumnetworks.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-05-15 13:36:49 +02:00
..
boot This pull request contains Broadcom ARM64-based SoCs Device Tree fixes 2018-04-27 10:21:18 +02:00
configs
crypto
include KVM: arm/arm64: VGIC/ITS: protect kvm_read_guest() calls with SRCU lock 2018-05-15 13:36:49 +02:00
kernel arm64: fix possible spectre-v1 in ptrace_hbp_get_event() 2018-04-26 16:58:39 +01:00
kvm arm64: vgic-v2: Fix proxying of cpuif access 2018-05-04 16:45:55 +01:00
lib arm64: avoid instrumenting atomic_ll_sc.o 2018-04-27 12:14:44 +01:00
mm arm64: mm: drop addr parameter from sync icache and dcache 2018-04-24 09:23:00 +01:00
net
xen
Kconfig ARM: 2018-04-09 11:42:31 -07:00
Kconfig.debug
Kconfig.platforms
Makefile arm64: support __int128 with clang 2018-04-24 19:07:55 +01:00