[PATCH 03/13] x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out

2018-11-19 Thread Andy Lutomirski
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 --- arch/x86/include/asm/disabled-features.h | 8 +++- arch/x86/mm/fault.c

[PATCH 03/13] x86/cpufeatures, x86/fault: Mark SMAP as disabled when configured out

2018-11-19 Thread Andy Lutomirski
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 --- arch/x86/include/asm/disabled-features.h | 8 +++- arch/x86/mm/fault.c