probes: Fixes for v6.14
Hi Linus,
Probes fixes for v6.14:
- fprobe: Fix to remove fprobe_hlist_node when module unloading
When a fprobe target module is removed, the fprobe_hlist_node should be removed from the fprobe's hash table to prevent reusing accidentally if another module is loaded at the same address.
- fprobe: Fix to lock module while registering fprobe
The module containing the function to be probeed is locked using a
reference counter until the fprobe registration is complete, which prevents use after free.
- fprobe-events: Fix possible UAF on modules
Basically as same as above, but in the fprobe-events layer we also need to get module reference counter when we find the tracepoint in the module.
Please pull the latest probes-fixes-v6.14 tree, which can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
probes-fixes-v6.14
Tag SHA1: bf8e826e269fd4454c4c7df4d4d662b99466052f Head SHA1: a3dc2983ca7b90fd35f978502de6d4664d965cfb
Masami Hiramatsu (Google) (3):
tracing: fprobe: Fix to lock module while registering fprobe
tracing: fprobe events: Fix possible UAF on modules
tracing: fprobe: Cleanup fprobe hash when module unloading
----
kernel/trace/fprobe.c | 170 ++++++++++++++++++++++++++++++++++++++------ kernel/trace/trace_fprobe.c | 26 ++++--- 2 files changed, 166 insertions(+), 30 deletions(-)
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>
The pull request you sent on Tue, 8 Apr 2025 12:00:47 +0900:
The pull request you sent on Tue, 8 Apr 2025 12:00:47 +0900:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.gitprobes-fixes-v6.14
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/bec7dcbc242c6c087cede1a6fdfaeb5d6eaf25bf
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html