VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Christoph Hellwig <hch@lst.de> 2021-09-07 19:56:04 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-08 11:50:24 -0700 commit: 8491502f787c4a902bd4f223b578ef47d3490264 parent: 82a70ce0426dd7c4099516175019dccbd18cebf9
Commit Summary:
mm: don't allow executable ioremap mappings
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e44983fb2d15..3055f04b486b 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -316,7 +316,7 @@ int ioremap_page_range(unsigned long addr, unsigned long end,
 {
 	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;