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-08-02 15:03:58 -07:00
2014-06-12 16:18:45 +02:00
2014-10-02 16:28:44 -07:00
2014-08-08 15:57:24 -07:00
2014-08-25 21:13:30 +02:00
2014-07-17 12:32:47 +02:00
2014-09-25 00:59:54 +02:00
2014-09-10 15:42:12 -07:00
2014-08-28 05:59:59 -07:00
2014-08-11 23:19:48 +02:00
2014-09-12 13:59:12 -07:00
2014-08-25 20:18:11 -04:00
2013-12-10 18:21:34 +00:00
2014-08-08 15:57:27 -07:00
2014-02-18 11:17:17 +01:00
2014-02-18 11:17:17 +01:00
2014-07-24 21:53:47 +10:00
2014-03-20 10:10:53 -04:00
2014-08-06 18:01:12 -07:00
2014-06-10 08:44:40 -07:00
2014-06-04 16:54:14 -07:00
2014-08-08 15:57:18 -07:00
2014-07-24 21:53:47 +10:00
2014-07-15 11:05:09 -04:00
2014-09-18 12:32:52 -04:00
2014-09-06 12:58:18 +02:00
2013-05-01 17:29:18 -04:00
2014-06-14 09:07:44 +02:00
2014-07-05 11:17:45 +02:00
2014-09-24 22:16:06 -04:00
2014-07-23 10:18:06 -07:00
2013-11-09 00:16:23 -05:00
2014-06-04 16:54:15 -07:00
2014-08-08 15:57:22 -07:00
2014-02-13 18:13:22 -08:00
2014-10-02 16:28:44 -07:00
2013-12-19 13:50:32 -05:00
2014-02-02 14:09:12 -08:00
2014-09-12 22:04:36 +02:00
2014-04-03 16:21:05 -07:00
2014-06-04 16:54:15 -07:00
2014-07-05 11:17:26 +02:00
2013-10-19 19:45:35 -04:00
2014-08-08 15:57:18 -07:00
2014-09-10 15:42:12 -07:00
2013-11-15 09:32:22 +09:00
2014-07-16 14:57:13 +02:00
2014-08-29 16:28:16 -07:00
2014-06-06 16:08:12 -07:00
2014-08-08 10:38:04 +02:00
2014-04-25 12:00:49 -07:00
2014-07-28 14:07:52 -04:00
2014-06-04 16:54:15 -07:00
2014-08-08 15:57:32 -07:00
2013-10-25 17:15:18 -04:00
2013-09-25 17:17:01 +01:00
2014-08-16 04:47:00 +09:30
2014-04-24 10:26:39 +02:00
2014-07-29 18:08:50 -07:00
2013-12-05 21:28:42 +08:00
2014-08-08 15:57:24 -07:00
2014-07-17 22:07:37 +02:00
2014-04-02 16:20:21 -07:00
2013-09-30 14:31:03 -07:00
2014-06-06 16:08:13 -07:00
2014-07-16 15:10:39 +02:00
2013-06-18 11:32:10 -05:00
2014-06-04 16:54:15 -07:00
2014-04-12 14:49:50 -07:00
2014-06-04 16:54:15 -07:00
2014-08-29 16:28:15 -07:00
2014-08-11 13:29:12 -07:00
2014-08-09 09:58:12 -07:00
2014-08-06 18:01:22 -07:00
2013-07-14 19:36:59 -04:00
2014-05-22 11:36:10 +02:00
2014-06-04 16:54:15 -07:00
2014-08-08 15:57:32 -07:00
2014-07-18 12:13:38 -07:00
2014-07-01 12:16:24 -07:00
2014-08-06 18:01:19 -07:00
2013-12-10 18:25:28 +00:00
2014-07-17 09:35:17 -04:00
2013-09-11 15:58:27 -07:00
2013-11-19 16:39:05 -05:00
2014-08-08 15:57:18 -07:00
2014-07-07 10:12:56 -07:00
2014-06-21 00:15:26 -04:00
2014-07-23 10:18:05 -07:00
2013-08-30 23:44:11 -07:00
2014-02-24 14:47:15 -08:00
2014-08-08 15:57:22 -07:00
2014-06-04 16:54:16 -07:00
2014-06-06 16:08:16 -07:00
2014-07-29 18:08:50 -07:00
2014-08-08 15:57:24 -07:00
2014-05-20 10:59:32 -04:00
2014-08-04 10:09:27 -07:00