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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
12a1357005
commit
cc3011cdbe
@@ -120,7 +120,7 @@ objtool_link()
|
||||
|
||||
if [ -n "${CONFIG_VMLINUX_VALIDATION}" ]; then
|
||||
objtoolopt="${objtoolopt} --noinstr"
|
||||
if is_enabled CONFIG_RETPOLINE; then
|
||||
if is_enabled CONFIG_CPU_UNRET_ENTRY; then
|
||||
objtoolopt="${objtoolopt} --unret"
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user