opnsense-src/sys/dev/iommu
Alan Cox 8bc3673847 iommu_gas: Eliminate a possible case of use-after-free
Eliminate a possible case of use-after-free in an error handling path
after a mapping failure.  Specifically, eliminate IOMMU_MAP_ENTRY_QI_NF
and instead perform the IOTLB invalidation synchronously.  Otherwise,
when iommu_domain_unload_entry() is called and told not to free the
IOMMU map entry, the caller could free the entry before dmar_qi_task()
is finished with it.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35878
2022-07-25 11:14:58 -05:00
..
busdma_iommu.c iommu_gas: Avoid double unmapping on error 2022-07-21 02:00:46 -05:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-06-25 00:59:23 -05:00
iommu.h iommu_gas: Eliminate a possible case of use-after-free 2022-07-25 11:14:58 -05:00
iommu_gas.c iommu_gas: Eliminate a possible case of use-after-free 2022-07-25 11:14:58 -05:00
iommu_gas.h iommu_gas: Eliminate a possible case of use-after-free 2022-07-25 11:14:58 -05:00
iommu_msi.h o Add iommu de-initialization method for MSI interface. 2020-10-24 20:09:27 +00:00
iommu_types.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00