We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f7412b commit 6dc72c3Copy full SHA for 6dc72c3
arch/x86/mm/pti.c
@@ -287,6 +287,15 @@ static void __init pti_clone_user_shared(void)
287
pti_clone_p4d(CPU_ENTRY_AREA_BASE);
288
}
289
290
+/*
291
+ * Clone the populated PMDs of the entry and irqentry text and force it RO.
292
+ */
293
+static void __init pti_clone_entry_text(void)
294
+{
295
+ pti_clone_pmds((unsigned long) __entry_text_start,
296
+ (unsigned long) __irqentry_text_end, _PAGE_RW);
297
+}
298
+
299
/*
300
* Initialize kernel page table isolation
301
*/
@@ -298,4 +307,5 @@ void __init pti_init(void)
307
pr_info("enabled\n");
308
309
pti_clone_user_shared();
310
+ pti_clone_entry_text();
311
0 commit comments