x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"
authorBorislav Petkov <bp@suse.de>
Thu, 27 Jan 2022 11:56:23 +0000 (12:56 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Apr 2022 08:16:57 +0000 (10:16 +0200)
commitdbae0a934f09208075ec3e73491bd0844e1397b3
treead673206368782f4db7edb97bcc23ad9497cf20a
parentc949110ef4e31cb5d3387bd8273fd5de66b5227b
x86/cpu: Remove CONFIG_X86_SMAP and "nosmap"

Those were added as part of the SMAP enablement but SMAP is currently
an integral part of kernel proper and there's no need to disable it
anymore.

Rip out that functionality. Leave --uaccess default on for objtool as
this is what objtool should do by default anyway.

If still needed - clearcpuid=smap.

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-4-bp@alien8.de
Documentation/admin-guide/kernel-parameters.txt
Documentation/x86/cpuinfo.rst
arch/x86/Kconfig
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/smap.h
arch/x86/kernel/cpu/common.c
scripts/Makefile.build
scripts/link-vmlinux.sh
tools/arch/x86/include/asm/disabled-features.h