]> www.infradead.org Git - users/dwmw2/linux.git/commit
objtool: Correctly handle retpoline thunk calls
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Mar 2021 15:12:03 +0000 (16:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jul 2022 09:26:13 +0000 (11:26 +0200)
commit6e95f8caffb3f10e48b100c47e753ca83042fe6f
tree4f32a1549edee9b9a648d2be678f2c7bae9ec782
parent28ca351296742a9e7506a548acaf7ea3bc9feef0
objtool: Correctly handle retpoline thunk calls

commit bcb1b6ff39da7e8a6a986eb08126fba2b5e13c32 upstream.

Just like JMP handling, convert a direct CALL to a retpoline thunk
into a retpoline safe indirect CALL.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lkml.kernel.org/r/20210326151259.567568238@infradead.org
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/objtool/check.c