diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-01-21 15:29:20 -0600 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-01-26 11:11:59 -0600 |
commit | 31a7424bc58063a8e0466c3c10f31a52ec2be4f6 (patch) | |
tree | e7ba59289de541468c5f9fd5331a3d8b75107a06 /arch/x86/kernel/ftrace_64.S | |
parent | 34ca59e109bdf69704c33b8eeffaa4c9f71076e5 (diff) | |
download | linux-stable-31a7424bc58063a8e0466c3c10f31a52ec2be4f6.tar.gz linux-stable-31a7424bc58063a8e0466c3c10f31a52ec2be4f6.tar.bz2 linux-stable-31a7424bc58063a8e0466c3c10f31a52ec2be4f6.zip |
objtool: Support retpoline jump detection for vmlinux.o
Objtool converts direct retpoline jumps to type INSN_JUMP_DYNAMIC, since
that's what they are semantically.
That conversion doesn't work in vmlinux.o validation because the
indirect thunk function is present in the object, so the intra-object
jump check succeeds before the retpoline jump check gets a chance.
Rearrange the checks: check for a retpoline jump before checking for an
intra-object jump.
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/4302893513770dde68ddc22a9d6a2a04aca491dd.1611263461.git.jpoimboe@redhat.com
Diffstat (limited to 'arch/x86/kernel/ftrace_64.S')
0 files changed, 0 insertions, 0 deletions