diff options
| author | Luca Coelho <luciano.coelho@intel.com> | 2025-09-09 11:30:11 +0300 |
|---|---|---|
| committer | Luca Coelho <luciano.coelho@intel.com> | 2025-09-19 12:50:56 +0300 |
| commit | db7944458f4e5cdc11402e18ccbbc7aac4286f4b (patch) | |
| tree | 3ced26fe4c11d0af736c4c85c642ebdf7a75b292 /tools/perf/scripts/python/stackcollapse.py | |
| parent | cef58ce505a04a896d59cb207f0a0ccea1eec5ca (diff) | |
| download | linux-db7944458f4e5cdc11402e18ccbbc7aac4286f4b.tar.gz linux-db7944458f4e5cdc11402e18ccbbc7aac4286f4b.zip | |
drm/i915/dmc: explicitly sanitize num_entries from package_header
num_entries comes from package_header, which is read from an external
firmware blob and thus untrusted. In parse_dmc_fw_package() we assign
package_header->num_entries to a local variable, but the range check
still uses the struct field directly.
Switch the check to use the local copy instead. This makes the
sanitization explicit and avoids a redundant dereference.
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20250909083042.1292672-1-luciano.coelho@intel.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
