|
@@ -7,7 +7,7 @@
|
|
|
#include <asm/ptrace.h>
|
|
|
#include <asm/ftrace.h>
|
|
|
#include <asm/export.h>
|
|
|
-
|
|
|
+#include <asm/nospec-branch.h>
|
|
|
|
|
|
.code64
|
|
|
.section .entry.text, "ax"
|
|
@@ -286,8 +286,8 @@ trace:
|
|
|
* ip and parent ip are used and the list function is called when
|
|
|
* function tracing is enabled.
|
|
|
*/
|
|
|
- call *ftrace_trace_function
|
|
|
-
|
|
|
+ movq ftrace_trace_function, %r8
|
|
|
+ CALL_NOSPEC %r8
|
|
|
restore_mcount_regs
|
|
|
|
|
|
jmp fgraph_trace
|
|
@@ -329,5 +329,5 @@ GLOBAL(return_to_handler)
|
|
|
movq 8(%rsp), %rdx
|
|
|
movq (%rsp), %rax
|
|
|
addq $24, %rsp
|
|
|
- jmp *%rdi
|
|
|
+ JMP_NOSPEC %rdi
|
|
|
#endif
|