drm/amdgpu: Reject UVD message with dimensions above 4096
authorDavid Rosca <david.rosca@amd.com>
Thu, 30 Jul 2026 15:37:44 +0000 (17:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 12 Aug 2026 14:22:03 +0000 (10:22 -0400)
commit8c9aebcdd9f46f7a14b98d6ab18574b7a48fbb08
tree64620d2b52727fffb90d7e6255b5759ab12ed3c6
parent2a9c5154a5650c09ad44ff5e1dff74754e15a3c6
drm/amdgpu: Reject UVD message with dimensions above 4096

Fixes potential overflow in DPB size calculations.

Signed-off-by: David Rosca <david.rosca@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 05e1387d151f71569fbe122d2c89f9db0c21dc10)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c