arm64: Fix R/O permissions in mark_rodata_ro
[cascardo/linux.git] / arch / arm64 / mm / mmu.c
index 32ddd89..abb66f8 100644 (file)
@@ -475,7 +475,7 @@ void mark_rodata_ro(void)
 {
        create_mapping_late(__pa(_stext), (unsigned long)_stext,
                                (unsigned long)_etext - (unsigned long)_stext,
-                               PAGE_KERNEL_EXEC | PTE_RDONLY);
+                               PAGE_KERNEL_ROX);
 
 }
 #endif