diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-04-29 11:55:04 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-29 11:55:04 +0200 |
commit | ffc5fce9a96303c3e16232a6bdf8827af6adb604 (patch) | |
tree | c8c46b2af268d27e07ee7fad8c283fa7d31b1fb7 /arch/x86/mm | |
parent | b2eafe890d4a09bfa63ab31ff018d7d6bb8cfefc (diff) | |
parent | 1bdb8970392a68489b469c3a330a1adb5ef61beb (diff) |
Merge branch 'x86/urgent' into x86/asm, to refresh the tree
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/setup_nx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/mm/setup_nx.c b/arch/x86/mm/setup_nx.c index 8bea84724a7d..f65a33f505b6 100644 --- a/arch/x86/mm/setup_nx.c +++ b/arch/x86/mm/setup_nx.c @@ -32,8 +32,9 @@ early_param("noexec", noexec_setup); void x86_configure_nx(void) { - /* If disable_nx is set, clear NX on all new mappings going forward. */ - if (disable_nx) + if (boot_cpu_has(X86_FEATURE_NX) && !disable_nx) + __supported_pte_mask |= _PAGE_NX; + else __supported_pte_mask &= ~_PAGE_NX; } |