diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-12-30 16:00:35 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-12-31 13:11:31 +0100 |
commit | 05cbaa2853cdfc255fdd04e65a82bfe9208c4e52 (patch) | |
tree | 83a6b8ea45fe181e623aa6c532cb9176400199de /kernel/delayacct.c | |
parent | 48b5ba9cc98d676712da29d9931f1c88e5185ff2 (diff) |
perf: Fix NULL deref in inheritance code
Liming found a NULL deref when a task has a perf context but no
counters when it forks.
This can occur in two cases, a race during construction where
the fork hits after installing the context but before the first
counter gets inserted, or more reproducably, a fork after the
last counter is closed (which leaves the context around).
Reported-by: Wang Liming <liming.wang@windriver.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
CC: <stable@kernel.org>
LKML-Reference: <1262185684.7135.222.camel@laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/delayacct.c')
0 files changed, 0 insertions, 0 deletions