[Bug 1731241] [NEW] grub exit on arm64-efi crashes

Ike Panhc ike.pan at canonical.com
Thu Nov 9 11:43:32 UTC 2017


Public bug reported:

[Impact]

 * grub exit on arm64-efi causes exception

[Test Case]

 * Using grub cmdline and exit shall return to UEFI

[Regression Potential]

 * Low regression risk due to
   - Only codes on exit with efi platform modified
   - patch cherry-picked from upstream and already in grub2 since zesty

[Other Info]
 
 * Patch on upstream

commit c945ca75c3b2b900040b905323b1226cb60a1166
Author: Mark Salter <msalter at redhat.com>
Date: Fri Aug 15 12:22:43 2014 -0400

    Fix exit to EFI firmware

    The current code for EFI grub_exit() calls grub_efi_fini() before
    returning to firmware. In the case of ARM, this leaves a timer
    event running which could lead to a firmware crash. This patch
    changes this so that grub_machine_fini() is called with a NORETURN
    flag. This allows machine-specific shutdown to happen as well
    as the shutdown done by grub_efi_fini().

    Signed-off-by: Mark Salter <msalter at redhat.com>

** Affects: grub2 (Ubuntu)
     Importance: Undecided
     Assignee: Ike Panhc (ikepanhc)
         Status: In Progress

** Changed in: grub2 (Ubuntu)
     Assignee: (unassigned) => Ike Panhc (ikepanhc)

** Changed in: grub2 (Ubuntu)
       Status: New => In Progress

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

Title:
  grub exit on arm64-efi crashes

Status in grub2 package in Ubuntu:
  In Progress

Bug description:
  [Impact]

   * grub exit on arm64-efi causes exception

  [Test Case]

   * Using grub cmdline and exit shall return to UEFI

  [Regression Potential]

   * Low regression risk due to
     - Only codes on exit with efi platform modified
     - patch cherry-picked from upstream and already in grub2 since zesty

  [Other Info]
   
   * Patch on upstream

  commit c945ca75c3b2b900040b905323b1226cb60a1166
  Author: Mark Salter <msalter at redhat.com>
  Date: Fri Aug 15 12:22:43 2014 -0400

      Fix exit to EFI firmware

      The current code for EFI grub_exit() calls grub_efi_fini() before
      returning to firmware. In the case of ARM, this leaves a timer
      event running which could lead to a firmware crash. This patch
      changes this so that grub_machine_fini() is called with a NORETURN
      flag. This allows machine-specific shutdown to happen as well
      as the shutdown done by grub_efi_fini().

      Signed-off-by: Mark Salter <msalter at redhat.com>

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1731241/+subscriptions



More information about the foundations-bugs mailing list