drm/radeon: Validate VBIOS signature in VFCT path
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 8 Jul 2026 19:35:18 +0000 (14:35 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:41 +0000 (09:15 -0400)
commita9c196b3f135fe9b165c5e75b3a24eadcc22fd6a
tree8dcc8c412194a1b1313633de4a560e62adc5f6ed
parent4059e2f02c8a2a51ba78860775877d721df6a055
drm/radeon: Validate VBIOS signature in VFCT path

The VFCT path accepted whatever kmemdup() returned without checking
that the copied image is a valid VBIOS. Every other radeon BIOS
fetch path verifies the 0x55 0xaa signature before trusting the
image; the VFCT path is the odd one out.

Check the signature after copying the image and reject it (freeing
the buffer) if it does not match, matching the amdgpu VFCT path
which validates via check_atom_bios().

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patch.msgid.link/20260708193518.702584-6-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_bios.c