Re: [Bug 11063][PATCH] exec: fix stack excutability without PT_GNU_STACK

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>, Hugh Dickins <hugh@...>
Cc: Andrew Morton <akpm@...>, Ollie Wild <aaw@...>, <bugme-daemon@...>, Ingo Molnar <mingo@...>, Roland McGrath <roland@...>, Peter Zijlstra <a.p.zijlstra@...>, <stable@...>, <linux-kernel@...>
Date: Thursday, July 10, 2008 - 5:21 pm

On 10 Jul 2008 at 21:19, Hugh Dickins wrote:


alternatively, if there's a concern of stack_vma->vm_flags manipulation
during execve (maybe not now, but in the future or in non-ELF formats
that also want to rely on personality bits), you could opt for a safer

	vm_flags = vma->vm_flags | (VM_STACK_FLAGS & (VM_EXEC | VM_MAYEXEC));

to just recompute the exec rights related bits.




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Bug 11063][PATCH] exec: fix stack excutability without ..., , (Thu Jul 10, 5:21 pm)