summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2017-05-12 12:45:25 +0100
committerJani Nikula <jani.nikula@intel.com>2022-05-02 14:27:22 +0300
commitdebc8ee9afbcf23705931ec8e5a69022a5c2a4bd (patch)
tree20f2014c4ab020cfa607113063d75cc899856687 /scripts/gdb/linux/modules.py
parentd5eacbf3ff685410c29eedefcc19f58efb2a83e4 (diff)
perf/core: Avoid removing shared pmu_context on unregister
In commit 1fd7e4169954 ("perf/core: Remove perf_cpu_context::unique_pmu"), the search for another user of the pmu_cpu_context was removed, and so we unconditionally free it during perf_pmu_unregister. This leads to random corruption later and a BUG at mm/percpu.c:689. v2: Check for shared pmu_contexts under the mutex. Fixes: 1fd7e4169954 ("perf/core: Remove perf_cpu_context::unique_pmu") Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: David Carrillo-Cisneros <davidcc@google.com> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: <stable@vger.kernel.org> # v4.11+ Link: http://patchwork.freedesktop.org/patch/msgid/20170512114525.17575-1-chris@chris-wilson.co.uk Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions