]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf: overflow/perf_count_sw_cpu_clock crashes recent kernels
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 3 Aug 2011 11:49:31 +0000 (13:49 +0200)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:00 +0000 (15:35 -0400)
commit5bfc315baf02e3f3093c48af4ce7c798ea9778aa
treeec52d8063afc7c8c0be58ff655999d67ff2b6aaf
parent2d5bea3e719eb7dc957f168155337578acded206
perf: overflow/perf_count_sw_cpu_clock crashes recent kernels

The below patch is for -stable only, upstream has a much larger patch
that contains the below hunk in commit a8b0ca17b80e92faab46ee7179ba9e99ccb61233

Vince found that under certain circumstances software event overflows
go wrong and deadlock. Avoid trying to delete a timer from the timer
callback.

Reported-by: Vince Weaver <vweaver1@eecs.utk.edu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[PG: backport from 2.6.32 queue, see https://lkml.org/lkml/2011/8/3/125 ]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
kernel/perf_event.c