]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 4 Oct 2023 20:46:44 +0000 (15:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:14:45 +0000 (17:14 +0000)
commit7c68283f3166221af3df5791f0e13d3137a72216
tree238c6722f359e2707ec1826c898f715b6d04e4e4
parent6dffdddfca818c02a42b6caa1d9845995f0a1f94
drm/amd: Fix UBSAN array-index-out-of-bounds for Polaris and Tonga

[ Upstream commit 0f0e59075b5c22f1e871fbd508d6e4f495048356 ]

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

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2036742
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/pm/powerplay/hwmgr/pptable_v1_0.h