]> git.itanic.dy.fi Git - linux-stable/commit
drm/amd: Fix UBSAN array-index-out-of-bounds for Powerplay headers
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Oct 2023 20:40:47 +0000 (16:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Nov 2023 15:59:51 +0000 (11:59 -0400)
commit49afe91370b86566857a3c2c39612cf098110885
treeb777aeb86b9351b2aa2f39bf336b986cbe05c12d
parent7b1c6263eaf4fd64ffe1cafdc504a42ee4bfbb33
drm/amd: Fix UBSAN array-index-out-of-bounds for Powerplay headers

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

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2039926
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/powerplay/hwmgr/pptable_v1_0.h
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_pptable.h