diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-06-23 11:37:23 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:28:03 -0400 |
| commit | 3a8d8e0b7f61cd759d5d4870b6220161f8a5b114 (patch) | |
| tree | c374d4f760adf1bd00938322d94e13de66e71381 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1ac24df78c566d767a5ef05a1fe0ecc55bac248d (diff) | |
drm/amd/pm: Validate Vega hwmgr PowerPlay table bounds
The Vega hwmgr PowerPlay table parsers read fixed table fields,
state array entries, or SMC PPT fields before validating that the
VBIOS table buffer covers those structures. A truncated table can
therefore lead to out-of-bounds reads during hwmgr initialization.
Reject tables smaller than the fixed PowerPlay table. For Vega10, also
validate 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
