linux-stable/tools/objtool/arch/x86
Josh Poimboeuf 7631376b2d objtool: Fix retpoline detection in asm code
[ Upstream commit 1f9a1b7494 ]

The JMP_NOSPEC macro branches to __x86_retpoline_*() rather than the
__x86_indirect_thunk_*() wrappers used by C code.  Detect jumps to
__x86_retpoline_*() as retpoline dynamic jumps.

Presumably this doesn't trigger a user-visible bug.  I only found it
when testing vmlinux.o validation.

Fixes: 39b735332c ("objtool: Detect jumps to retpoline thunks")
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/31f5833e2e4f01e3d755889ac77e3661e906c09f.1611263461.git.jpoimboe@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:38:00 +01:00
..
include objtool: Move macros describing structures to arch-dependent code 2020-09-10 10:43:13 -05:00
Build objtool: Abstract alternative special case handling 2020-09-10 10:43:13 -05:00
decode.c objtool: Decode unwind hint register depending on architecture 2020-09-10 10:43:13 -05:00
special.c objtool: Fix retpoline detection in asm code 2021-03-04 11:38:00 +01:00