Commit 7be48f38 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Juerg Haefliger

x86/speculation, objtool: Annotate indirect calls/jumps for objtool on 32bit

BugLink: http://bugs.launchpad.net/bugs/1758856

In 9e0e3c51 ("x86/speculation, objtool: Annotate indirect calls/jumps
for objtool") we added annotations for CALL_NOSPEC/JMP_NOSPEC on x86 64bit.
We did not annotate the 32bit path.  Annotate it similarly.

[apw@canonical.com: backported to xenial.]
Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
parent d79aa751
...@@ -159,7 +159,10 @@ ...@@ -159,7 +159,10 @@
* otherwise we'll run out of registers. We don't care about CET * otherwise we'll run out of registers. We don't care about CET
* here, anyway. * here, anyway.
*/ */
# define CALL_NOSPEC ALTERNATIVE("call *%[thunk_target]\n", \ # define CALL_NOSPEC \
ALTERNATIVE( \
ANNOTATE_RETPOLINE_SAFE \
"call *%[thunk_target]\n", \
" jmp 904f;\n" \ " jmp 904f;\n" \
" .align 16\n" \ " .align 16\n" \
"901: call 903f;\n" \ "901: call 903f;\n" \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment