summaryrefslogtreecommitdiff
path: root/arch/parisc/kernel
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2024-10-02 14:32:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 19:54:02 +0100
commit082dc185b8619c6ec8d05ed58e36c4a5c9b315ba (patch)
treebc7f0f32f361477163280e7e2f8695b7a2c67d42 /arch/parisc/kernel
parentc923c437ed69d44ee3753f9cf47d48d2a53d26f7 (diff)
downloadlinux-082dc185b8619c6ec8d05ed58e36c4a5c9b315ba.tar.gz
linux-082dc185b8619c6ec8d05ed58e36c4a5c9b315ba.tar.bz2
linux-082dc185b8619c6ec8d05ed58e36c4a5c9b315ba.zip
parisc/ftrace: Fix function graph tracing disablement
commit a5f05a138a8cac035bf9da9b6ed0e532bc7942c8 upstream. Due to an apparent copy-paste bug, the parisc implementation of ftrace_disable_ftrace_graph_caller() doesn't actually do anything. It enables the (already-enabled) static key rather than disabling it. The result is that after function graph tracing has been "disabled", any subsequent (non-graph) function tracing will inadvertently also enable the slow fgraph return address hijacking. Fixes: 98f2926171ae ("parisc/ftrace: use static key to enable/disable function graph tracer") Cc: stable@vger.kernel.org # 5.16+ Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/parisc/kernel')
-rw-r--r--arch/parisc/kernel/ftrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/parisc/kernel/ftrace.c b/arch/parisc/kernel/ftrace.c
index ac7253891d5e..2e75e9b85318 100644
--- a/arch/parisc/kernel/ftrace.c
+++ b/arch/parisc/kernel/ftrace.c
@@ -87,7 +87,7 @@ int ftrace_enable_ftrace_graph_caller(void)
int ftrace_disable_ftrace_graph_caller(void)
{
- static_key_enable(&ftrace_graph_enable.key);
+ static_key_disable(&ftrace_graph_enable.key);
return 0;
}
#endif