bugGNU GRUB - Bugs: bug #41655, booting problem with x86_64...

 
 

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

bug #41655: booting problem with x86_64 specific image with GRUB (apparently in relocator.c)

Submitted by:  Marcin Dawidowicz <dejw>
Submitted on:  Fri 21 Feb 2014 12:59:40 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: None

Wed 26 Mar 2014 07:49:16 AM UTC, comment #1:

Fixed. Please retest and feel free to reopen if problem persists.

Vladimir Serbinenko <phcoder>
Project Administrator
Fri 21 Feb 2014 12:59:40 PM UTC, original submission:

Hello,

I have a problem with loading x86_64 image (multiboot2) using GRUB. 

GRUB is started directly from EFI shell.

I've monitored that problem appears in git-core/lib/relocator.c, function malloc_in_range()
in following part:
...
#if GRUB_RELOCATOR_HAVE_LEFTOVERS
 case CHUNK_TYPE_LEFTOVER:
   {
     unsigned offstart = alloc_start
% GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
     unsigned offend = alloc_end
% GRUB_RELOCATOR_FIRMWARE_REQUESTS_QUANT;
     struct grub_relocator_fw_leftover *lo
= events[last_lo].leftover;
     lo->freebytes[offstart / 8]
&= ((1 << (8 - (start % 8))) - 1);
     grub_memset (lo->freebytes + (offstart + 7) / 8, 0,
  offend / 8 - (offstart + 7) / 8);
     lo->freebytes[offend / 8] &= ~((1 << (offend % 8)) - 1);
...

Problem on my side appear when I initiate boot of one of my images.
Then I get here values:
alloc_start:0x158ff8 alloc_end:0x159000
this affects that offend will be 0, which affects badly grub_memset() size parameter.

I don't know where is root cause of problem, but probably somewhere in relocator.

Marcin Dawidowicz <dejw>

 

No files currently attached

 

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 dejw (Submitted the item)
  • -unavailable- added by dejw (GRUB x86_64 boot bug)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 26 Mar 2014 07:49:16 AM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 21 Feb 2014 12:59:40 PM UTCdejwCarbon-Copy-=>Added dejw

    Back to the top


    Powered by Savane 3.1-cleanup1