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

From: Pedro Alves
Date: Wed Jul 27 2011 - 18:45:06 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/