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

Submitter:  Gary Lin <gary_lin>
Submitted:  Thu 21 Nov 2013 02:18:54 AM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  other
Release:  Reproducibility:  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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by gary_lin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-11-22 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2013-11-21 gary_lin Attached File- Added grub2-OVMF-crash.png, #29679
        Attached File- Added kvm-internal-error.txt, #29680

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code