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 13:41:12 +0000 (09:41 -0400)
commit05e1387d151f71569fbe122d2c89f9db0c21dc10
treea70d5ce68495785ec7590b3e756486856e1c34a2
parent4e0d6f2876e704fff707b18c40dbd383aea4a1c9
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c