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

Lu Baolu posted 3 patches 1 year, 5 months ago
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(-)
[PATCH 0/3] iommufd: Avoid PRI Response Failure
Posted by Lu Baolu 1 year, 5 months ago
This series is a follow-up for the discussion that happened here.

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

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
Re: [PATCH 0/3] iommufd: Avoid PRI Response Failure
Posted by Jason Gunthorpe 1 year, 5 months ago
On Wed, Jul 10, 2024 at 04:33:38PM +0800, Lu Baolu wrote:
> This series is a follow-up for the discussion that happened here.
> 
> https://lore.kernel.org/linux-iommu/20240709173643.GI14050@ziepe.ca/
> 
> 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

Applied to iommufd for-next

Thanks,
Jason