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-10-13 11:43:45 +0300 |
| commit | 192dddd5aa45166450820cef16521bdf23976a73 (patch) | |
| tree | e5d879e1d908a319472723d47aff45b017874d72 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cde132040fcbcad19f7b6a1988873513f5679eeb (diff) | |
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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
