Commit cb9c7ad4 authored by Ricardo Koller's avatar Ricardo Koller Committed by Will Deacon
Browse files

UPSTREAM: KVM: arm64: vgic-v3: Check ITS region is not above the VM IPA size



Verify that the ITS region does not extend beyond the VM-specified IPA
range (phys_size).

  base + size > phys_size AND base < phys_size

Add the missing check into vgic_its_set_attr() which is called when
setting the region.

Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
Signed-off-by: default avatarRicardo Koller <ricarkol@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211005011921.437353-5-ricarkol@google.com


(cherry picked from commit 2ec02f6c)
Bug: 204960018
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Change-Id: I859d3e9e702b84579e67f2e0e0b8e13e0759b921
parent 42319f7a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment