drm/amdgpu: fix out of bounds write
authorThelford Williams <tdwilliamsiv@gmail.com>
Wed, 13 Oct 2021 20:04:13 +0000 (16:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Oct 2021 19:13:50 +0000 (15:13 -0400)
commit5afa7898ab7a0ec9c28556a91df714bf3c2f725e
tree0f9531afedfe899b74933724d486314b10988eea
parent519d81956ee277b4419c723adfb154603c2565ba
drm/amdgpu: fix out of bounds write

Size can be any value and is user controlled resulting in overwriting the
40 byte array wr_buf with an arbitrary length of data from buf.

Signed-off-by: Thelford Williams <tdwilliamsiv@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c