Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c256bd48 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Patrick Daly
Browse files

iommu: msm: Provide the IOMMU_NOEXEC flag explicitly during mapping



The logic for the iommu executable flag is inverted now and
all the iommu mappings are executable by default.
Provide the IOMMU_NOEXEC flag where the mapping needs to be non-executable.

Change-Id: Ifa0aa3d17ae79c16abdf66d2177a09b868a9f45f
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 1ded748a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1305,7 +1305,7 @@ __iommu_create_mapping(struct device *dev, struct page **pages, size_t size)

		len = (j - i) << PAGE_SHIFT;
		ret = iommu_map(mapping->domain, iova, phys, len,
				IOMMU_READ|IOMMU_WRITE);
				IOMMU_READ|IOMMU_WRITE|IOMMU_NOEXEC);
		if (ret < 0)
			goto fail;
		iova += len;