diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-08-29 21:06:13 -0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-09-04 11:37:43 +0200 |
commit | 322d889ae7d39f8538a6deac35869aa3be1855bd (patch) | |
tree | 5cceeefd1073a8ccb9f45b7c2c1273244cbebaff /drivers/usb/cdns3/cdns3-pci-wrap.c | |
parent | 7a41dcb52f9de6079621fc31c3b84c7fc290934b (diff) |
iommu/amd: Remove amd_iommu_domain_update() from page table freeing
It is a serious bug if the domain is still mapped to any DTEs when it is
freed as we immediately start freeing page table memory, so any remaining
HW touch will UAF.
If it is not mapped then dev_list is empty and amd_iommu_domain_update()
does nothing.
Remove it and add a WARN_ON() to catch this class of bug.
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions