Loading
drm/amd/display: Check msg_id before processing transcation
stable inclusion from stable-v5.10.226 commit 916083054670060023d3f8a8ace895d710e268f4 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAU9XW CVE: CVE-2024-46814 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=916083054670060023d3f8a8ace895d710e268f4 -------------------------------- [ Upstream commit fa71face755e27dc44bc296416ebdf2c67163316 ] [WHY & HOW] HDCP_MESSAGE_ID_INVALID (-1) is not a valid msg_id nor is it a valid array index, and it needs checking before used. This fixes 4 OVERRUN issues reported by Coverity. Reviewed-by:Harry Wentland <harry.wentland@amd.com> Acked-by:
Tom Chung <chiahsuan.chung@amd.com> Signed-off-by:
Alex Hung <alex.hung@amd.com> Tested-by:
Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Yuntao Liu <liuyuntao12@huawei.com>