x86/retbleed: Add fine grained Kconfig knobs
authorPeter Zijlstra <peterz@infradead.org>
Mon, 27 Jun 2022 22:21:17 +0000 (22:21 +0000)
committerBorislav Petkov <bp@suse.de>
Wed, 29 Jun 2022 15:43:41 +0000 (17:43 +0200)
commitf43b9876e857c739d407bc56df288b0ebe1a9164
tree22fcf2716b615556869c460a71ed3fd9b1393bd6
parent26aae8ccbc1972233afd08fb3f368947c0314265
x86/retbleed: Add fine grained Kconfig knobs

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>
19 files changed:
arch/x86/Kconfig
arch/x86/Makefile
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.lib
scripts/Makefile.vmlinux_o
security/Kconfig
tools/objtool/builtin-check.c
tools/objtool/check.c
tools/objtool/include/objtool/builtin.h