]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Do proper access checking before calling handle_mm_fault()
authorJoerg Roedel <jroedel@suse.de>
Tue, 17 Nov 2015 15:11:36 +0000 (16:11 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Dec 2015 14:37:47 +0000 (15:37 +0100)
commit3950613d96126dd5964256c915335a140b5d5887
treea704d1bec65c7bda54af3dffbeca97feeb09c57c
parent4920d7d57f4b89e6c9ef52a8cf08c2582dcfa7a7
iommu/amd: Do proper access checking before calling handle_mm_fault()

The handle_mm_fault function expects the caller to do the
access checks. Not doing so and calling the function with
wrong permissions is a bug (catched by a BUG_ON).
So fix this bug by adding proper access checking to the io
page-fault code in the AMD IOMMUv2 driver.

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/amd_iommu_v2.c