Re: [PATCH] inet: race in wait for connect.

2007-10-29 Thread Stephen Hemminger
On Mon, 29 Oct 2007 15:38:42 -0700 (PDT) David Miller <[EMAIL PROTECTED]> wrote: > From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Mon, 29 Oct 2007 14:37:14 -0700 > > > On Mon, 29 Oct 2007 19:29:06 -0200 > > "Arnaldo Carvalho de Melo" <[EMAIL PROTECTED]> wrote: > > > > > Em Mon, Oct 29, 2007

Re: [PATCH] inet: race in wait for connect.

2007-10-29 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Mon, 29 Oct 2007 14:37:14 -0700 > On Mon, 29 Oct 2007 19:29:06 -0200 > "Arnaldo Carvalho de Melo" <[EMAIL PROTECTED]> wrote: > > > Em Mon, Oct 29, 2007 at 01:52:22PM -0700, Stephen Hemminger escreveu: > > > Fix possible race while waiting for conn

Re: [PATCH] inet: race in wait for connect.

2007-10-29 Thread Stephen Hemminger
On Mon, 29 Oct 2007 19:29:06 -0200 "Arnaldo Carvalho de Melo" <[EMAIL PROTECTED]> wrote: > Em Mon, Oct 29, 2007 at 01:52:22PM -0700, Stephen Hemminger escreveu: > > Fix possible race while waiting for connections in accept. I don't > > know of a test case that could reproduce this directly. > > >

Re: [PATCH] inet: race in wait for connect.

2007-10-29 Thread Arnaldo Carvalho de Melo
Em Mon, Oct 29, 2007 at 01:52:22PM -0700, Stephen Hemminger escreveu: > Fix possible race while waiting for connections in accept. I don't > know of a test case that could reproduce this directly. > > The state of the socket should be checked before checking the queue. > If the socket has left the

[PATCH] inet: race in wait for connect.

2007-10-29 Thread Stephen Hemminger
Fix possible race while waiting for connections in accept. I don't know of a test case that could reproduce this directly. The state of the socket should be checked before checking the queue. If the socket has left the TCP_LISTEN state, then the accept queue is no longer valid. Signed-off-by: Ste