[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: b995c0a6de6c74656a0c39cd57a0626351b13e3c WARNING: Author mismatch between patch and upstream commit: Backport author: Xiangyu Chen <xiangyu.chen@xxxxxxxxxxxxxxxxx> Commit author: Alex Hung <alex.hung@xxxxxxx> Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.11.y | Present (different SHA1: 7f8e93b862ab) 6.6.y | Not found Note: The patch differs from the upstream commit: --- --- - 2024-11-26 07:45:10.201552745 -0500 +++ /tmp/tmp.QctaUrZnRu 2024-11-26 07:45:10.196531312 -0500 @@ -1,3 +1,5 @@ +[ Upstream commit b995c0a6de6c74656a0c39cd57a0626351b13e3c ] + [WHAT & HOW] Variables used as denominators and maybe not assigned to other values, should not be 0. Change their default to 1 so they are never 0. @@ -9,14 +11,16 @@ Signed-off-by: Alex Hung <alex.hung@xxxxxxx> Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> +[Xiangyu: Bp to fix CVE: CVE-2024-49899 +Discard the dml2_core/dml2_core_shared.c due to this file no exists] +Signed-off-by: Xiangyu Chen <xiangyu.chen@xxxxxxxxxxxxx> --- - .../gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c | 2 +- - drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c | 2 +- - .../display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c | 4 ++-- - 3 files changed, 4 insertions(+), 4 deletions(-) + .../gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c | 2 +- + drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c b/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c -index 7c56ad0f88122..e7019c95ba79e 100644 +index 548cdef8a8ad..543ce9a08cfd 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c @@ -78,7 +78,7 @@ static void calculate_ttu_cursor(struct display_mode_lib *mode_lib, @@ -29,7 +33,7 @@ if (source_format == dm_444_16) { if (!is_chroma) diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c b/drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c -index dae13f202220e..d8bfc85e5dcd0 100644 +index 3df559c591f8..70df992f859d 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c @@ -39,7 +39,7 @@ @@ -41,18 +45,6 @@ if (source_format == dm_444_16) { if (!is_chroma) -diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c -index 81f0a6f19f87b..679b200319034 100644 ---- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c -+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c -@@ -9386,8 +9386,8 @@ static void CalculateVMGroupAndRequestTimes( - double TimePerVMRequestVBlank[], - double TimePerVMRequestFlip[]) - { -- unsigned int num_group_per_lower_vm_stage = 0; -- unsigned int num_req_per_lower_vm_stage = 0; -+ unsigned int num_group_per_lower_vm_stage = 1; -+ unsigned int num_req_per_lower_vm_stage = 1; - - #ifdef __DML_VBA_DEBUG__ - dml2_printf("DML::%s: NumberOfActiveSurfaces = %u\n", __func__, NumberOfActiveSurfaces); +-- +2.43.0 + --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.6.y | Success | Success | | stable/linux-6.1.y | Success | Success |