diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-06-23 11:36:39 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:27:59 -0400 |
| commit | 1ac24df78c566d767a5ef05a1fe0ecc55bac248d (patch) | |
| tree | 43e343fb2bfa6b0c4f7f4622f530ed0edb5bf711 /tools/perf/scripts/python/stackcollapse.py | |
| parent | c4a5160e3be079848d5f9b8da6463c7b5156c626 (diff) | |
drm/amd/pm: Validate Tonga PowerPlay state array bounds
process_pptables_v1_0.c builds the Tonga state array pointer
from usStateArrayOffset before checking that the table buffer covers
the referenced data. A truncated PowerPlay table can therefore lead to
out-of-bounds reads while validating the state array.
Validate the fixed table size first, then check the state array offset
and entry range before dereferencing the state array.
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
