[GIT PULL] probes: Fixes for 6.5-rc1
From: Google
Date: Tue Jul 11 2023 - 10:47:41 EST
Hi Linus,
Probes fixes and clean ups for v6.5-rc1:
- Fix fprobe's rethook release timing issue(1). Release rethook after
ftrace_ops is unregistered so that the rethook is not accessed after
free.
- Fix fprobe's rethook access timing issue(2). Stop rethook before
ftrace_ops is unregistered so that the rethook is NOT keep using
after exiting the unregister_fprobe().
- Fix eprobe cleanup logic. If it attaches to multiple events and failes
to enable one of them, rollback all enabled events correctly.
- Fix fprobe to unlock ftrace recursion lock correctly when it missed
by another running kprobe.
- Cleanup kprobe to remove unnecessary NULL.
- Cleanup kprobe to remove unnecessary 0 initializations.
Please pull the latest probes-fixes-v6.5-rc1 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v6.5-rc1
Tag SHA1: 18caf0b93d8c36dbef8de1332b50ea3a6defd19f
Head SHA1: 195b9cb5b288fec1c871ef89f78cc9a7461aad3a
Jiri Olsa (1):
fprobe: Release rethook after the ftrace_ops is unregistered
Li zeming (2):
kprobes: Remove unnecessary ‘NULL’ values from correct_ret_addr
kernel: kprobes: Remove unnecessary ‘0’ values
Masami Hiramatsu (Google) (1):
fprobe: Ensure running fprobe_exit_handler() finished before calling rethook_free()
Tzvetomir Stoyanov (VMware) (1):
kernel/trace: Fix cleanup logic of enable_trace_eprobe
Ze Gao (1):
fprobe: add unlock to match a succeeded ftrace_test_recursion_trylock
----
include/linux/rethook.h | 1 +
kernel/kprobes.c | 8 ++++----
kernel/trace/fprobe.c | 15 +++++++--------
kernel/trace/rethook.c | 13 +++++++++++++
kernel/trace/trace_eprobe.c | 18 ++++++++++++++++--
5 files changed, 41 insertions(+), 14 deletions(-)
Thank you,
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>