diff options
| author | 2026-07-06 10:25:58 -0400 | |
|---|---|---|
| committer | 2026-07-16 18:27:26 -0400 | |
| commit | 48e1d1e6e8798aef0312e68d8e586021b5b3cf4d (patch) | |
| tree | 8e994ee6de99101fdfb9124fe0d215dec7303995 /scripts/Makefile.thinlto | |
| parent | drm/amdgpu: Use just sriov capability bit for xgmi ext peer link support (diff) | |
drm/amdkfd: Add bounds check for CRAT subtype length
The CRAT parser validates that the subtype header fits within the image,
but does not verify that the advertised subtype length fits. A malformed
CRAT table with an oversized length field causes out-of-bounds reads when
kfd_parse_subtype() casts the header to specific subtype structures.
Add validation that sub_type_hdr + length does not exceed the image
boundary before parsing the subtype contents.
Signed-off-by: William Palacek <William.Palacek@amd.com>
Reviewed-by: Alysa Liu <Alysa.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
