]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - arch/x86/kernel/cpu/bugs.c
x86/retbleed: Add fine grained Kconfig knobs
authorPeter Zijlstra <peterz@infradead.org>
Mon, 27 Jun 2022 22:21:17 +0000 (22:21 +0000)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 19 Jul 2022 19:20:06 +0000 (16:20 -0300)
commitcbd355e46564ee83fa194b9f0cfd7455a0680afb
tree9629cfcdf6aa40bba1b6958a57e8c229990301bd
parentf1f022299cb8b3a0a0f0bcdd055039762aee2508
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]
CVE-2022-29900
CVE-2022-29901
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
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