]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbac2fe0969ab12052018db27bd34f7199378c32b
tree6ec59d41c4840844031c5030c6fbbd4cdd40819d
parenta8f24666a22ee1ca1ad2d5d3a90ace8e5bd703f0
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