diff options
author | Kees Cook <keescook@chromium.org> | 2021-05-28 20:53:54 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-06-02 05:55:39 +0300 |
commit | 06888d571b513cbfc0b41949948def6cb81021b2 (patch) | |
tree | e21ecc88d916bb8412b10124d249bf5c48717581 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 66c46621c812c46bac3baf07007c45046563bfc3 (diff) | |
download | linux-06888d571b513cbfc0b41949948def6cb81021b2.tar.xz |
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 <keescook@chromium.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions