linux/drivers/gpu/drm/amd/display/dc
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
..
basics
bios drm/amd: Fix an out of bounds error in BIOS parser 2023-05-24 17:32:36 +01:00
clk_mgr drm/amd/display: Add Z8 allow states to z-state support list 2023-05-17 11:53:54 +02:00
core drm/amd/display: Fix hang when skipping modeset 2023-05-17 11:54:00 +02:00
dce drm/amd/display: Use DC_LOG_DC in the trasform pixel function 2023-05-24 17:32:34 +01:00
dce60 drm/amd/display/dc/dce60/Makefile: Fix previous attempt to silence known override-init warnings 2023-05-11 23:03:11 +09:00
dce80
dce100
dce110
dce112
dce120
dcn10 drm/amd/display: Fix 4to1 MPC black screen with DPP RCO 2023-05-17 11:53:49 +02:00
dcn20 drm/amd/display: Fix 4to1 MPC black screen with DPP RCO 2023-05-17 11:53:49 +02:00
dcn21 drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dcn30 drm/amd/display: fixed dcn30+ underflow issue 2023-05-24 17:32:35 +01:00
dcn31 drm/amd/display: fixed dcn30+ underflow issue 2023-05-24 17:32:35 +01:00
dcn32 drm/amd/display: fixed dcn30+ underflow issue 2023-05-24 17:32:35 +01:00
dcn201
dcn301
dcn302 drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dcn303 drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dcn314 drm/amd/display: Lowering min Z8 residency time 2023-05-17 11:53:55 +02:00
dcn315 drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dcn316 drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dcn321 drm/amd/display: filter out invalid bits in pipe_fuses 2023-05-17 11:53:49 +02:00
dml drm/amd/display: Correct DML calculation to follow HW SPEC 2023-05-24 17:32:36 +01:00
dsc
gpio
hdcp
inc drm/amd/display: Fix 4to1 MPC black screen with DPP RCO 2023-05-17 11:53:49 +02:00
irq
link
virtual
dc_bios_types.h
dc_ddc_types.h
dc_dmub_srv.c drm/amd/display: populate subvp cmd info only for the top pipe 2023-05-24 17:32:34 +01:00
dc_dmub_srv.h
dc_dp_types.h
dc_dsc.h
dc_edid_parser.c
dc_edid_parser.h
dc_helper.c
dc_hw_types.h
dc_link.h drm/amd/display: Refactor eDP PSR codes 2023-05-17 11:53:54 +02:00
dc_stat.h
dc_stream.h
dc_trace.h
dc_types.h
dc.h drm/amd/display: Add minimum Z8 residency debug option 2023-05-17 11:53:55 +02:00
dm_cp_psp.h
dm_event_log.h
dm_helpers.h
dm_pp_smu.h
dm_services_types.h
dm_services.h
irq_types.h
Makefile
os_types.h