This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/3] posix: Remove dynamic memory allocation from execl{e,p}


On 02/01/2016 06:18 PM, Adhemerval Zanella wrote:

> Right, it is not ensuring the safeness. Is '-fstack-check' the suffice 
> option to ensure it or do we need a more strict one?

In my tests, the initial stack banging probe is sometimes more than a
page away from the current stack pointer, so it does not look safe to me.

For posix_spawn, it's probably simpler for now to compute the shell
invocation in the parent.  That is, perform two vforks in case the first
execve fails.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]