Skip to contentSkip to conversation

mm-dont-allow-executable-ioremap-mappings.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 9, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: don't allow executable ioremap mappings
has been removed from the -mm tree. Its filename was
mm-dont-allow-executable-ioremap-mappings.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: mm: don't allow executable ioremap mappings

There is no need to execute from iomem (and most platforms it is impossible anyway), so add the pgprot_nx() call similar to vmap.

---

 mm/vmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/vmalloc.c renamed from mm/vmalloc.c~mm-dont-allow-executable-ioremap-mappings +1 -1
@@ -316,7 +316,7 @@ int ioremap_page_range(unsigned long add
 {
 	int err;
 
-	err = vmap_range_noflush(addr, end, phys_addr, prot,
+	err = vmap_range_noflush(addr, end, phys_addr, pgprot_nx(prot),
 				 ioremap_max_page_shift);
 	flush_cache_vmap(addr, end);
 	return err;

_

Patches currently in -mm which might be from [email protected] are

mm-unexport-folio_memcg_unlock.patch
mm-unexport-unlock_page_memcg.patch