Skip to contentSkip to conversation

probes: Fixes for 6.5-rc1

GIT PULL Merged Masami Hiramatsu (Google) 2 participants 2 messages Jul 11, 2023 – Jul 12, 2023

lore
Share & tools
lore
#0 lore raw

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,

Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
merge bot Merged
#1 lore raw
The pull request you sent on Tue, 11 Jul 2023 23:47:28 +0900:

The pull request you sent on Tue, 11 Jul 2023 23:47:28 +0900:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git probes-fixes-v6.5-rc1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/9a3236ce48406c3190dfa06137636525001b32f5

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html