summaryrefslogtreecommitdiff
path: root/arch/x86/mm/dump_pagetables.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2019-04-26 12:01:33 +0200
committerIngo Molnar <mingo@kernel.org>2019-04-26 12:01:33 +0200
commitda398dbd7d871bae332a800f7d194af18a2a9058 (patch)
tree2dbdc51bd9caa1539480b3d80d082adfdb8179c3 /arch/x86/mm/dump_pagetables.c
parent2792107dc3af29ecc1a9b3dc5bc873dac4b61cd6 (diff)
parent8113a85f872003a9f5c58f9f143054b0d8ec73a5 (diff)
Merge branch 'linus' into x86/mm, to pick up dependent fix
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/mm/dump_pagetables.c')
-rw-r--r--arch/x86/mm/dump_pagetables.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
index ee8f8ab46941..c0309ea9abee 100644
--- a/arch/x86/mm/dump_pagetables.c
+++ b/arch/x86/mm/dump_pagetables.c
@@ -259,7 +259,8 @@ static void note_wx(struct pg_state *st)
#endif
/* Account the WX pages */
st->wx_pages += npages;
- WARN_ONCE(1, "x86/mm: Found insecure W+X mapping at address %pS\n",
+ WARN_ONCE(__supported_pte_mask & _PAGE_NX,
+ "x86/mm: Found insecure W+X mapping at address %pS\n",
(void *)st->start_address);
}