summaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback_xdr.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2015-06-05 08:34:59 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-11 07:14:55 +0200
commite432bc7e15d80288aff0bcccb2ff0f9ae572abdd (patch)
tree45941147d1de4479ab7de27b93f1742418e2edae /fs/nfs/callback_xdr.c
parentvfio: powerpc/spapr: Move page pinning from arch code to VFIO IOMMU driver (diff)
downloadlinux-e432bc7e15d80288aff0bcccb2ff0f9ae572abdd.tar.xz
linux-e432bc7e15d80288aff0bcccb2ff0f9ae572abdd.zip
vfio: powerpc/spapr: Check that IOMMU page is fully contained by system page
This checks that the TCE table page size is not bigger that the size of a page we just pinned and going to put its physical address to the table. Otherwise the hardware gets unwanted access to physical memory between the end of the actual page and the end of the aligned up TCE page. Since compound_order() and compound_head() work correctly on non-huge pages, there is no need for additional check whether the page is huge. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> [aw: for the vfio related changes] Acked-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'fs/nfs/callback_xdr.c')
0 files changed, 0 insertions, 0 deletions