iommu/vt-d: Do access checks before calling handle_mm_fault()
authorJoerg Roedel <jroedel@suse.de>
Tue, 17 Nov 2015 15:11:39 +0000 (16:11 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Dec 2015 14:37:55 +0000 (15:37 +0100)
commit7f8312a3b31de5676144d9e75f2f2647c8b4b769
treeaea5b2b647c49e6b6fc1a215856bb174945861b4
parent7b5cc1a9c9f4096555345c365508d727149553fe
iommu/vt-d: Do access checks before calling handle_mm_fault()

Not doing so is a bug and might trigger a BUG_ON in
handle_mm_fault(). So add the proper permission checks
before calling into mm code.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c