aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-05-28 17:53:54 +0000
committerAlex Deucher <[email protected]>2021-06-02 02:55:39 +0000
commit06888d571b513cbfc0b41949948def6cb81021b2 (patch)
treee21ecc88d916bb8412b10124d249bf5c48717581 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentamdgpu: remove unreachable code (diff)
downloadkernel-06888d571b513cbfc0b41949948def6cb81021b2.tar.gz
kernel-06888d571b513cbfc0b41949948def6cb81021b2.zip
drm/amd/display: Avoid HDCP over-read and corruption
Instead of reading the desired 5 bytes of the actual target field, the code was reading 8. This could result in a corrupted value if the trailing 3 bytes were non-zero, so instead use an appropriately sized and zero-initialized bounce buffer, and read only 5 bytes before casting to u64. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions