riscv: Add ftrace_stub_graph
authorSami Tolvanen <samitolvanen@google.com>
Mon, 10 Jul 2023 18:35:48 +0000 (18:35 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 23 Aug 2023 21:16:38 +0000 (14:16 -0700)
commitf3a0c23f2539a69792df4586485225fda5fab988
tree13b6a3e61ca72c20c861c8cb1a64e9a61d0b1636
parent5f59c6855bad1809a4f85ce4db412f9ede45a4a0
riscv: Add ftrace_stub_graph

Commit 883bbbffa5a4 ("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>
arch/riscv/kernel/mcount.S