From: H. Peter Anvin Date: Thu, 2 May 2013 17:33:46 +0000 (-0700) Subject: x86-64, init: Do not set NX bits on non-NX capable hardware X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~60^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78d77df71510a96e042de7ba6dbd7998103642cb;p=pandora-kernel.git x86-64, init: Do not set NX bits on non-NX capable hardware During early init, we would incorrectly set the NX bit even if the NX feature was not supported. Instead, only set this bit if NX is actually available and enabled. We already do very early detection of the NX bit to enable it in EFER, this simply extends this detection to the early page table mask. Reported-by: Fernando Luis Vázquez Cao Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/r/1367476850.5660.2.camel@nexus Cc: v3.9 --- Reading git-diff-tree failed