1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dml2
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
..
cmntypes.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
display_mode_core.c drm/amd/display: Fix overlapping copy within dml_core_mode_programming 2024-04-26 17:22:44 -04:00
display_mode_core.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
display_mode_core_structs.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
display_mode_lib_defines.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
display_mode_util.c drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
display_mode_util.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_dc_resource_mgmt.c drm/amd/display: Fix uninitialized variables in DC 2024-04-26 17:22:44 -04:00
dml2_dc_resource_mgmt.h drm/amd/display: Add some forward declarations 2024-03-20 13:37:36 -04:00
dml2_dc_types.h drm/amd/display: Refactor dc_state interface 2023-12-19 14:59:02 -05:00
dml2_internal_types.h drm/amd/display: optimize dml2 pipe resource allocation order 2024-04-09 21:51:32 -04:00
dml2_mall_phantom.c drm/amd/display: Refactor phantom resource allocation 2023-12-19 14:59:02 -05:00
dml2_mall_phantom.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_policy.c drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml2_policy.h drm/amd/display: Introduce DML2 2023-10-09 16:48:51 -04:00
dml2_translation_helper.c drm/amd/display: Update efficiency bandwidth for dcn351 2024-07-01 16:52:24 -04:00
dml2_translation_helper.h drm/amd/display: Fix handling duplicate planes on one stream 2023-11-07 12:03:30 -05:00
dml2_utils.c drm/amd/display: Fix array-index-out-of-bounds in dml2/FCLKChangeSupport 2024-07-01 16:53:24 -04:00
dml2_utils.h drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
dml2_wrapper.c drm/amd/display: add dwb support to dml2 2024-04-09 22:16:08 -04:00
dml2_wrapper.h drm/amd/display: move build test pattern params as part of pipe resource update for odm 2024-04-09 22:04:58 -04:00
dml_assert.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_depedencies.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
dml_display_rq_dlg_calc.c drm/amd/display: Introduce DML2 2023-10-09 16:48:51 -04:00
dml_display_rq_dlg_calc.h drm/amd/display: Introduce DML2 2023-10-09 16:48:51 -04:00
dml_logging.h drm/amd/display: Fix copyright notice in DML2 code 2023-10-26 18:41:22 -04:00
Makefile drm/amd/display: use ARCH_HAS_KERNEL_FPU_SUPPORT 2024-05-19 14:36:19 -07:00