diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-17 11:48:47 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-18 18:15:18 +0100 |
commit | d6c7f865f00adf98ca79712167fb0f1b9dccb272 (patch) | |
tree | eba4cdf8b80f67d46212e425b335214aafdeb1cf /crypto/rsa.c | |
parent | 333a53ff7fb9d836ff4a2b7f266ac9b2bb85e873 (diff) | |
download | linux-d6c7f865f00adf98ca79712167fb0f1b9dccb272.tar.bz2 |
KVM: arm64: vgic-its: Fix L2 entry validation for indirect tables
When checking that the storage address of a device entry is valid,
it is critical to compute the actual address of the entry, rather
than relying on the beginning of the page to match a CPU page of
the same size: for example, if the guest places the table at the
last 64kB boundary of RAM, but RAM size isn't a multiple of 64kB...
Fix this by computing the actual offset of the device ID in the
L2 page, and check the corresponding GFN.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'crypto/rsa.c')
0 files changed, 0 insertions, 0 deletions