[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: 63de35a8fcfca59ae8750d469a7eb220c7557baf WARNING: Author mismatch between patch and upstream commit: Backport author: lanbincn@xxxxxx Commit author: Srinivasan Shanmugam<srinivasan.shanmugam@xxxxxxx> Status in newer kernel trees: 6.12.y | Present (different SHA1: f01ddd589e16) 6.6.y | Not found 6.1.y | Not found Note: The patch differs from the upstream commit: --- 1: 63de35a8fcfc ! 1: 38682f44d456 drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create' @@ Metadata ## Commit message ## drm/amd/display: Fix out-of-bounds access in 'dcn21_link_encoder_create' + commit 63de35a8fcfca59ae8750d469a7eb220c7557baf upstream. + An issue was identified in the dcn21_link_encoder_create function where an out-of-bounds access could occur when the hpd_source index was used to reference the link_enc_hpd_regs array. This array has a fixed size @@ Commit message Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@xxxxxxx> Reviewed-by: Roman Li <roman.li@xxxxxxx> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx> + Signed-off-by: Bin Lan <lanbincn@xxxxxx> - ## drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c ## -@@ drivers/gpu/drm/amd/display/dc/resource/dcn21/dcn21_resource.c: static struct link_encoder *dcn21_link_encoder_create( + ## drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c ## +@@ drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c: static struct link_encoder *dcn21_link_encoder_create( kzalloc(sizeof(struct dcn21_link_encoder), GFP_KERNEL); int link_regs_id; --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.1.y | Success | Success |