diff options
| author | Wei Huang <wei.huang2@amd.com> | 2026-09-24 14:05:43 -0500 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-09-24 14:44:36 -0500 |
| commit | 5c382ef425c875bf854d411fb0a45909878a233a (patch) | |
| tree | 1a748c335685ffa479898f34d4231054ef83ac9a /tools/perf/scripts/python | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
PCI/TPH: Validate the firmware Steering Tag response
TPH _DSM returns an eight-byte Steering Tag information buffer. Checking
only the ACPI object type allows a short firmware response to be read
beyond the end of its buffer.
For safety, require a non-NULL buffer containing the complete value before
copying it. Use memcpy() so that reading the response does not depend on
the alignment of the firmware buffer.
Fixes: d2e8a34876ce ("PCI/TPH: Add Steering Tag support")
Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260924190543.3424792-1-wei.huang2@amd.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
