nx-emu: fix inverted report of disable_nx
authorKees Cook <kees@ubuntu.com>
Sun, 21 Nov 2010 07:03:42 +0000 (23:03 -0800)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 28 Mar 2011 13:51:39 +0000 (06:51 -0700)
commit85c8fb5c0b9240dd392347d2d3fd8acaab3630a1
treef2e01f5ba6a8f5344de4bb5e9eb62f7ac2583de9
parenta42ce331707b0802708a18a7a7a7d8323b0475f9
nx-emu: fix inverted report of disable_nx

This nx-emu commit:
http://git.kernel.org/?p=linux/kernel/git/frob/linux-2.6-roland.git;a=commitdiff;h=b86f45c02494d4cba26caf132e8a178854e812fd
was intended to replace "exec_shield" with "!disable_nx", but in
x86_report_nx() it was not correctly inverted resulting in a backward
report to dmesg about the state of nx-emu.

Signed-off-by: Kees Cook <kees.cook@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/x86/mm/setup_nx.c