diff options
author | 2021-10-04 18:19:13 -0700 | |
---|---|---|
committer | 2021-10-11 09:31:41 +0100 | |
commit | c56a87da0a7fa14180082249ac954c7ebc9e74e1 (patch) | |
tree | 0b6e5df5e586ffea6ecc041a3e9b00fd628ac686 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: vgic-v3: Check redist region is not above the VM IPA size (diff) | |
download | linux-dev-c56a87da0a7fa14180082249ac954c7ebc9e74e1.tar.xz linux-dev-c56a87da0a7fa14180082249ac954c7ebc9e74e1.zip |
KVM: arm64: vgic-v2: Check cpu interface region is not above the VM IPA size
Verify that the GICv2 CPU interface does not extend beyond the
VM-specified IPA range (phys_size).
base + size > phys_size AND base < phys_size
Add the missing check into kvm_vgic_addr() which is called when setting
the region. This patch also enables some superfluous checks for the
distributor (vgic_check_ioaddr was enough as alignment == size for the
distributors).
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211005011921.437353-4-ricarkol@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions