0ee4bc0f62
- edk2-OvmfPkg-VirtioGpuDxe-ignore-display-resolutions-smal.patch [RHEL-56249] - edk2-OvmfPkg-QemuVideoDxe-ignore-display-resolutions-smal.patch [RHEL-56249] - edk2-MdePkg-Fix-overflow-issue-in-BasePeCoffLib.patch [RHEL-60829] - Resolves: RHEL-56249 (507x510 display resolution should not crash the firmware [edk2,rhel-10]) - Resolves: RHEL-60829 (CVE-2024-38796 edk2: Integer overflows in PeCoffLoaderRelocateImage [rhel-10.0])
38 lines
1.2 KiB
Diff
38 lines
1.2 KiB
Diff
From 66b4a85fcb8ec13c5e4e152d1265dbf31eaa34f3 Mon Sep 17 00:00:00 2001
|
|
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
Date: Fri, 23 Aug 2024 14:35:53 +0200
|
|
Subject: [PATCH 1/3] OvmfPkg/VirtioGpuDxe: ignore display resolutions smaller
|
|
than 640x480
|
|
|
|
RH-Author: Gerd Hoffmann <None>
|
|
RH-MergeRequest: 73: ignore display resolutions smaller than 640x480
|
|
RH-Jira: RHEL-56249
|
|
RH-Acked-by: Oliver Steffen <osteffen@redhat.com>
|
|
RH-Commit: [1/2] 24ec635d43a396ceb50197136ad7ffdc4a614a47 (kraxel.rh/centos-src-edk2)
|
|
|
|
GraphicsConsoleDxe will assert in case the resolution is too small.
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
(cherry picked from commit 58035e8b5e11cfe2b9e6428d14c7817b6b1c83a2)
|
|
---
|
|
OvmfPkg/VirtioGpuDxe/Gop.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/OvmfPkg/VirtioGpuDxe/Gop.c b/OvmfPkg/VirtioGpuDxe/Gop.c
|
|
index f64dfce5f4..d767114bbb 100644
|
|
--- a/OvmfPkg/VirtioGpuDxe/Gop.c
|
|
+++ b/OvmfPkg/VirtioGpuDxe/Gop.c
|
|
@@ -265,7 +265,8 @@ GopInitialize (
|
|
// query host for display resolution
|
|
//
|
|
GopNativeResolution (VgpuGop, &XRes, &YRes);
|
|
- if ((XRes == 0) || (YRes == 0)) {
|
|
+ if ((XRes < 640) || (YRes < 480)) {
|
|
+ /* ignore hint, GraphicsConsoleDxe needs 640x480 or larger */
|
|
return;
|
|
}
|
|
|
|
--
|
|
2.39.3
|
|
|