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)
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
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
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.