[Devel] Re: [PATCH] Remove READ_IMPLIES_EXEC during restart

Oren Laadan orenl at cs.columbia.edu
Mon Apr 13 23:05:00 PDT 2009



Oren Laadan wrote:
> 
> Serge E. Hallyn wrote:
>> Quoting Dan Smith (danms at us.ibm.com):
>>> On s390, all tasks have READ_IMPLIES_EXEC set in current->personality,
>>> which causes the restart process to map things like the stack and heap as
>>> executable.  During the restart process, remove this bit and restore the
>>> original personality afterwards.
>>>
>>> This seems a little ugly, but I don't know that there's a better place for
>>> it.
>> Well imo the only other thing to do would be to do the same thing but
>> just around the main restart_memory function.
>>
> 
> I second that. Added.
> 

In fact, if elsewhere we restore current->personality of the task,
then unless we move it to cr_read_mm(), it will overwrite it :(

Oren.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list