Re: [PATCH 0/8] make vfork killable/restartable/traceable

Pedro Alves
2011-07-27T22:45:05Z

On Wednesday 27 July 2011 17:31:59, Oleg Nesterov wrote:
> Hello.
>
> CLONE_VFORK sleeps in TASK_INTERRUPTIBLE until the child exits/execs.
> This is obviously not good, it is sooo simple to create the task which
> doesn't react to SIGKILL/SIGSTOP.
>
> Questions:
>
> - do we really need this?
>
> I think we do. This really "looks like a bug" in any case,
> even if nobody ever complained afaik.
>
> - may be 1-3 is enough?
>
> may be... but personally I think SIGSTOP/ptrace should work
> too.

Thanks, me too. If not SIGSTOP, then PTRACE_STOP. The fact that it
doesn't has led to the need for workarounds in gdb. Do you see
any way gdb will be able to check at runtime its workarounds
won't be needed anymore ?

--
Pedro Alves