From: Peter Zijlstra Date: Wed, 25 Feb 2015 14:56:04 +0000 (+0100) Subject: perf: Fix racy group access X-Git-Tag: omap-for-v4.2/o2_dc~146^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccd41c86ad4d464d0ed4e48d80759ff85c2115b0;p=pandora-kernel.git perf: Fix racy group access While looking at some fuzzer output I noticed that we do not hold any locks on leader->ctx and therefore the sibling_list iteration is unsafe. Acquire the relevant ctx->mutex before calling into the pmu specific code. Signed-off-by: Peter Zijlstra (Intel) Cc: Vince Weaver Cc: Jiri Olsa Cc: Sasha Levin Link: http://lkml.kernel.org/r/20150225151639.GL5029@twins.programming.kicks-ass.net Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed