]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix even more out of bound writes from debugfs
authorPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Wed, 27 Oct 2021 14:27:30 +0000 (16:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:59 +0000 (14:26 -0400)
commit0e7c7fc94f8b0fe3012ca4f1dfa98a50f0581e98
treeab10facf990a0a4b6ddeaadec72da03db576e559
parent3eec321922b58bcea510fd7bf9a2030a8adbd017
drm/amdgpu: Fix even more out of bound writes from debugfs

CVE-2021-42327 was fixed by:

commit ba02a6af34b657357b8b03c2eb6f65d9dea03e01
Author: Thelford Williams <tdwilliamsiv@gmail.com>
Date:   Wed Oct 13 16:04:13 2021 -0400

    drm/amdgpu: fix out of bounds write

but amdgpu_dm_debugfs.c contains more of the same issue so fix the
remaining ones.

v2:
* Add missing fix in dp_max_bpc_write (Harry Wentland)

Fixes: 2fe5891ba040 ("drm/amd/display: Return the number of bytes parsed than allocated")
Signed-off-by: Patrik Jakobsson <pjakobsson@suse.de>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c