Skip to content

Running on Fedora 36 #24

@osteffenrh

Description

@osteffenrh

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 <keescook@chromium.org>
Date:   Sun Feb 13 10:24:43 2022 -0800

    libsubcmd: Fix use-after-free for realloc(..., 0)
commit 39372df4875060a5931b4bd09362e7689c3cfb96
Author: Josh Poimboeuf <jpoimboe@redhat.com>
Date:   Mon Apr 18 09:50:21 2022 -0700

    libsubcmd: Fix OPTION_GROUP sorting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions