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

Submitter:  None
Submitted:  Wed 19 May 2004 12:08:44 AM UTC
   
 
Category:  None Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  KB Sriram
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Release:  0.94
Reproducibility:  Every Time Planned 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>
Group 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

 

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

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
  • -email is unavailable- added by robertmh (Posted a comment)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed
    2004-05-19 None Attached File- Added grub-sanity-check.patch, #1321

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code