]> Git Repo - linux.git/commit
x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out
authorAndy Lutomirski <[email protected]>
Mon, 19 Nov 2018 22:45:27 +0000 (14:45 -0800)
committerIngo Molnar <[email protected]>
Tue, 20 Nov 2018 07:44:28 +0000 (08:44 +0100)
commitdae0a10593007d049ea71601357ac41d4f247ee9
tree7ce8a6b10d6c767647f121beee058e1c602af701
parent6344be608c039f3a787f1144c46fcb04c0f76561
x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out

Add X86_FEATURE_SMAP to the disabled features mask as appropriate
and use cpu_feature_enabled() in the fault code.  This lets us get
rid of a redundant IS_ENABLED(CONFIG_X86_SMAP).

Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Yu-cheng Yu <[email protected]>
Link: http://lkml.kernel.org/r/fe93332eded3d702f0b0b4cf83928d6830739ba3.1542667307.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/disabled-features.h
arch/x86/mm/fault.c
This page took 0.055895 seconds and 4 git commands to generate.