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

Submitter:  Brent Baccala <baccala>
Submitted:  Tue 30 Aug 2016 01:46:17 AM UTC
   
 
Category:  Hurd Servers Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

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

Indeed, thanks!

Samuel Thibault <sthibaul>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by sthibaul (Posted a comment)
  • -email is unavailable- added by baccala (Submitted the item)
  •  

    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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-30 sthibaul StatusNone Fixed
        Open/ClosedOpen Closed
    2016-08-30 baccala Attached File- Added exec.patch, #38385

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code