diff options
| author | Mario Limonciello <mario.limonciello@amd.com> | 2026-09-03 13:29:26 -0500 |
|---|---|---|
| committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2026-09-18 20:36:36 +0300 |
| commit | e70b1f5fec16051dcc862a7c82ac173eb11bbbec (patch) | |
| tree | 4d76e34674877cafd4a72c616a0e8b25e5cf1287 /tools/perf/scripts/python/bin | |
| parent | 231fa63e36dd6437741547ff63ab52fbe4bd4615 (diff) | |
| download | linux-next-e70b1f5fec16051dcc862a7c82ac173eb11bbbec.tar.gz linux-next-e70b1f5fec16051dcc862a7c82ac173eb11bbbec.zip | |
platform/x86/amd/pmf: Validate the APTS state index
The static slider APTS state index is supplied by the BIOS as an 8-bit
value, but apts_config_store contains only APTS_MAX_STATES entries. An
invalid firmware value can therefore cause amd_pmf_update_slider_v2() to
read beyond the end of the array.
Validate the selected index before applying the slider values and return
an error when it is out of range.
Fixes: 8362e862fb87 ("platform/x86/amd/pmf: Update sps power thermals according to the platform-profiles")
Cc: stable@vger.kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://patch.msgid.link/20260903182927.3556274-1-mario.limonciello@amd.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
