summaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/probes
diff options
context:
space:
mode:
authorZe Gao <zegao2021@gmail.com>2023-05-17 05:45:09 +0200
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2023-05-18 00:08:01 +0200
commit571a2a50a8fc546145ffd3bf673547e9fe128ed2 (patch)
treec45cc84354756fe582989eb549e59a9441e9a476 /arch/riscv/kernel/probes
parentfprobe: add recursion detection in fprobe_exit_handler (diff)
downloadlinux-571a2a50a8fc546145ffd3bf673547e9fe128ed2.tar.xz
linux-571a2a50a8fc546145ffd3bf673547e9fe128ed2.zip
rethook, fprobe: do not trace rethook related functions
These functions are already marked as NOKPROBE to prevent recursion and we have the same reason to blacklist them if rethook is used with fprobe, since they are beyond the recursion-free region ftrace can guard. Link: https://lore.kernel.org/all/20230517034510.15639-5-zegao@tencent.com/ Fixes: f3a112c0c40d ("x86,rethook,kprobes: Replace kretprobe with rethook on x86") Signed-off-by: Ze Gao <zegao@tencent.com> Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'arch/riscv/kernel/probes')
-rw-r--r--arch/riscv/kernel/probes/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/kernel/probes/Makefile b/arch/riscv/kernel/probes/Makefile
index c40139e9ca47..8265ff497977 100644
--- a/arch/riscv/kernel/probes/Makefile
+++ b/arch/riscv/kernel/probes/Makefile
@@ -4,3 +4,5 @@ obj-$(CONFIG_RETHOOK) += rethook.o rethook_trampoline.o
obj-$(CONFIG_KPROBES_ON_FTRACE) += ftrace.o
obj-$(CONFIG_UPROBES) += uprobes.o decode-insn.o simulate-insn.o
CFLAGS_REMOVE_simulate-insn.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_rethook.o = $(CC_FLAGS_FTRACE)
+CFLAGS_REMOVE_rethook_trampoline.o = $(CC_FLAGS_FTRACE)