[PATCH 0/3] iommufd: Avoid PRI Response Failure

From: Lu Baolu
Date: Wed Jul 10 2024 - 04:36:43 EST


This series is a follow-up for the discussion that happened here.

https://lore.kernel.org/linux-iommu/20240709173643.GI14050@xxxxxxxx/

It prevents user space from responding to a group of page faults with a
response code other than IOMMUFD_PAGE_RESP_SUCCESS and
IOMMUFD_PAGE_RESP_INVALID, which will be treated by the device as
Response Failure according to the PCI spec.

Please help review and comment.

Lu Baolu (3):
iommufd: Remove IOMMUFD_PAGE_RESP_FAILURE
iommufd: Add check on user response code
iommu: Convert response code from failure to invalid

include/uapi/linux/iommufd.h | 4 ----
drivers/iommu/io-pgfault.c | 2 +-
drivers/iommu/iommufd/fault.c | 6 ++++++
3 files changed, 7 insertions(+), 5 deletions(-)

--
2.34.1