]> www.infradead.org Git - users/hch/misc.git/commit
Merge tag 'probes-fixes-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Apr 2025 19:51:34 +0000 (12:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Apr 2025 19:51:34 +0000 (12:51 -0700)
commitbec7dcbc242c6c087cede1a6fdfaeb5d6eaf25bf
treeb87ae6b5358413066c099e83b2d44609195a14fe
parente37f72b3b417ed793cf23a523a4d96d42c9824e5
parenta3dc2983ca7b90fd35f978502de6d4664d965cfb
Merge tag 'probes-fixes-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull probes fixes from Masami Hiramatsu:

 - fprobe: 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: 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.

* tag 'probes-fixes-v6.14' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
  tracing: fprobe: Cleanup fprobe hash when module unloading
  tracing: fprobe events: Fix possible UAF on modules
  tracing: fprobe: Fix to lock module while registering fprobe
kernel/trace/trace_fprobe.c