]> 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)
commitb496ccb0a9ca35c92e2d51074d3e6154b2be3d5c
treeab10facf990a0a4b6ddeaadec72da03db576e559
parent01c71018c4d79efd77b7310c2f9c7af8b34f9d2d
drm/amdgpu: Fix even more out of bound writes from debugfs

CVE-2021-42327 was fixed by:

commit b394f77b969f5d988182c612cfc6584645f0ed5c
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: 7e3eb1157656 ("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