bugGNU GRUB - Bugs: bug #9003, Runtime checks before jumping into...

 
 

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

bug #9003: Runtime checks before jumping into bootstrapped code

Submitted by:  None
Submitted on:  Wed 19 May 2004 12:08:44 AM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: None
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: KB Sriram
Originator Email: -unavailable-Open/Closed: Closed
Release: 0.94Release: None
Reproducibility: Every TimePlanned Release: None

Sat 15 Dec 2007 12:51:41 PM UTC, comment #1:

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Project Administrator
Wed 19 May 2004 12:08:44 AM UTC, original submission:

I'd like to suggest that GRUB do a small sanity check at
runtime prior to loading important sectors and jumping into
them. Specifically, check for magic values when loading the
first sector of stage 1.5 or stage 2, and also when loading
the remaining sectors.

This will reduce the chances of GRUB jumping into unknown
code when installation mistakes or other problems cause it
to load random data. e.g. BIOS bugs passing in the wrong
drive making it load sectors from the wrong place, etc.

Would like to offer the following patch to do it, though
I'm afraid it's ugly and shortens an existing error message
in order to squeeze one of the checks into the first
sector.

If it helps, be happy to also submit a patch to update the
documentation about the error messages.

Regards,
-kb

Anonymous

 

Attached Files
file #1329:  grub-sanity-check.patch added by None (3KiB - application/octet-stream - Diffs against grub-0..94 to perform a few runtime checks)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by robertmh (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Dec 2007 12:51:41 PM UTCrobertmhOpen/ClosedOpen=>Closed
    Wed 19 May 2004 12:08:44 AM UTCNoneAttached File-=>Added grub-sanity-check.patch, #1321

    Back to the top


    Powered by Savane 3.1-cleanup1