]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter: fix counter freeing logic
authorIngo Molnar <mingo@elte.hu>
Sun, 17 May 2009 09:08:41 +0000 (11:08 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 19 May 2009 22:22:24 +0000 (00:22 +0200)
commit5ba85e28c6e0388c226f71491835895b97f94399
tree32ab4cb3cca6c61a2d6cf351bb8f732045464e28
parent280d34ddda670516352ae8021c31cf92e551a001
perf_counter: fix counter freeing logic

Fix counter lifetime bugs which explain the crashes reported by
Marcelo Tosatti and Arnaldo Carvalho de Melo.

The new rule is: flushing + freeing is only done for a task's
own counters, never for other tasks.

[ Impact: fix crashes/lockups with inherited counters ]

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reported-by: Marcelo Tosatti <mtosatti@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/exit.c
kernel/perf_counter.c