x86, mm: Report state of NX protections during boot
authorKees Cook <kees.cook@canonical.com>
Fri, 13 Nov 2009 23:28:17 +0000 (15:28 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 16 Nov 2009 21:44:59 +0000 (13:44 -0800)
commit4b0f3b81eb33ef18283aa71440cccfede1753ae0
tree024e05ffc845d0942dddeb8f0b760815ab0b3373
parent4763ed4d45522b876c97e1f7f4b659d211f75571
x86, mm: Report state of NX protections during boot

It is possible for x86_64 systems to lack the NX bit either due to the
hardware lacking support or the BIOS having turned off the CPU capability,
so NX status should be reported.  Additionally, anyone booting NX-capable
CPUs in 32bit mode without PAE will lack NX functionality, so this change
provides feedback for that case as well.

Signed-off-by: Kees Cook <kees.cook@canonical.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <1258154897-6770-6-git-send-email-hpa@zytor.com>
arch/x86/include/asm/proto.h
arch/x86/kernel/setup.c
arch/x86/mm/init.c
arch/x86/mm/setup_nx.c