diff options
author | Borislav Petkov <bp@suse.de> | 2022-01-27 12:56:24 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-04 10:17:00 +0200 |
commit | 385d2ae0a1b5efacb30e13a0f0e521490441d9bb (patch) | |
tree | d5c0f4875a70a93e471db453c204a742fb286b23 /arch | |
parent | dbae0a934f09208075ec3e73491bd0844e1397b3 (diff) | |
download | linux-385d2ae0a1b5efacb30e13a0f0e521490441d9bb.tar.bz2 |
x86/cpu: Remove "nosmep"
There should be no need to disable SMEP anymore.
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220127115626.14179-5-bp@alien8.de
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 747df070fb5e..5791f692d67e 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -369,13 +369,6 @@ static inline void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) } #endif -static __init int setup_disable_smep(char *arg) -{ - setup_clear_cpu_cap(X86_FEATURE_SMEP); - return 1; -} -__setup("nosmep", setup_disable_smep); - static __always_inline void setup_smep(struct cpuinfo_x86 *c) { if (cpu_has(c, X86_FEATURE_SMEP)) |