Re: [PATCH] drm/amd/display: Avoid HDCP over-read and corruption

2021-06-01 Thread Alex Deucher
On Fri, May 28, 2021 at 1:54 PM Kees Cook wrote: > > 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 buff

[PATCH] drm/amd/display: Avoid HDCP over-read and corruption

2021-05-29 Thread Kees Cook
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