Skip to content

tracing: More fixes for v7.2

Steven Rostedt lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tracing/user_events: Fix use-after-free in user_event_mm_dup()kernel/trace/trace_events_user.c+32 -70 replies
2/2tracing/synthetic: Free type string on error pathkernel/trace/trace_events_synth.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [for-linus][PATCH 0/2] tracing: More fixes for v7.2

tracing fixes for 7.2:

- Fix use-after-free in user_event_mm_dup()

When the enabler is removed from the link list, it is freed immediately. But it is protected via RCU and needs to be freed after an RCU grace period. Use queue_rcu_work() so that the event_mutex can also be taken as user_event_put() takes the mutex on the last reference is released.

- Free type string in error path of parse_synth_field()

There's an error path in parse_synth_field() where the allocated type string is not freed.

git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace.git
trace/fixes

Head SHA1: 05074bb90af94f2acbbc8f8ffaa507f914c273c8

Michael Bommarito (1):
tracing/user_events: Fix use-after-free in user_event_mm_dup()

Yu Peng (1):
tracing/synthetic: Free type string on error path

----

 kernel/trace/trace_events_synth.c |  4 +++-
 kernel/trace/trace_events_user.c  | 39 ++++++++++++++++++++++++++++++++-------
 2 files changed, 35 insertions(+), 8 deletions(-)