diff options
| author | Yang Wang <kevinyang.wang@amd.com> | 2026-06-23 00:04:33 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:23:35 -0400 |
| commit | a17e79d01f22182a9fcbe79fcbe2ad1477d43e0f (patch) | |
| tree | 6954202007286a9bfab57ef3b7188da559ddfe8f /tools/perf/scripts/python | |
| parent | d41624990ef66b410e95b7fc89b3727a0d297906 (diff) | |
drm/amd/pm: Validate pp_table header before reading size
smu_sys_set_pp_table() reads usStructureSize from the uploaded
pp_table buffer before validating that the buffer contains a complete
ATOM_COMMON_TABLE_HEADER. A short write can therefore make the driver
read past the supplied sysfs buffer.
Reject empty or header-short uploads before dereferencing the header
pointer.
Keep the existing structure-size check for the full uploaded table.
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
