Peter Zijlstra 6c72e3501d perf: fix perf bug in fork()
Oleg noticed that a cleanup by Sylvain actually uncovered a bug; by
calling perf_event_free_task() when failing sched_fork() we will not yet
have done the memset() on ->perf_event_ctxp[] and will therefore try and
'free' the inherited contexts, which are still in use by the parent
process.  This is bad..

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Reported-by: Oleg Nesterov <oleg@redhat.com>
Reported-by: Sylvain 'ythier' Hitier <sylvain.hitier@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-10-02 16:28:44 -07:00
..
2014-06-12 16:18:45 +02:00
2014-10-02 16:28:44 -07:00
2014-08-25 21:13:30 +02:00
2014-08-08 15:57:18 -07:00
2014-09-18 12:32:52 -04:00
2014-07-05 11:17:45 +02:00
2014-10-02 16:28:44 -07:00
2014-09-10 15:42:12 -07:00
2014-08-08 15:57:32 -07:00
2014-08-08 15:57:24 -07:00
2014-07-17 22:07:37 +02:00
2013-09-11 15:58:27 -07:00
2014-08-08 15:57:22 -07:00
2014-08-08 15:57:24 -07:00