diff options
author | Peter Zijlstra <peterz@infradead.org> | 2021-10-26 15:01:43 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-29 00:25:28 +0300 |
commit | 2f0cbb2a8e5bbf101e9de118fc0eb168111a5e1e (patch) | |
tree | ea3435712f5e8b8a09d1a06e38da15d9b7f126bf /lib/debugobjects.c | |
parent | 7508500900814d14e2e085cdc4e28142721abbdf (diff) | |
download | linux-2f0cbb2a8e5bbf101e9de118fc0eb168111a5e1e.tar.xz |
x86/alternative: Handle Jcc __x86_indirect_thunk_\reg
Handle the rare cases where the compiler (clang) does an indirect
conditional tail-call using:
Jcc __x86_indirect_thunk_\reg
For the !RETPOLINE case this can be rewritten to fit the original (6
byte) instruction like:
Jncc.d8 1f
JMP *%\reg
NOP
1:
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Tested-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/r/20211026120310.296470217@infradead.org
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions