[lkml]   [2019]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] perf: Fix race between close() and fork()
Peter Zijlstra <> writes:

> Solve it by using the fact that detached events still have a reference
> count on their (previous) context. With this perf_event_free_task()
> can detect when events have escaped and wait for their destruction.
> Cc: Mark Rutland <>
> Fixes: 82d94856fa22 ("perf/core: Fix lock inversion between perf,trace,cpuhp")
> Reported-by:
> Debugged-by: Alexander Shishkin <>
> Signed-off-by: Peter Zijlstra (Intel) <>

Reviewed-by: Alexander Shishkin <>


 \ /
  Last update: 2019-06-25 14:21    [W:0.091 / U:0.344 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site