]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Oct 2023 20:22:52 +0000 (15:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:17 +0000 (16:56 +0000)
commitacdb6830de02cf2873aeaccdf2d9bca4aee50e47
tree7aab2bd669ba523883616eafccfde7e1192c4437
parent829ce8e995a8dbd0d3b169ad75078fd8a830468a
drm/amd: Fix UBSAN array-index-out-of-bounds for SMU7

[ Upstream commit 760efbca74a405dc439a013a5efaa9fadc95a8c3 ]

For pptable structs that use flexible array sizes, use flexible arrays.

Suggested-by: Felix Held <felix.held@amd.com>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2874
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/include/pptable.h
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h