]> git.hungrycats.org Git - linux/commit
drm/amdgpu: fix buffer overflow during vBIOS update
authorShiwu Zhang <shiwu.zhang@amd.com>
Wed, 13 May 2026 05:54:58 +0000 (13:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:52:30 +0000 (13:52 -0400)
commit6229898d46c0cbc238a6fe9f11c1ea12cf8bb9c5
tree8556b408b88e462cc9b42bbb7ea0444fe8476cd9
parent220e2e3b9634f21633993b14b340be1c54387a4d
drm/amdgpu: fix buffer overflow during vBIOS update

Clamp the buffer postion to write by setting the bin attribute
to the maximum buffer size so that VFS layer will block the
out-of-bounds accessing.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c