Skip to content

iommufd: Avoid PRI Response Failure

Lu Baolu linux-iommu lkml 1 version Applied

Status from this message: Applied to iommufd for-next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3iommufd: Remove IOMMUFD_PAGE_RESP_FAILUREinclude/uapi/linux/iommufd.h+0 -41 reply
2/3iommufd: Add check on user response codedrivers/iommu/iommufd/fault.c+6 -04 replies
3/3iommu: Convert response code from failure to invaliddrivers/iommu/io-pgfault.c+1 -13 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKevin Tian
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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

https://lore.kernel.org/linux-iommu/[email protected]/

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(-)
Signature · 1 line
2.34.1