@@ -291,7 +291,7 @@ static void __init pti_setup_vsyscall(void) { }
291
291
#endif
292
292
293
293
static void
294
- pti_clone_pmds (unsigned long start , unsigned long end , pmdval_t clear )
294
+ pti_clone_pmds (unsigned long start , unsigned long end )
295
295
{
296
296
unsigned long addr ;
297
297
@@ -352,7 +352,7 @@ pti_clone_pmds(unsigned long start, unsigned long end, pmdval_t clear)
352
352
* tables will share the last-level page tables of this
353
353
* address range
354
354
*/
355
- * target_pmd = pmd_clear_flags ( * pmd , clear ) ;
355
+ * target_pmd = * pmd ;
356
356
}
357
357
}
358
358
@@ -398,7 +398,7 @@ static void __init pti_clone_user_shared(void)
398
398
start = CPU_ENTRY_AREA_BASE ;
399
399
end = start + (PAGE_SIZE * CPU_ENTRY_AREA_PAGES );
400
400
401
- pti_clone_pmds (start , end , 0 );
401
+ pti_clone_pmds (start , end );
402
402
}
403
403
#endif /* CONFIG_X86_64 */
404
404
@@ -418,8 +418,7 @@ static void __init pti_setup_espfix64(void)
418
418
static void pti_clone_entry_text (void )
419
419
{
420
420
pti_clone_pmds ((unsigned long ) __entry_text_start ,
421
- (unsigned long ) __irqentry_text_end ,
422
- _PAGE_RW );
421
+ (unsigned long ) __irqentry_text_end );
423
422
}
424
423
425
424
/*
@@ -501,7 +500,7 @@ static void pti_clone_kernel_text(void)
501
500
* pti_set_kernel_image_nonglobal() did to clear the
502
501
* global bit.
503
502
*/
504
- pti_clone_pmds (start , end_clone , _PAGE_RW );
503
+ pti_clone_pmds (start , end_clone );
505
504
506
505
/*
507
506
* pti_clone_pmds() will set the global bit in any PMDs
0 commit comments