drm/amdgpu: Validate TA binary size
authorCandice Li <candice.li@amd.com>
Thu, 15 Aug 2024 03:37:28 +0000 (11:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Aug 2024 02:14:13 +0000 (22:14 -0400)
commitc0a04e3570d72aaf090962156ad085e37c62e442
treee5e67ace6d62c43a0489a6e2be353919a56a30c5
parenteb067d65c33eecd4b81771384183ad42eec259bf
drm/amdgpu: Validate TA binary size

Add TA binary size validation to avoid OOB write.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c