aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2024-07-10 16:33:40 +0800
committerJason Gunthorpe <[email protected]>2024-07-12 09:00:19 -0300
commitd73cf5ff743b5a8de6fa20651baba5bd56ba98a3 (patch)
treeff78fa82f9558ebfcfd637b6f7a68dd3fb6bac9f /lib/memory-notifier-error-inject.c
parent861f96a785149a0062cce6578e0fa7cb95435a7e (diff)
iommufd: Add check on user response code
The response code from user space is only allowed to be SUCCESS or INVALID. All other values are treated by the device as a response code of Response Failure according to PCI spec, section 10.4.2.1. This response disables the Page Request Interface for the Function. Add a check in iommufd_fault_fops_write() to avoid invalid response code. Fixes: 07838f7fd529 ("iommufd: Add iommufd fault object") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions