diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2013-05-02 10:33:46 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2013-05-02 11:27:35 -0700 |
commit | 78d77df71510a96e042de7ba6dbd7998103642cb (patch) | |
tree | 9b948900c1493a5f1711b59235db842bc40adfb1 /arch/x86/include | |
parent | cc456c4e7cac3837a86aaa7ca3cb9f488d44d196 (diff) | |
download | linux-3.10-78d77df71510a96e042de7ba6dbd7998103642cb.tar.gz linux-3.10-78d77df71510a96e042de7ba6dbd7998103642cb.tar.bz2 linux-3.10-78d77df71510a96e042de7ba6dbd7998103642cb.zip |
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 <fernando@oss.ntt.co.jp>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1367476850.5660.2.camel@nexus
Cc: <stable@vger.kernel.org> v3.9
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions