summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYang Wang <kevinyang.wang@amd.com>2026-06-23 11:37:41 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-07-01 11:28:06 -0400
commit0ceb6bc43e62f0e73b282c9de8f4bc4d5498f281 (patch)
treec362fb5c49c76a8b3642caea2d8e6e85cf7dc879 /tools/perf/scripts/python
parent3a8d8e0b7f61cd759d5d4870b6220161f8a5b114 (diff)
drm/amd/pm: Validate legacy hwmgr PP table offsets
processpptables.c walks several variable-length PPLIB tables by using offsets from the VBIOS PowerPlay table. Some paths dereference extended headers, state arrays, clock arrays, non-clock arrays, or VCE records before checking that the referenced data is inside the table buffer. Add local bounds helpers and validate the relevant offsets and entry sizes before dereferencing them. This prevents truncated or malformed legacy PowerPlay tables from driving out-of-bounds reads during hwmgr initialization and table entry lookup. Signed-off-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@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