Re: [PATCH] Fix inet_diag.ko register vs rcv race

2007-11-29 Thread Arnaldo Carvalho de Melo
Em Thu, Nov 29, 2007 at 11:37:34PM +1100, Herbert Xu escreveu: > On Tue, Nov 27, 2007 at 04:09:43PM +0300, Pavel Emelyanov wrote: > > The following race is possible when one cpu unregisters the handler > > while other one is trying to receive a message and call this one: > > Good catch! But I thin

Re: [PATCH] Fix inet_diag.ko register vs rcv race

2007-11-29 Thread Herbert Xu
On Tue, Nov 27, 2007 at 04:09:43PM +0300, Pavel Emelyanov wrote: > The following race is possible when one cpu unregisters the handler > while other one is trying to receive a message and call this one: Good catch! But I think we need a bit more to close this fully. Dumps can resume asynchronousl

[PATCH] Fix inet_diag.ko register vs rcv race

2007-11-27 Thread Pavel Emelyanov
The following race is possible when one cpu unregisters the handler while other one is trying to receive a message and call this one: CPU1: CPU2: inet_diag_rcv() inet_diag_unregister() mutex_lock(&inet_diag_mut