aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2022-02-04 00:40:57 +0000
committerPeter Zijlstra <[email protected]>2022-02-06 21:37:27 +0000
commit5f4e5ce638e6a490b976ade4a40017b40abb2da0 (patch)
treee1b716c4008595ffb28775f1357d8da88414befc /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentperf/x86/intel/pt: Fix crash with stop filters in single-range mode (diff)
downloadkernel-5f4e5ce638e6a490b976ade4a40017b40abb2da0.tar.gz
kernel-5f4e5ce638e6a490b976ade4a40017b40abb2da0.zip
perf: Fix list corruption in perf_cgroup_switch()
There's list corruption on cgrp_cpuctx_list. This happens on the following path: perf_cgroup_switch: list_for_each_entry(cgrp_cpuctx_list) cpu_ctx_sched_in ctx_sched_in ctx_pinned_sched_in merge_sched_in perf_cgroup_event_disable: remove the event from the list Use list_for_each_entry_safe() to allow removing an entry during iteration. Fixes: 058fe1c0440e ("perf/core: Make cgroup switch visit only cpuctxs with cgroup events") Signed-off-by: Song Liu <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions