[PATCH 0/6] kprobes: jump label: Cleanup with guard and __free

From: Masami Hiramatsu (Google)
Date: Fri Jan 03 2025 - 18:01:47 EST


Hi,

Here is a series of patches to fix and cleanup probe events in ftrace with __free().

Thanks,

---

Masami Hiramatsu (Google) (6):
tracing/kprobes: Fix to free objects when failed to copy a symbol
Provide __free(argv) for argv_split() users
tracing: Use __free() for argv in dynevent
tracing: Use __free() in trace_probe for cleanup
tracing: Use __free() for kprobe events to cleanup
tracing/kprobes: Simplify __trace_kprobe_create() by removing gotos


include/linux/string.h | 2 +
kernel/trace/trace_dynevent.c | 47 ++++++----------
kernel/trace/trace_kprobe.c | 123 +++++++++++++++++++----------------------
kernel/trace/trace_probe.c | 52 ++++++-----------
4 files changed, 97 insertions(+), 127 deletions(-)

--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>