Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running on Fedora 36 #24

Open
osteffenrh opened this issue Nov 28, 2022 · 0 comments
Open

Running on Fedora 36 #24

osteffenrh opened this issue Nov 28, 2022 · 0 comments

Comments

@osteffenrh
Copy link
Contributor

I ran into some issues then trying to use SVSM on Fedora 36.
I know the main focus is Ubuntu 22.04 right now, but I'll leave this info here just in case.

OVMF crashes

The OVMF crashes right after the start when built on Fedora 36 (gcc 12).

Both of these workarounds to the trick:

  1. Disable LTO. See this patch by Alexey Kardashevskiy.
  2. Add -fno-omit-frame-pointer to CC_FLAGS , see https://edk2.groups.io/g/devel/message/90443

Building the Linux kernels

When building the Linux kernels for host and guest I found that I needed to apply these two commits to fix some build issues:

commit 879e518ad704859f7288f6732902dd115e45294a
Author: Kees Cook <[email protected]>
Date:   Sun Feb 13 10:24:43 2022 -0800

    libsubcmd: Fix use-after-free for realloc(..., 0)
commit 39372df4875060a5931b4bd09362e7689c3cfb96
Author: Josh Poimboeuf <[email protected]>
Date:   Mon Apr 18 09:50:21 2022 -0700

    libsubcmd: Fix OPTION_GROUP sorting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant