]> 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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Aug 2011 17:23:22 +0000 (10:23 -0700)
commitbb30b1915be745fa2ef499580ac5a74e8e50e7b9
treec3971ef577d3f90c3eb448665b0025a02a5473af
parent3d247615d6b54f39e32b9b27a148e4a88dd3b9ca
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>
kernel/perf_event.c