bugGNU GRUB - Bugs: bug #11312, grub segfaults on (internal)...

 
 

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

bug #11312: grub segfaults on (internal) nested function calls on x86_64

Submitter:  None
Submitted:  Mon 13 Dec 2004 04:32:09 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Postponed Privacy:  Public
Assigned to:  None Originator Name:  John Lane
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Release:  0.95
Reproducibility:  Every Time Planned Release:  None

Sat 15 Dec 2007 04:46:00 PM UTC, comment #3: 

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
Sun 26 Jun 2005 11:04:21 PM UTC, comment #2: 

Debian BTS has another patch, which suggests only "scratch" needs PROT_EXEC, not "disks". Or it may be wrong.

http://bugs.debian.org/cgi-bin/bugreport.cgi/mprotect.diff?bug=293722&msg=3&att=1

Lionel Elie Mamane <lmamane>
Sun 19 Dec 2004 02:57:43 PM UTC, comment #1: 

ChangeLog, please.

Yoshinori K. Okuji <okuji>
Group administrator
Mon 13 Dec 2004 04:32:09 PM UTC, original submission:  

Environment: x86_64 / gcc-3.3.3 / kernel 2.6.9 / glibc-2.3.3

Symptom: grub segfaults on nested function calls

Problem:
  1) malloc'd pages seem to lack the execute bit on x86_64;
  2) grub seems to use some stack pointer diversion to malloc'd pages;
  3) nested functions execute data on the stack;
  4) this causes a segfault (at least on my machine)

A patch to use mmap'd executable pages is attached.

jrl.

Anonymous

 

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

Attached Files
file #2213:  grub-0.95-use_mmap_exec_stack.patch added by None (1KiB - text/x-patch - Patch to use mmap'd memory for executable dynamically allocated stack pages.)

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed
    2004-12-19 okuji StatusNone Postponed
    2004-12-13 None Attached File- Added grub-0.95-use_mmap_exec_stack.patch, #1972

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code