From: Peter Zijlstra Date: Thu, 3 Jun 2010 09:21:20 +0000 (+0200) Subject: perf: Fix crash in swevents X-Git-Tag: v2.6.35-rc2~47^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6df8d5ab87a246942d138321e1721edbb69f6e1;p=pandora-kernel.git perf: Fix crash in swevents Frederic reported that because swevents handling doesn't disable IRQs anymore, we can get a recursion of perf_adjust_period(), once from overflow handling and once from the tick. If both call ->disable, we get a double hlist_del_rcu() and trigger a LIST_POISON2 dereference. Since we don't actually need to stop/start a swevent to re-programm the hardware (lack of hardware to program), simply nop out these callbacks for the swevent pmu. Reported-by: Frederic Weisbecker Signed-off-by: Peter Zijlstra LKML-Reference: <1275557609.27810.35218.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed