1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Hamza Mahfooz c3d7496094 drm/amd/display: fix possible buffer overflow relating to secure display
It is possible that adev->dm.dc->caps.max_links is greater than
AMDGPU_MAX_CRTCS. So, to not potentially access unallocated memory use
adev->mode_info.num_crtc to do the bounds check instead of
adev->dm.dc->caps.max_links.

Fixes: 1b11ff764a ("drm/amd/display: Implement multiple secure display")
Fixes: b8ff7e08ba ("drm/amd/display: Fix when disabling secure_display")
Reviewed-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-01-13 14:49:59 -05:00
..
amdgpu_dm drm/amd/display: fix possible buffer overflow relating to secure display 2023-01-13 14:49:59 -05:00
dc drm/amd/display: No need for Null pointer check before kfree 2023-01-10 18:04:53 -05:00
dmub drm/amd/display: Add DPIA NOTIFICATION logic 2022-12-15 12:18:18 -05:00
include drm/amd/display: add support for three new square pattern variants from DP2.1 specs 2022-12-15 12:18:19 -05:00
modules drm/amd/display: fix PSR-SU/DSC interoperability support 2023-01-09 17:02:18 -05:00
Kconfig drm/amd/display: add DCN support for ARM64 2022-11-04 16:05:54 -04:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00