]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita67055b2c1d4c2c1ce1ac7474172e2d19469a3c3
treead673206368782f4db7edb97bcc23ad9497cf20a
parent91ad9877b8267d5c8f25c40a50b6c57eace9af3b
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