1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc
Roman Li 0ad4b4a2f6 drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport
[Why]
Potential out of bounds access in dml2_calculate_rq_and_dlg_params()
because the value of out_lowest_state_idx used as an index for FCLKChangeSupport
array can be greater than 1.

[How]
Currently dml2 core specifies identical values for all FCLKChangeSupport
elements. Always use index 0 in the condition to avoid out of bounds access.

Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-07-01 16:53:24 -04:00
..
basics drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
bios drm for 6.10-rc1 2024-05-15 09:43:42 -07:00
clk_mgr drm for 6.10-rc1 2024-05-15 09:43:42 -07:00
core drm for 6.10-rc1 2024-05-15 09:43:42 -07:00
dce drm/amd/display: Remove unnecessary code 2024-04-16 21:51:54 -04:00
dce60 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce80 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce110 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce112 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dce120 kbuild: make -Woverride-init warnings more consistent 2024-03-31 11:32:26 +09:00
dcn10 drm/amd/display: Rework dcn10_stream_encoder header 2024-04-16 22:39:15 -04:00
dcn20 drm/amd/display: Add missing debug registers for DCN2/3/3.1 2024-04-26 17:22:40 -04:00
dcn21 drm/amd/display: Modify DHCUB waterwark structures and functions 2024-03-27 01:43:28 -04:00
dcn30 drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
dcn31 drm/amd/display: Handle Y carry-over in VCP X.Y calculation 2024-04-30 21:26:04 -04:00
dcn32 drm/amd/display: Adjust registers sequence in the DIO list 2024-04-26 17:22:45 -04:00
dcn35 drm/amd/display: Add some HDCP registers DCN35 list 2024-04-26 17:22:45 -04:00
dcn201 drm/amd/display: Update DCN201 link encoder registers 2024-04-16 22:39:15 -04:00
dcn301 drm/amd/display: Remove duplicated function signature from dcn3.01 DCCG 2024-04-26 17:22:40 -04:00
dcn302 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn303 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn314 drm/amd/display: Refactor INIT into component folder 2024-01-03 10:47:29 -05:00
dcn321 drm/amd/display: Code style adjustments 2024-04-26 17:22:45 -04:00
dml drm/amd/display: Account for cursor prefetch BW in DML1 mode support 2024-07-01 16:50:02 -04:00
dml2 drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport 2024-07-01 16:53:24 -04:00
dpp drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
dsc drm/amd/display: Fix division by zero in setup_dsc_config 2024-04-26 17:22:40 -04:00
gpio drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
hdcp drm/amd/display: Drop unnecessary header 2024-02-22 10:26:08 -05:00
hwss drm/amd/display: Attempt to avoid empty TUs when endpoint is DPIA 2024-06-19 14:17:25 -04:00
inc drm/amd/display: Clean up code in DC 2024-04-26 17:22:45 -04:00
irq drm/amd/display: Check pipe offset before setting vblank 2024-04-26 17:22:44 -04:00
link drm/amd/display: Send DP_TOTAL_LTTPR_CNT during detection if LTTPR is present 2024-06-25 14:15:45 -04:00
optc Revert "drm/amd/display: Add fallback configuration when set DRR" 2024-04-26 17:22:38 -04:00
resource drm for 6.10-rc1 2024-05-15 09:43:42 -07:00
virtual drm/amd/display: make virtual_disable_link_output static 2022-10-11 11:32:59 -04:00
dc.h drm/amd/display: 3.2.281 2024-04-16 22:39:15 -04:00
dc_bios_types.h drm/amd/display: Pass pwrseq inst for backlight and ABM 2023-12-06 15:22:33 -05:00
dc_ddc_types.h drm/amd/display: move public dc link function implementation to dc_link_exports 2023-02-14 16:06:28 -05:00
dc_dmub_srv.c drm/amd/display: Add driver support for future FAMS versions 2024-04-09 22:15:26 -04:00
dc_dmub_srv.h drm/amd/display: Add driver support for future FAMS versions 2024-04-09 22:15:26 -04:00
dc_dp_types.h drm/amd/display: expand the non standard link rate for testing 2024-04-09 22:15:52 -04:00
dc_dsc.h drm/amd/display: Add link encoding to timing BW calculation parameters 2023-07-18 11:15:51 -04:00
dc_edid_parser.c drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dc_edid_parser.h drm/amd/display: Add Freesync HDMI support to DMCU 2021-02-02 12:11:41 -05:00
dc_hdmi_types.h drm/amd/display/dc/dc_hdmi_types: Move string definition to the only file it's used in 2023-03-22 00:47:59 -04:00
dc_helper.c drm/amd/display: Wake DMCUB before sending a command 2023-12-19 14:59:02 -05:00
dc_hw_types.h drm/amd/display: add support for chroma offset 2024-04-16 21:24:08 -04:00
dc_plane.h drm/amd/display: Refactor DML2 interfaces 2024-03-27 01:36:37 -04:00
dc_plane_priv.h drm/amd/display: Add driver support for future FAMS versions 2024-04-09 22:15:26 -04:00
dc_stat.h drm/amd/display: DMUB Outbound Interrupt Process-X86 2021-07-08 15:14:36 -04:00
dc_state.h drm/amd/display: Add handling for DC power mode 2024-04-09 22:04:51 -04:00
dc_state_priv.h drm/amd/display: Refactor DML2 interfaces 2024-03-27 01:36:37 -04:00
dc_stream.h drm/amd/display: Add handling for DC power mode 2024-04-09 22:04:51 -04:00
dc_stream_priv.h drm/amd/display: Refactor phantom resource allocation 2023-12-19 14:59:02 -05:00
dc_trace.h drm/amd/display: Add events log to trace OPTC lock and unlock 2022-10-24 14:36:06 -04:00
dc_types.h drm/amd/display: Add missing replay field 2024-04-16 22:39:15 -04:00
dm_cp_psp.h drm/amd/display: Trivial code style adjustment 2024-02-07 12:26:23 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: Code style adjustments 2024-04-26 17:22:45 -04:00
dm_pp_smu.h drm/amd/pm: support return vpe clock table 2023-12-14 15:25:59 -05:00
dm_services.h drm/amd/display: Add dummy interface for tracing DCN32 SMU messages 2024-04-09 22:03:13 -04:00
dm_services_types.h drm/amd/display: refactor dmub commands into single function 2023-04-18 16:28:52 -04:00
irq_types.h drm/amd/display: Correct enum typo 2023-10-26 18:59:56 -04:00
Makefile drm/amd/display: Refactor DPP into a component directory 2024-03-20 13:37:37 -04:00
os_types.h drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00