lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 20 Aug 2020 16:08:20 +0100 From: Robin Murphy <robin.murphy@....com> To: hch@....de, joro@...tes.org, linux@...linux.org.uk Cc: will@...nel.org, inki.dae@...sung.com, sw0312.kim@...sung.com, kyungmin.park@...sung.com, m.szyprowski@...sung.com, agross@...nel.org, bjorn.andersson@...aro.org, thierry.reding@...il.com, jonathanh@...dia.com, vdumpa@...dia.com, digetx@...il.com, matthias.bgg@...il.com, yong.wu@...iatek.com, geert+renesas@...der.be, magnus.damm@...il.com, t-kristo@...com, s-anna@...com, laurent.pinchart@...asonboard.com, linux-arm-kernel@...ts.infradead.org, iommu@...ts.linux-foundation.org, linux-samsung-soc@...r.kernel.org, linux-tegra@...r.kernel.org, linux-arm-msm@...r.kernel.org, linux-mediatek@...ts.infradead.org, dri-devel@...ts.freedesktop.org, linux-media@...r.kernel.org, linux-kernel@...r.kernel.org Subject: [PATCH 01/18] ARM/dma-mapping: Drop .dma_supported for IOMMU ops When an IOMMU is present, we trust that it should be capable of remapping any physical memory, and since the device masks represent the input (virtual) addresses to the IOMMU it makes no sense to validate them against physical PFNs anyway. Signed-off-by: Robin Murphy <robin.murphy@....com> --- arch/arm/mm/dma-mapping.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 8a8949174b1c..ffa387f343dc 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -1997,8 +1997,6 @@ static const struct dma_map_ops iommu_ops = { .map_resource = arm_iommu_map_resource, .unmap_resource = arm_iommu_unmap_resource, - - .dma_supported = arm_dma_supported, }; static const struct dma_map_ops iommu_coherent_ops = { @@ -2015,8 +2013,6 @@ static const struct dma_map_ops iommu_coherent_ops = { .map_resource = arm_iommu_map_resource, .unmap_resource = arm_iommu_unmap_resource, - - .dma_supported = arm_dma_supported, }; /** -- 2.28.0.dirty
Powered by blists - more mailing lists