perf: Fix software event overflow, CVE-2011-2918
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 26 Aug 2011 08:59:37 +0000 (09:59 +0100)
committerHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Mon, 29 Aug 2011 19:23:11 +0000 (16:23 -0300)
commitd7971d81fed601028ee003095b0790c7c669a703
tree12fddcdf83d836d4963d4ba76bd61e3b0dc3f9d4
parenta813c1f0f54b99adf1e7dc391c575c6dae38fd7c
perf: Fix software event overflow, CVE-2011-2918

BugLink: http://bugs.launchpad.net/bugs/834121
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>
CVE-2011-2918
backported from commit 462fee3af72df0de7b60b96c525ffe8baf4db0f0 stable-3.0.y
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
kernel/perf_event.c