Skip to content
Commit 78d77df7 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarFernando Luis Vázquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1367476850.5660.2.camel@nexus
Cc: <stable@vger.kernel.org> v3.9
parent cc456c4e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment