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

Submitted by:  None
Submitted on:  Mon 13 Dec 2004 04:32:09 PM UTC  
 
Category: InstallationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: PostponedPrivacy: Public
Assigned to: NoneOriginator Name: John Lane
Originator Email: -unavailable-Open/Closed: Closed
Release: 0.95Release: None
Reproducibility: Every TimePlanned 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>
Project 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>
Project 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

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Dec 2007 04:46:00 PM UTCrobertmhOpen/ClosedOpen=>Closed
    Sun 19 Dec 2004 02:57:43 PM UTCokujiStatusNone=>Postponed
    Mon 13 Dec 2004 04:32:09 PM UTCNoneAttached File-=>Added grub-0.95-use_mmap_exec_stack.patch, #1972

    Back to the top


    Powered by Savane 3.1-cleanup1