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:Yeoreum Yun <yeoreum.yun@arm.com> Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by:
David Wang <00107082@163.com> Link: https://lore.kernel.org/all/aD2TspKH%2F7yvfYoO@e129823.arm.com/
Loading
Please register or sign in to comment