--- a/mm/vmalloc.c~mm-dont-allow-executable-ioremap-mappings +++ a/mm/vmalloc.c @@ -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;