summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMuhammad Bilal <meatuni001@gmail.com>2026-10-07 18:47:09 +0500
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2026-10-14 16:08:10 +0300
commit35fb43f1576e1352077afc33a535007e0568480c (patch)
tree103280f856d77b5b3e24bb5aa380ab2fd0e3bf57 /tools/perf/scripts/python/bin
parent0c22178524864af85ea380be4b2d36078c0edc9c (diff)
platform/x86: hp-bioscfg: validate SPM state returned by firmware
status_show() indexes the 3-entry spm_state_types[] with the state byte returned by firmware. update_spm_state() stores the same byte, which key_mechanism_show() uses to index the 3-entry spm_mechanism_types[]. Neither is range checked, so a state above 2 makes the world-readable status and key_mechanism files print a string from a pointer read past the array. Return -EIO for an out of range state. Compile tested only. Fixes: b2715aa2e135 ("platform/x86: hp-bioscfg: spmobj-attributes") Signed-off-by: Muhammad Bilal <meatuni001@gmail.com> Link: https://patch.msgid.link/20261007134711.473857-8-meatuni001@gmail.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