bugGNU GRUB - Bugs: bug #40655, grub2 crashed OVMF

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40655: grub2 crashed OVMF

Submitted by:  Gary Lin <gary_lin>
Submitted on:  Thu 21 Nov 2013 02:18:54 AM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: otherReproducibility: Every Time
Planned Release: None

Fri 22 Nov 2013 04:41:37 AM UTC, comment #2:

Thank you very much for tracking this. callwrap.S fixed.

Vladimir Serbinenko <phcoder>
Project Administrator
Thu 21 Nov 2013 07:02:16 AM UTC, comment #1:

I found reversing the callwrap(*) patch fixes the issue.

(*) http://git.savannah.gnu.org/cgit/grub.git/commit/?id=91dc6073309e5582d3293c6c0a037d7f3457dc32

Gary Lin <gary_lin>
Thu 21 Nov 2013 02:18:54 AM UTC, original submission:

After applying the patch to align the stack(*), grub2 crashed my UEFI VM(OVMF)
while I launched grub.efi either from the shell or the boot manager.

OS: openSUSE 12.3 with kernel 3.12
QEMU version: 1.6.0
UEFI: OVMF r14871

Procedure to reproduce:
1. copy grub.efi to hda-contents/

2. Start the virtual machine
$ qemu-system-x86_64 -s -enable-kvm -bios /usr/share/qemu/ovmf-x86_64.bin \
-hda fat:hda-contents/ -monitor stdio -debugcon file:debug.log \
-global isa-debugcon.iobase=0x402

3. Use uefi shell to execute grub.efi
shell> grub.efi

When grub.efi started, it printed a few lines such as "Welcom to GRUB!" and
then the VM crashed with a KVM internal error.

(*) http://git.savannah.gnu.org/cgit/grub.git/commit/?id=7960d3e1823bd3ea569109dcfe269447c3589fac

Gary Lin <gary_lin>

 

Attached Files
file #29679:  grub2-OVMF-crash.png added by gary_lin (20KiB - image/png - screenshot and the registers dump from qemu)
file #29680:  kvm-internal-error.txt added by gary_lin (2KiB - text/plain - screenshot and the registers dump from qemu)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by gary_lin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Nov 2013 04:41:37 AM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 21 Nov 2013 02:18:54 AM UTCgary_linAttached File-=>Added grub2-OVMF-crash.png, #29679
      Attached File-=>Added kvm-internal-error.txt, #29680

    Back to the top


    Powered by Savane 3.1-cleanup1