lkml.org 
[lkml]   [2017]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 28/43] x86/mm/kaiser: Map cpu entry area
On Fri, 24 Nov 2017, Ingo Molnar wrote:
> +void kaiser_add_mapping_cpu_entry(int cpu)
> +{
> + kaiser_add_user_map_early(get_cpu_gdt_ro(cpu), PAGE_SIZE,
> + __PAGE_KERNEL_RO);
> +
> + /* includes the entry stack */
> + kaiser_add_user_map_early(&get_cpu_entry_area(cpu)->tss,
> + sizeof(get_cpu_entry_area(cpu)->tss),
> + __PAGE_KERNEL | _PAGE_GLOBAL);
> +
> + /* Entry code, so needs to be EXEC */
> + kaiser_add_user_map_early(&get_cpu_entry_area(cpu)->entry_trampoline,
> + sizeof(get_cpu_entry_area(cpu)->entry_trampoline),
> + __PAGE_KERNEL_EXEC | _PAGE_GLOBAL);

This creates a RWX mapping and wants to be __PAGE_KERNEL_RX!

Whats weird is that I saw dump_walk_pgd_level_checkwx() complain once about
that, but on the next boot it failed to detect it for whatever reason. This
needs further investigation.

Thanks,

tglx

\
 
 \ /
  Last update: 2017-11-25 22:41    [W:0.236 / U:2.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site