From: Ingo Molnar <mingo@elte.hu>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
penberg@cs.helsinki.fi, tglx@linutronix.de, mingo@elte.hu
Subject: [tip:x86/mm] x86: unify noexec handling, fix
Date: Fri, 6 Mar 2009 14:42:26 GMT [thread overview]
Message-ID: <tip-4b809e98a7f9d88e2cb9574f41efa015844c1470@git.kernel.org> (raw)
In-Reply-To: <1236265498.31324.12.camel@penberg-laptop>
Commit-ID: 4b809e98a7f9d88e2cb9574f41efa015844c1470
Gitweb: http://git.kernel.org/tip/4b809e98a7f9d88e2cb9574f41efa015844c1470
Author: "Ingo Molnar" <mingo@elte.hu>
AuthorDate: Fri, 6 Mar 2009 15:37:07 +0100
Commit: Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 6 Mar 2009 15:37:07 +0100
x86: unify noexec handling, fix
Impact: build fix
Move the nx_enabled variable to mm/init.c too.
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1236265498.31324.12.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/mm/init.c | 2 ++
arch/x86/mm/init_32.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
index e7d8bb5..75e3825 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
@@ -25,6 +25,8 @@ int direct_gbpages
#if defined(CONFIG_X86_64) || defined(CONFIG_X86_PAE)
static int disable_nx __initdata;
+int nx_enabled;
+
/*
* noexec = on|off
*
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
index 8ff1173..07bfd60 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
@@ -587,8 +587,6 @@ void zap_low_mappings(void)
flush_tlb_all();
}
-int nx_enabled;
-
pteval_t __supported_pte_mask __read_mostly = ~(_PAGE_NX | _PAGE_GLOBAL | _PAGE_IOMAP);
EXPORT_SYMBOL_GPL(__supported_pte_mask);
next prev parent reply other threads:[~2009-03-06 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-05 15:04 [PATCH 2/2] x86: unify noexec handling Pekka Enberg
2009-03-06 14:27 ` [tip:x86/mm] " Pekka Enberg
2009-03-06 14:42 ` Ingo Molnar [this message]
2009-03-06 15:27 ` [tip:x86/mm] x86: unify noexec handling, fix Ingo Molnar
2009-03-08 9:27 ` [PATCH 2/2] x86: unify noexec handling Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-4b809e98a7f9d88e2cb9574f41efa015844c1470@git.kernel.org \
--to=mingo@elte.hu \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=penberg@cs.helsinki.fi \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.