diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2018-07-18 12:18:44 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-08-22 00:56:56 +0300 |
commit | 3fc92a96c2b7efdb7fc4f856713e2ab7439757f6 (patch) | |
tree | f3e5cfc2cd07fb8ac3745c26d3583fc38bf79a63 /crypto/rmd128.c | |
parent | 71994620bb25a8b109388fefa9e99a28e355255a (diff) | |
download | linux-3fc92a96c2b7efdb7fc4f856713e2ab7439757f6.tar.xz |
virtio: mmio-v1: Validate queue PFN
virtio-mmio with virtio-v1 uses a 32bit PFN for the queue.
If the queue pfn is too large to fit in 32bits, which
we could hit on arm64 systems with 52bit physical addresses
(even with 64K page size), we simply miss out a proper link
to the other side of the queue.
Add a check to validate the PFN, rather than silently breaking
the devices.
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@kernel.org>
Cc: Peter Maydel <peter.maydell@linaro.org>
Cc: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'crypto/rmd128.c')
0 files changed, 0 insertions, 0 deletions