[ 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@qq.com Commit author: Srinivasan Shanmugamsrinivasan.shanmugam@amd.com
Status in newer kernel trees: 6.12.y | Present (different SHA1: f01ddd589e16) 6.6.y | Not found
Note: The patch differs from the upstream commit: --- 1: 63de35a8fcfc ! 1: 028f9cc22df4 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@amd.com Reviewed-by: Roman Li roman.li@amd.com Signed-off-by: Alex Deucher alexander.deucher@amd.com + Signed-off-by: Bin Lan lanbincn@qq.com
- ## 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.6.y | Success | Success |