From: H. Peter Anvin Date: Thu, 13 Feb 2014 15:34:30 +0000 (-0800) Subject: x86, smap: Don't enable SMAP if CONFIG_X86_SMAP is disabled X-Git-Tag: v3.14-rc3~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03bbd596ac04fef47ce93a730b8f086d797c3021;p=pandora-kernel.git x86, smap: Don't enable SMAP if CONFIG_X86_SMAP is disabled If SMAP support is not compiled into the kernel, don't enable SMAP in CR4 -- in fact, we should clear it, because the kernel doesn't contain the proper STAC/CLAC instructions for SMAP support. Found by Fengguang Wu's test system. Reported-by: Fengguang Wu Link: http://lkml.kernel.org/r/20140213124550.GA30497@localhost Signed-off-by: H. Peter Anvin Cc: # v3.7+ --- Reading git-diff-tree failed