]> 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:45:43 +0000 (16:45 +0000)
commite52e324a21341c97350d5f11de14721c1c609498
tree3e46049f765fd77bb1b6ca7a6be90c5df46fd92e
parent541184f4abcf40e272ec06b72d0a8a67b903566b
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/powerplay/hwmgr/pptable_v1_0.h