[PATCH v2 1/3] posix: Remove dynamic memory allocation from execl{e,p}
Florian Weimer
fweimer@redhat.com
Tue Feb 2 11:24:00 GMT 2016
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
More information about the Libc-alpha
mailing list