public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/edk2] rawhide: add 0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch
@ 2026-10-28  4:57 Gerd Hoffmann
  0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2026-10-28  4:57 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/edk2
Branch : rawhide
Commit : b60d7c265152965b00ecbf224808d5aa10d4ac5b
Author : Gerd Hoffmann <kraxel@redhat.com>
Date   : 2026-10-27T16:38:34+01:00
Stats  : +33/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/edk2/c/b60d7c265152965b00ecbf224808d5aa10d4ac5b?branch=rawhide

Log:
add 0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch

---
diff --git a/0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch b/0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch
new file mode 100644
index 0000000..a8c62ec
--- /dev/null
+++ b/0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch
@@ -0,0 +1,32 @@
+From c88aff4950547d8953fc48e403fd27e105ec1eeb Mon Sep 17 00:00:00 2001
+From: Gerd Hoffmann <kraxel@redhat.com>
+Date: Tue, 1 Sep 2026 12:59:13 +0200
+Subject: [PATCH 25/25] OvmfPkg/QemuKernelLoaderFsDxe: do not error out on
+ GetTime failures
+
+Downgrade GetTime failures from 'ERROR' to 'WARN'.  Do not return early.
+This prevents DoS attacks by the host (by manipulating the rtc) and
+also improves robustness in general.
+
+Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
+---
+ OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c b/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c
+index d80f1f67c78f..97e145f711d6 100644
+--- a/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c
++++ b/OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.c
+@@ -1252,8 +1252,7 @@ QemuKernelLoaderFsDxeEntrypoint (
+ 
+   Status = gRT->GetTime (&mInitTime, NULL /* Capabilities */);
+   if (EFI_ERROR (Status)) {
+-    DEBUG ((DEBUG_ERROR, "%a: GetTime(): %r\n", __func__, Status));
+-    return Status;
++    DEBUG ((DEBUG_WARN, "%a: GetTime(): %r\n", __func__, Status));
+   }
+ 
+   //
+-- 
+2.56.0
+

diff --git a/edk2.spec b/edk2.spec
index f615290..21a26cb 100644
--- a/edk2.spec
+++ b/edk2.spec
@@ -152,6 +152,7 @@ Patch0021: 0021-pqc-doug-CryptoPkg-OpensslLib-switch-Pkcs7Verify-to-.patch
 Patch0022: 0022-pqc-doug-CryptoPkg-OpensslLib-switch-AuthenticodeVer.patch
 Patch0023: 0023-pqc-SecurityPkg-AuthVariableLib-factor-out-certifica.patch
 Patch0024: 0024-pqc-SecurityPkg-AuthVariableLib-accept-ml-dsa-certif.patch
+Patch0025: 0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch
 
 
 # needed by %prep

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-28  4:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-28  4:57 [rpms/edk2] rawhide: add 0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox