Skip to content
Snippets Groups Projects
user avatar
David Brazdil authored
[ Upstream commit facee1be ]

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: 90134ac9 ("KVM: arm64: Protect the .hyp sections from the host")
Signed-off-by: default avatarDavid Brazdil <dbrazdil@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210728153232.1018911-2-dbrazdil@google.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
f3409e92
Name Last commit Last update