]> git.hungrycats.org Git - linux/commit
drm/amdgpu: bounds check VBIOS name extraction
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 22 Jun 2026 09:51:59 +0000 (15:21 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 15:28:54 +0000 (11:28 -0400)
commit294403fde5ba8e972d1bab88ea56be0fa2ff1f3e
treefe15940202e1a9c0b79db7f93cf6284585e06230
parent6244eae22966350db52faf9c1369d3b2ffc5de4e
drm/amdgpu: bounds check VBIOS name extraction

Bound atom_get_vbios_name() by the BIOS size to avoid out-of-bounds reads.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c