diff options
| author | David Brazdil <[email protected]> | 2021-07-28 15:32:31 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2021-07-29 16:33:04 +0000 |
| commit | facee1be7689f8cf573b9ffee6a5c28ee193615e (patch) | |
| tree | fe98937e7a51d4879e8149ac85f053626ed8b545 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | KVM: arm64: selftests: get-reg-list: actually enable pmu regs in pmu sublist (diff) | |
| download | kernel-facee1be7689f8cf573b9ffee6a5c28ee193615e.tar.gz kernel-facee1be7689f8cf573b9ffee6a5c28ee193615e.zip | |
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 <[email protected]>
Fixes: 90134ac9cabb6 ("KVM: arm64: Protect the .hyp sections from the host")
Signed-off-by: David Brazdil <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
