Re: [RFC PATCH] ptrace: make ptrace() fail if the tracee changed its pid unexpectedly

From: Oleg Nesterov
Date: Sat Dec 19 2020 - 14:50:52 EST


On 12/19, Pedro Alves wrote:
>
> BTW, the problem was discovered by Simon Marchi when he tried to write
> a GDB testcase for a multi-threaded exec scenario:

OOPS! Sorry Simon, yes I forgot to add reported-by. Andrew, or Eric, if
you take this patch, could you also add

Reported-by: Simon Marchi <simon.marchi@xxxxxxxxxxxx>

> I've went through GDB's code looking for potential issues with the change and whether
> it would affect GDBs already in the wild. Tricky corner cases abound, but I think
> we're good. Feel free to add my ack:
>
> Acked-by: Pedro Alves <palves@xxxxxxxxxx>

Thanks!

Oleg.