Skip to content
Commit 3b7a34ae authored by Yeo Reum Yun's avatar Yeo Reum Yun Committed by Peter Zijlstra
Browse files

perf: Fix dangling cgroup pointer in cpuctx



Commit a3c3c666("perf/core: Fix child_total_time_enabled accounting
bug at task exit") moves the event->state update to before
list_del_event(). This makes the event->state test in list_del_event()
always false; never calling perf_cgroup_event_disable().

As a result, cpuctx->cgrp won't be cleared properly; causing havoc.

Fixes: a3c3c666("perf/core: Fix child_total_time_enabled accounting bug at task exit")
Signed-off-by: Yeo Reum Yun's avatarYeoreum Yun <yeoreum.yun@arm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: default avatarDavid Wang <00107082@163.com>
Link: https://lore.kernel.org/all/aD2TspKH%2F7yvfYoO@e129823.arm.com/
parent 61988e36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment