mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
perf: Fix dangling cgroup pointer in cpuctx backport
recently backport of ("perf: Fix dangling cgroup pointer in cpuctx")
use a middle version, so aligned with the upstream commit:
commit 3b7a34aebb ("perf: Fix dangling cgroup pointer in cpuctx")
This is a fix for stable v6.6.143 backport commit, so no upstream commit.
Link: https://lore.kernel.org/all/2026070200-uneaten-smock-4130@gregkh/
Fixes: ae1ada0af1 ("perf: Fix dangling cgroup pointer in cpuctx")
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5f4dbdb0a8
commit
f6290849b8
@@ -2384,10 +2384,9 @@ __perf_remove_from_context(struct perf_event *event,
|
||||
*/
|
||||
if (flags & DETACH_EXIT)
|
||||
state = PERF_EVENT_STATE_EXIT;
|
||||
if (flags & DETACH_DEAD) {
|
||||
event->pending_disable = 1;
|
||||
if (flags & DETACH_DEAD)
|
||||
state = PERF_EVENT_STATE_DEAD;
|
||||
}
|
||||
|
||||
event_sched_out(event, ctx);
|
||||
|
||||
if (event->state > PERF_EVENT_STATE_OFF)
|
||||
|
||||
Reference in New Issue
Block a user