OSDN Git Service

objtool: Correctly handle retpoline thunk calls
authorPeter Zijlstra <peterz@infradead.org>
Fri, 26 Mar 2021 15:12:03 +0000 (16:12 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 2 Apr 2021 10:42:54 +0000 (12:42 +0200)
commitbcb1b6ff39da7e8a6a986eb08126fba2b5e13c32
tree8dde0d202326af69b041138399e562d72e2bae5f
parent119251855f9adf9421cb5eb409933092141ab2c7
objtool: Correctly handle retpoline thunk calls

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
tools/objtool/check.c