Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-12093

Backport fixes to UB that can cause SEV-SNP boots to crash

    • EasyFix
    • sst_arch_hw
    • ssg_platform_enablement
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      This issue is not currently hit in RHEL9 images on GCP, but it is a problem if you decide to update your build toolchain for later images.

      We have come across a UB-related crash when a signed integer shifted left by 64 in code paths exercised during SEV-SNP boot. This is exploited in GCC 12.3 and higher, so we're asking distros to apply these fixes

      f79936545fb1 x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot
      fbf6449f84bf x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach
      3e3255265291 x86/boot: Move x86_cache_alignment initialization to correct spot

      found in
      https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git

              arch-hw-x86-triage Arch HW x86 Triage Bot
              dionnaglaze Dionna Glaze (Inactive)
              Arch HW x86 Triage Bot Arch HW x86 Triage Bot
              William Gomeringer William Gomeringer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: