[PATCH 0/2] Fix illegal access in IOMMU debugfs

From: Guanghui Feng

Date: Thu Mar 19 2026 - 03:41:17 EST


In AMD IOMMU debugfs,
1. set the device, address, and other information to be accessed
2. After verifying the legitimacy of the device, address, and other
information in step 1, access and obtain the information

However, before actually accessing the device, invalid device or address
information might be set again after the legitimacy verification in step
2, thus triggering an unauthorized access issue.

Guanghui Feng (2):
iommu/amd: Fix illegal device-id access in IOMMU debugfs
iommu/amd: Fix illegal cap/mmio access in IOMMU debugfs

drivers/iommu/amd/debugfs.c | 63 ++++++++++++++++++-------------------
1 file changed, 31 insertions(+), 32 deletions(-)

--
2.43.7