[Bug 2004201] Re: is-not-revoked does not handle gzip'd kernels

Launchpad Bug Tracker 2004201 at bugs.launchpad.net
Mon Jan 30 23:09:00 UTC 2023


** Merge proposal linked:
   https://code.launchpad.net/~dannf/shim/+git/shim-signed/+merge/436567

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to shim-signed in Ubuntu.
https://bugs.launchpad.net/bugs/2004201

Title:
  is-not-revoked does not handle gzip'd kernels

Status in shim-signed package in Ubuntu:
  New

Bug description:
  arm64 kernels are gzip'd by default, which currently breaks is-not-
  revoked:

  ubuntu at ubuntu:~$ sudo file /boot/vmlinuz-5.15.0-57-generic 
  /boot/vmlinuz-5.15.0-57-generic: gzip compressed data, was "vmlinuz-5.15.0-57-generic.efi.signed", last modified: Tue Nov 29 10:47:41 2022, max compression, from Unix, original size modulo 2^32 46283136

  ubuntu at ubuntu:~$ sudo /usr/lib/shim/is-not-revoked /boot/vmlinuz-5.15.0-57-generic ~
  Invalid DOS header magic
  Can't open image /boot/vmlinuz-5.15.0-57-generic
  E: /boot/vmlinuz-5.15.0-57-generic: Could not finder signing subject, sbverify output follows:
  Invalid DOS header magic
  Can't open image /boot/vmlinuz-5.15.0-57-generic

  If I decompress the vmlinuz file in place, it works:
  ubuntu at ubuntu:~$ sudo /usr/lib/shim/is-not-revoked /boot/vmlinuz-5.15.0-57-generic ~
  Invalid DOS header magic
  Can't open image /boot/vmlinuz-5.15.0-57-generic
  E: /boot/vmlinuz-5.15.0-57-generic: Could not finder signing subject, sbverify output follows:
  Invalid DOS header magic
  Can't open image /boot/vmlinuz-5.15.0-57-generic
  ubuntu at ubuntu:~$ echo $?
  1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/shim-signed/+bug/2004201/+subscriptions




More information about the foundations-bugs mailing list