login
Header Space

 
 

Re: [PATCH] Discard notification signals when a tracer exits

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Petr Tesarik <ptesarik@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, Roland McGrath <roland@...>
Date: Tuesday, March 25, 2008 - 12:33 pm

On 03/25, Oleg Nesterov wrote:

Additional note. Suppose that the tracee dequeues the "good" signal, notices
PT_PTRACED and calls ptrace_stop(). We set TASK_TRACED under ->siglock, without
holding tasklist_lock. At this moment you kill strace, it clears ->exit_code.
The tracee notices it is not traced any longer and returns to get_signal_to_deliver().
Since ->exit_code is cleared, the "right" signal is lost.

So I think this patch adds a race. In some sense (yes I am biased) this is
even worse than the problem this patch tries to solve, because this race
is unlikely and is hard to trigger/debug, and it could be easily unnoticed.

Oleg.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Discard notification signals when a tracer exits, Petr Tesarik, (Tue Mar 25, 10:31 am)
Re: [PATCH] Discard notification signals when a tracer exits, Oleg Nesterov, (Tue Mar 25, 12:33 pm)
speck-geostationary