]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()
authorJiang Liu <gerry@linux.alibaba.com>
Fri, 7 Feb 2025 06:44:14 +0000 (14:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 00:47:15 +0000 (19:47 -0500)
commit1abb2648698bf10783d2236a6b4a7ca5e8021699
tree7caa92a22b8edcadb99a9cf68efde032a3ee9252
parentd584198a6fe4c51f4aa88ad72f258f8961a0f11c
drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table()

It malicious user provides a small pptable through sysfs and then
a bigger pptable, it may cause buffer overflow attack in function
smu_sys_set_pp_table().

Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c