]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/core: Fix cpuctx refcounting
authorPeter Zijlstra <peterz@infradead.org>
Fri, 9 Jun 2023 10:34:46 +0000 (12:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:14:58 +0000 (17:14 +0000)
commitc8ace8d252741a501a126abf411a36384104913c
tree9badb259639f4a8575223aac86bd694a35944c2a
parent109b452cc84243bc6993becc4823cf68cfca26d8
perf/core: Fix cpuctx refcounting

commit 889c58b3155ff4c8e8671c95daef63d6fabbb6b1 upstream.

Audit of the refcounting turned up that perf_pmu_migrate_context()
fails to migrate the ctx refcount.

Fixes: bd2756811766 ("perf: Rewrite core context handling")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lkml.kernel.org/r/20230612093539.085862001@infradead.org
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/perf_event.h
kernel/events/core.c