Commit 3b7a34a
perf: Fix dangling cgroup pointer in cpuctx
Commit a3c3c66("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: a3c3c66("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/1 parent 61988e3 commit 3b7a34a
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2120 | 2120 | | |
2121 | 2121 | | |
2122 | 2122 | | |
2123 | | - | |
2124 | | - | |
2125 | | - | |
2126 | | - | |
2127 | | - | |
2128 | | - | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | 2123 | | |
2136 | 2124 | | |
2137 | 2125 | | |
| |||
2488 | 2476 | | |
2489 | 2477 | | |
2490 | 2478 | | |
2491 | | - | |
2492 | | - | |
| 2479 | + | |
2493 | 2480 | | |
2494 | | - | |
| 2481 | + | |
2495 | 2482 | | |
| 2483 | + | |
| 2484 | + | |
| 2485 | + | |
| 2486 | + | |
2496 | 2487 | | |
2497 | 2488 | | |
2498 | 2489 | | |
| |||
0 commit comments