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

2009-05-14 Thread Oren Laadan
Dan, Now after the rework of the patchset, it's probably a good time to add support for this. I'm unsure if the personality can affect other restore actions that take place elsewhere If so, probably the correct way is to: 1) restore personality as part of the task (in the beginning) 2)

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

2009-04-14 Thread Oren Laadan
Oren Laadan wrote: Serge E. Hallyn wrote: Quoting Dan Smith (da...@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

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

2009-04-14 Thread Dan Smith
OL In fact, if elsewhere we restore current-personality of the task, OL then unless we move it to cr_read_mm(), it will overwrite it :( Should we move it or just remove RIE before we start the restart and let the task regain the flag if it had it before? -- Dan Smith IBM Linux Technology Center

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

2009-04-06 Thread Serge E. Hallyn
Quoting Dan Smith (da...@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.