summaryrefslogtreecommitdiffstats
path: root/kernel/trace/fprobe.c
diff options
context:
space:
mode:
authorLi Qiang <liq3ea@163.com>2022-11-04 00:49:31 +0100
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2022-11-04 00:49:31 +0100
commit4a6f316d6855a434f56dbbeba05e14c01acde8f8 (patch)
tree3b8675c2f6394755118a8858aecbb24802d873ea /kernel/trace/fprobe.c
parentftrace: Fix use-after-free for dynamic ftrace_ops (diff)
downloadlinux-4a6f316d6855a434f56dbbeba05e14c01acde8f8.tar.xz
linux-4a6f316d6855a434f56dbbeba05e14c01acde8f8.zip
kprobe: reverse kp->flags when arm_kprobe failed
In aggregate kprobe case, when arm_kprobe failed, we need set the kp->flags with KPROBE_FLAG_DISABLED again. If not, the 'kp' kprobe will been considered as enabled but it actually not enabled. Link: https://lore.kernel.org/all/20220902155820.34755-1-liq3ea@163.com/ Fixes: 12310e343755 ("kprobes: Propagate error from arm_kprobe_ftrace()") Cc: stable@vger.kernel.org Signed-off-by: Li Qiang <liq3ea@163.com> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'kernel/trace/fprobe.c')
0 files changed, 0 insertions, 0 deletions