mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 17:41:09 +00:00
riscv: Add ftrace_stub_graph
Commit 883bbbffa5
("ftrace,kcfi: Separate ftrace_stub() and
ftrace_stub_graph()") added a separate ftrace_stub_graph function for
CFI_CLANG. Add the stub to fix FUNCTION_GRAPH_TRACER compatibility
with CFI.
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20230710183544.999540-11-samitolvanen@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
5f59c6855b
commit
f3a0c23f25
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,10 @@ SYM_TYPED_FUNC_START(ftrace_stub)
|
||||||
SYM_FUNC_END(ftrace_stub)
|
SYM_FUNC_END(ftrace_stub)
|
||||||
|
|
||||||
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
||||||
|
SYM_TYPED_FUNC_START(ftrace_stub_graph)
|
||||||
|
ret
|
||||||
|
SYM_FUNC_END(ftrace_stub_graph)
|
||||||
|
|
||||||
ENTRY(return_to_handler)
|
ENTRY(return_to_handler)
|
||||||
/*
|
/*
|
||||||
* On implementing the frame point test, the ideal way is to compare the
|
* On implementing the frame point test, the ideal way is to compare the
|
||||||
|
|
Loading…
Reference in a new issue