]> asedeno.scripts.mit.edu Git - linux.git/commit
vfio/type1: check dma map request is within a valid iova range
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tue, 23 Jul 2019 16:06:35 +0000 (17:06 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 19 Aug 2019 19:55:50 +0000 (13:55 -0600)
commit9b77e5c79840fc334a5b7f770c5ab0c09dc0e028
tree5d354772c165737acb59daee18f3cc24c004a7f3
parentf45daadfe1add9f468f3ae1f7e2d9b235fe80748
vfio/type1: check dma map request is within a valid iova range

This checks and rejects any dma map request outside valid iova
range.

Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c