Re: [PATCH v2 43/43] ncpfs: Use set_current_blocked()

From: Oleg Nesterov
Date: Wed Aug 24 2011 - 13:39:31 EST


On 08/19, Matt Fleming wrote:
>
> From: Matt Fleming <matt.fleming@xxxxxxxxx>
>
> As described in e6fa16ab ("signal: sigprocmask() should do
> retarget_shared_pending()") the modification of current->blocked is
> incorrect as we need to check whether the signal we're about to block
> is pending in the shared queue.
>
> Also, there's no need to hold sighand->siglock while reading
> sighand->action[] because the lock is dropped across the call to
> do_ncp_rpc_call() during which time another thread could modify
> ->action[].

Unlless you object, I am going to add the following into the changelog:

Note: the current code does the strange things which nobody can
explain, especially the PF_EXITING/SIGKILL thing. This patch does
try to change this.

and push the patch into ptrace branch.

Oleg.

--
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/