linux/drivers/gpu
Kees Cook 3b2b93a485 drm/amd/display: Avoid HDCP over-read and corruption
[ Upstream commit 06888d571b ]

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>
History 2021-07-19 10:04:35 +02:00
..
drm drm/amd/display: Avoid HDCP over-read and corruption 2021-07-19 10:04:35 +02:00
host1x gpu: host1x: Split up client initalization and registration 2021-05-17 12:31:05 +02:00
ipu-v3 drm/imx: Add 8 pixel alignment fix 2021-07-19 10:04:30 +02:00
trace gpu/trace: add a gpu total memory usage tracepoint 2020-03-03 17:52:41 -05:00
vga pci-v5.11-changes 2020-12-15 16:49:59 -08:00
Makefile gpu/trace: add a gpu total memory usage tracepoint 2020-03-03 17:52:41 -05:00