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)

Submitter:  Marcin Dawidowicz <dejw>
Submitted:  Fri 21 Feb 2014 12:59:40 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  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>
Group 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>

 

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

No files currently attached

 

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

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-26 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2014-02-21 dejw Carbon-Copy- Added dejw

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code