aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorYeoreum Yun <[email protected]>2025-06-02 18:40:49 +0000
committerPeter Zijlstra <[email protected]>2025-06-05 12:37:52 +0000
commit3b7a34aebbdf2a4b7295205bf0c654294283ec82 (patch)
tree6fb3b6fa4be3ece8e139f7eb91e3a294001fa87f /rust/helpers/helpers.c
parentperf: Fix cgroup state vs ERROR (diff)
downloadkernel-3b7a34aebbdf2a4b7295205bf0c654294283ec82.tar.gz
kernel-3b7a34aebbdf2a4b7295205bf0c654294283ec82.zip
perf: Fix dangling cgroup pointer in cpuctx
Commit a3c3c6667("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: a3c3c6667("perf/core: Fix child_total_time_enabled accounting bug at task exit") Signed-off-by: Yeoreum Yun <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Tested-by: David Wang <[email protected]> Link: https://lore.kernel.org/all/aD2TspKH%[email protected]/
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions