x86/retbleed: Add fine grained Kconfig knobs
authorPeter Zijlstra <peterz@infradead.org>
Mon, 27 Jun 2022 22:21:17 +0000 (22:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jul 2022 10:54:10 +0000 (12:54 +0200)
commitcc3011cdbe5f834b0e9873b841d1be02be9a1524
tree59b6f227f2a13fa8a96519a023f52b4e59cd1733
parent12a13570054fcbf347aaf37824ea43915f9f739c
x86/retbleed: Add fine grained Kconfig knobs

commit f43b9876e857c739d407bc56df288b0ebe1a9164 upstream.

Do fine-grained Kconfig for all the various retbleed parts.

NOTE: if your compiler doesn't support return thunks this will
silently 'upgrade' your mitigation to IBPB, you might not like this.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
[cascardo: there is no CONFIG_OBJTOOL]
[cascardo: objtool calling and option parsing has changed]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 files changed:
Makefile
arch/x86/Kconfig
arch/x86/entry/calling.h
arch/x86/include/asm/disabled-features.h
arch/x86/include/asm/linkage.h
arch/x86/include/asm/nospec-branch.h
arch/x86/include/asm/static_call.h
arch/x86/kernel/alternative.c
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/static_call.c
arch/x86/kvm/emulate.c
arch/x86/lib/retpoline.S
scripts/Makefile.build
scripts/link-vmlinux.sh
security/Kconfig
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h