From: H. Peter Anvin Date: Fri, 21 Sep 2012 19:43:12 +0000 (-0700) Subject: x86, smap: Add STAC and CLAC instructions to control user space access X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~68^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63bcff2a307b9bcc712a8251eb27df8b2e117967;p=pandora-kernel.git x86, smap: Add STAC and CLAC instructions to control user space access When Supervisor Mode Access Prevention (SMAP) is enabled, access to userspace from the kernel is controlled by the AC flag. To make the performance of manipulating that flag acceptable, there are two new instructions, STAC and CLAC, to set and clear it. This patch adds those instructions, via alternative(), when the SMAP feature is enabled. It also adds X86_EFLAGS_AC unconditionally to the SYSCALL entry mask; there is simply no reason to make that one conditional. Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/r/1348256595-29119-9-git-send-email-hpa@linux.intel.com --- Reading git-diff-tree failed