public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/edk2] rawhide: add 0025-OvmfPkg-QemuKernelLoaderFsDxe-do-not-error-out-on-Ge.patch
Date: Wed, 28 Oct 2026 04:57:23 GMT	[thread overview]
Message-ID: <179316344393.1.10836749261834754881.rpms-edk2-b60d7c265152@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-28  4:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179316344393.1.10836749261834754881.rpms-edk2-b60d7c265152@fedoraproject.org \
    --to=kraxel@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox