[PATCH] drm/amdgpu: fix a missing-check bug

2018-10-21 Thread Wenwen Wang
can supply compromised VBIOS, which can cause undefined behavior of the kernel and introduce potential security issues. This patch rewrites the header in 'adev->bios' using the header acquired in the first copy. Signed-off-by: Wenwen Wang --- drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 2 ++

[PATCH] drm/radeon: fix a missing-check bug

2018-10-18 Thread Wenwen Wang
introduce potential security risk, if the device can be controlled by attackers. This patch rewrites the first two bytes of 'rdev->bios' after memcpy_fromio() with expected values. Through this way, the above issue can be avoided. Signed-off-by: Wenwen Wang --- drivers/gpu/drm/radeon/radeo

[PATCH] drm/radeon: fix a missing-check bug

2018-10-18 Thread Wenwen Wang
after memcpy_fromio() with expected values. Signed-off-by: Wenwen Wang --- drivers/gpu/drm/radeon/radeon_bios.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_bios.c b/drivers/gpu/drm/radeon/radeon_bios.c index 04c0ed4..d8304fa 100644 --- a/drivers/gpu/drm/