x86, smap: Turn on Supervisor Mode Access Prevention
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:43:13 +0000 (12:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:45:27 +0000 (12:45 -0700)
commit52b6179ac87d33c2eeaff5292786a10fe98cff64
tree6ec59d41c4840844031c5030c6fbbd4cdd40819d
parent63bcff2a307b9bcc712a8251eb27df8b2e117967
x86, smap: Turn on Supervisor Mode Access Prevention

If Supervisor Mode Access Prevention is available and not disabled by
the user, turn it on.  Also fix the expansion of SMEP (Supervisor Mode
Execution Prevention.)

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1348256595-29119-10-git-send-email-hpa@linux.intel.com
Documentation/kernel-parameters.txt
arch/x86/kernel/cpu/common.c