diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-06-23 11:37:41 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:28:06 -0400 |
| commit | 0ceb6bc43e62f0e73b282c9de8f4bc4d5498f281 (patch) | |
| tree | c362fb5c49c76a8b3642caea2d8e6e85cf7dc879 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3a8d8e0b7f61cd759d5d4870b6220161f8a5b114 (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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
