From: Fenghua Yu Date: Wed, 18 May 2011 01:44:26 +0000 (-0700) Subject: x86, cpufeature: Add cpufeature flag for SMEP X-Git-Tag: v3.0-rc1~393^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0281a257f370b09c410e466571858b4e12869c9;p=pandora-kernel.git x86, cpufeature: Add cpufeature flag for SMEP Add support for newly documented SMEP (Supervisor Mode Execution Protection) CPU feature flag. SMEP prevents the CPU in kernel-mode to jump to an executable page that has the user flag set in the PTE. This prevents the kernel from executing user-space code accidentally or maliciously, so it for example prevents kernel exploits from jumping to specially prepared user-mode shell code. [ hpa: added better description by Ingo Molnar ] Signed-off-by: Fenghua Yu LKML-Reference: <1305683069-25394-2-git-send-email-fenghua.yu@intel.com> Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed