bugThe GNU Hurd - Bugs: bug #48946, exec server can't properly load...

 
 

bug #48946: exec server can't properly load binaries without a memory manager object

Submitted by:  Brent Baccala <baccala>
Submitted on:  Tue 30 Aug 2016 01:46:17 AM UTC  
 
Category: Hurd ServersSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 30 Aug 2016 11:03:07 PM UTC, comment #1:

Indeed, thanks!

Samuel Thibault <sthibaul>
Project Member
Tue 30 Aug 2016 01:46:17 AM UTC, original submission:

When exec'ing a file, the exec server attempts to obtain a memory object to the file with io_map, and then maps this object into the new task's memory space. If this fails, it then attempts to fall back on reading the file normally, then copying the data into the new task's memory space.

Both of these cases need to respect the 'anywhere' flag, which indicates that a memory mapping can be placed anywhere in the new task's address space and that the kernel will return the address actually used.

The fallback code currently does not handle 'anywhere' mappings correctly; it discards the new address and attempts to use the old one, which prevents successful execution of the binary.

The attached patch fixes the fallback code.

Brent Baccala <baccala>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38385:  exec.patch added by baccala (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sthibaul (Posted a comment)
  • -unavailable- added by baccala (Submitted the item)
  •  

    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
    Tue 30 Aug 2016 11:03:07 PM UTCsthibaulStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Tue 30 Aug 2016 01:46:17 AM UTCbaccalaAttached File-=>Added exec.patch, #38385

    Back to the top


    Powered by Savane 3.1-cleanup1