objtool: Update Retpoline validation
authorPeter Zijlstra <peterz@infradead.org>
Tue, 14 Jun 2022 21:15:59 +0000 (23:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Jul 2022 10:54:04 +0000 (12:54 +0200)
commite894b7817e08a588f6046f3f7e20c05dd9c6e16f
tree330a7652f94ee891e10720b9379cf55727e88018
parenta1d912d7ac04d6a010c2b3a637a244e088d7f5bc
objtool: Update Retpoline validation

commit 9bb2ec608a209018080ca262f771e6a9ff203b6f upstream.

Update retpoline validation with the new CONFIG_RETPOLINE requirement of
not having bare naked RET instructions.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
[cascardo: conflict fixup at arch/x86/xen/xen-head.S]
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/nospec-branch.h
arch/x86/mm/mem_encrypt_boot.S
arch/x86/xen/xen-head.S
tools/objtool/check.c