diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2024-09-05 16:12:07 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2024-12-16 07:31:28 +0100 |
| commit | 57e2cc9abf5da38f600354fe920ff20e719607b4 (patch) | |
| tree | e941a0b159cc4dca2c6c6d43dbe7e07f807a0abb /hw/misc/sifive_test.c | |
| parent | ca80a5d026a280762e0772615f1988db542b3ade (diff) | |
| download | focaccia-qemu-57e2cc9abf5da38f600354fe920ff20e719607b4.tar.gz focaccia-qemu-57e2cc9abf5da38f600354fe920ff20e719607b4.zip | |
x86/loader: only patch linux kernels
If the binary loaded via -kernel is *not* a linux kernel (in which case protocol == 0), do not patch the linux kernel header fields. It's (a) pointless and (b) might break binaries by random patching and (c) changes the binary hash which in turn breaks secure boot verification. Background: OVMF happily loads and runs not only linux kernels but any efi binary via direct kernel boot. Note: Breaking the secure boot verification is a problem for linux kernels too, but fixed that is left for another day ... Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-ID: <20240905141211.1253307-3-kraxel@redhat.com>
Diffstat (limited to 'hw/misc/sifive_test.c')
0 files changed, 0 insertions, 0 deletions