summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2026-07-24 07:41:29 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-07-28 18:52:54 -0400
commitf6eed7acfd30099ef7baeb6ba45bb59daad80631 (patch)
treeee42989c79b7613f367984ea8e7451bf3299046c /tools/perf/scripts/python
parent47a71f452c857596e896c5b4b1cde01c8e2c38f5 (diff)
drm/amd/pm: fix pptable use-after-free
amdgpu_dpm_get_pp_table() returns a pointer to a driver-owned power table after dropping adev->pm.mutex. The sysfs path then copies from that pointer. A concurrent pp_table write can replace and free the allocation during the copy, causing a use-after-free. Change the DPM interface to copy into caller-provided storage while the mutex is held. Keep the size-only query for attribute discovery without exposing the driver-owned pointer. Fixes: 1684d3ba4885 ("drm/amd/amdgpu: change pptable output format from ASCII to binary") Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions