Re: [PATCH] iommu/dma: Don't touch invalid iova_domain members

2017-05-16 Thread Auger Eric
Hi, On 05/05/2017 12:04, Robin Murphy wrote: > When __iommu_dma_map() and iommu_dma_free_iova() are called from > iommu_dma_get_msi_page(), various iova_*() helpers are still invoked in > the process, whcih is unwise since they access a different member of the > union (the iova_domain) from that

[PATCH] iommu/dma: Don't touch invalid iova_domain members

2017-05-05 Thread Robin Murphy
When __iommu_dma_map() and iommu_dma_free_iova() are called from iommu_dma_get_msi_page(), various iova_*() helpers are still invoked in the process, whcih is unwise since they access a different member of the union (the iova_domain) from that which was last written, and there's no guarantee that