Files
linux/drivers/gpu/drm
Luca Coelho db7944458f 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
2025-09-19 12:50:56 +03:00
..
2025-07-04 11:06:38 -07:00
2025-08-11 17:18:24 +02:00
2025-06-16 09:01:23 +02:00
2025-04-23 15:40:30 -05:00
2025-08-11 14:37:45 +02:00
2025-08-27 14:54:44 +02:00
2025-08-13 11:11:02 +03:00
2025-08-11 14:37:45 +02:00
2025-08-11 14:37:45 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-08-11 14:37:45 +02:00
2025-06-16 09:01:23 +02:00
2025-08-21 16:21:08 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:00:09 +02:00
2025-06-16 09:01:23 +02:00
2025-08-11 14:37:45 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00