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

amd-ucode early loading broken

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • CentOS Stream 8, CentOS Stream 9
    • linux-firmware
    • None
    • linux-firmware-20231030-141.el9
    • None
    • Important
    • rhel-kernel-maint
    • ssg_core_kernel
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Have amd-ucode early loading work

      Please provide the package NVR for which bug is seen:

      linux-firmware-20230824-118.git0e048b06.el8.noarch
      linux-firmware-20230310-135.el9_2.noarch
      linux-firmware-20230814-139.el9.noarch

      How reproducible:

      100%

      Steps to reproduce

      Dracut generates AuthenticAMD.bin by doing more or less `cat /usr/lib/firmware/amd-ucode/* > AuthenticAMD.bin`, AuthenticAMD.bin must only contains the uncompressed amd-ucode files, no README*, no .xz.

      In Centos stream 8, `linux-firmware` contains (https://centos.pkgs.org/8-stream/centos-baseos-x86_64/linux-firmware-20230824-118.git0e048b06.el8.noarch.rpm.html):

      /usr/lib/firmware/amd-ucode/README
      /usr/lib/firmware/amd-ucode/microcode_amd.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam16h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam19h.bin
      

      In EL 9.2 (https://rockylinux.pkgs.org/9/rockylinux-baseos-x86_64/linux-firmware-20230310-135.el9_2.noarch.rpm.html)

      /usr/lib/firmware/amd-ucode/README.xz
      /usr/lib/firmware/amd-ucode/microcode_amd.bin.xz
      /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin.xz
      /usr/lib/firmware/amd-ucode/microcode_amd_fam16h.bin.xz
      /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin.xz
      /usr/lib/firmware/amd-ucode/microcode_amd_fam19h.bin.xz
      

      In Centos stream 9 (https://centos.pkgs.org/9-stream/centos-baseos-x86_64/linux-firmware-20230814-139.el9.noarch.rpm.html)

      /usr/lib/firmware/amd-ucode/README.xz
      /usr/lib/firmware/amd-ucode/microcode_amd.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam15h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam16h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam17h.bin
      /usr/lib/firmware/amd-ucode/microcode_amd_fam19h.bin
      

      Expected results

      It works

      Actual results

      At least on EL8, having the README prevented early loading to work, haven't tested with EL9

      Additional info

      This can be fixed by packaging (moving the README* to `/usr/share/doc/...`), or by fixing dracut (https://github.com/dracutdevs/dracut/pull/2544). This also impacts Fedora.

       

      To uncompress the *bin.xz in 9.2 you can backport https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/WHENCE?id=ee91452dac5abfc4c5b9827cf55e701d8c0ca678

              scweaver@redhat.com Scott Weaver
              champtar Etienne Champetier
              Jan Stancek Jan Stancek
              Laura Trivelloni Laura Trivelloni
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: