lkml.org 
[lkml]   [2020]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH] ptrace: make ptrace() fail if the tracee changed its pid unexpectedly
From
Date
On 2020-12-19 2:33 p.m., Oleg Nesterov wrote:
> 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@efficios.com>

I tried the original reproducer on a patched kernel, and it looks good.
GDB's behavior is still not super clean when this situation happens: a
PTRACE_GETREGS on the (disappeared) leader now fails with ESRCH (that's
what we want), and that interrupts the "continue" command and
unexpectedly brings back the prompt while leaving the other thread
running. But that is all logic that will have to be fixed inside GDB.

So, feel free to add

Acked-by: Simon Marchi <simon.marchi@efficios.com>

too.

Thanks!

Simon

\
 
 \ /
  Last update: 2020-12-20 05:50    [W:0.045 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site