diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-06-23 16:37:07 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:28:14 -0400 |
| commit | 53ef33c084c5778cc2dcd1efff25e31b6e231141 (patch) | |
| tree | 54704c429a4cc24c4cf336969fe85b21b16e88d1 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 9914149f99fd2ddcfd2a8c1053a57d96ec43448e (diff) | |
drm/amd/pm: Validate Tonga PPTable subtable bounds
v1:
Tonga PPTable parsing also relies on VBIOS offsets, revision fields
and entry counts for several subtables. Malformed data can cause
out-of-bounds reads, while voltage lookup tables can overrun their
fixed-size destination arrays.
Add common bounds helpers and validate fixed subtables, dynamic entry
arrays and revision-specific layouts before consuming voltage lookup,
dependency, PCIE, power-tune, hard-limit, thermal, fan, GPIO, PPM and
VCE state data.
v2:
correct to handle get_tonga_ppm_table() return value.
Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
