linux/arch/arm64/kvm/hyp
David Brazdil facee1be76 KVM: arm64: Fix off-by-one in range_is_memory
Hyp checks whether an address range only covers RAM by checking the
start/endpoints against a list of memblock_region structs. However,
the endpoint here is exclusive but internally is treated as inclusive.
Fix the off-by-one error that caused valid address ranges to be
rejected.

Cc: Quentin Perret <qperret@google.com>
Fixes: 90134ac9ca ("KVM: arm64: Protect the .hyp sections from the host")
Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210728153232.1018911-2-dbrazdil@google.com
2021-07-29 17:33:04 +01:00
..
include Merge branch kvm-arm64/mmu/mte into kvmarm-master/next 2021-06-22 15:09:34 +01:00
nvhe KVM: arm64: Fix off-by-one in range_is_memory 2021-07-29 17:33:04 +01:00
vhe
Makefile
aarch32.c
entry.S
exception.c
fpsimd.S
hyp-entry.S
pgtable.c
reserved_mem.c
vgic-v2-cpuif-proxy.c
vgic-v3-sr.c