linux/drivers/gpu/drm/amd
Dan Carpenter 8084bd0a64 amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
[ Upstream commit d27252b570 ]

In the PP_OD_EDIT_VDDC_CURVE case the "input_index" variable is capped at
2 but not checked for negative values so it results in an out of bounds
read.  This value comes from the user via sysfs.

Fixes: d5bf265394 ("drm/amd/powerplay: added vega20 overdrive support V3")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:11 +01:00
..
acp
amdgpu drm/amdgpu/sdma_v4_0: turn off SDMA ring buffer in the s2idle suspend 2022-12-07 12:17:09 -05:00
amdkfd drm/amdkfd: Fix error handling in criu_checkpoint 2022-11-09 17:57:48 -05:00
display drm/amd/display: wait for vblank during pipe programming 2022-12-31 13:32:06 +01:00
include drm/amdkfd: Fix type of reset_type parameter in hqd_destroy() callback 2022-10-18 22:13:12 -04:00
pm amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table() 2022-12-31 13:32:11 +01:00