iommufd: Add some fault injection points
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 29 Nov 2022 20:29:40 +0000 (16:29 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Dec 2022 00:16:49 +0000 (20:16 -0400)
commite26eed4f623da70913b535631a29764d108efe98
tree990810f8e341ee5eaedb0773434489029baad106
parentf4b20bb34c83dceade5470288f48f94ce3598ada
iommufd: Add some fault injection points

This increases the coverage the fail_nth test gets, as well as via
syzkaller.

Link: https://lore.kernel.org/r/17-v6-a196d26f289e+11787-iommufd_jgg@nvidia.com
Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> # s390
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/main.c
drivers/iommu/iommufd/pages.c