diff options
author | Kees Cook <keescook@chromium.org> | 2021-05-28 10:53:54 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-19 10:04:35 +0200 |
commit | 3b2b93a485fb7a970bc8b5daef16f4cf579d172f (patch) | |
tree | b923e2ead17537cc9d3ac72c5f3f04f9d3b58d33 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 060a3b127d9ed104a0f3e20255926af9ff8370fa (diff) |
drm/amd/display: Avoid HDCP over-read and corruption
[ Upstream commit 06888d571b513cbfc0b41949948def6cb81021b2 ]
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 <keescook@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions