mirror-linux/drivers/gpu/drm/amd/display
Mario Limonciello 5675ecd2e0 drm/amd: Fix an out of bounds error in BIOS parser
[ Upstream commit d116db180d ]

The array is hardcoded to 8 in atomfirmware.h, but firmware provides
a bigger one sometimes. Deferencing the larger array causes an out
of bounds error.

commit 4fc1ba4aa5 ("drm/amd/display: fix array index out of bound error
in bios parser") fixed some of this, but there are two other cases
not covered by it.  Fix those as well.

Reported-by: erhard_f@mailbox.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=214853
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2473
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:36 +01:00
..
amdgpu_dm drm/amd/display: Fix hang when skipping modeset 2023-05-17 11:54:00 +02:00
dc drm/amd: Fix an out of bounds error in BIOS parser 2023-05-24 17:32:36 +01:00
dmub drm/amd/display: Do not clear GPINT register when releasing DMUB from reset 2023-05-17 11:53:31 +02:00
include drm/amd/display: Refactor LTTPR mode selection 2022-09-29 09:41:46 -04:00
modules drm/amd/display: fix a divided-by-zero error 2023-05-11 23:03:03 +09:00
Kconfig drm/amdgpu: temporarily disable broken Clang builds due to blown stack-frame 2022-11-30 14:49:42 -08:00
Makefile
TODO