kern/78824: race condition close()ing and read()ing the same socketpair on SMP.

Marc Olzheim marcolz at
Fri May 27 06:44:45 PDT 2005

On Fri, May 27, 2005 at 12:47:28PM +0100, Robert Watson wrote:
> Hmm.  I'm unable to reproduce this on local SMP hardware, although I can 
> see at least one way that the race could occur.  Could you try the 
> attached patch and see if it helps matters?  This is a slight shot in the 
> dark but closes at least two races in the transition of socket state with 
> respect to socket buffer state.

I'll cvsup back to 2005.05.03 (where I can reproduce it easily) and
apply your patch and see what happens.

Race conditions and reproducability are not terms that go together
well. :-(


More information about the freebsd-stable mailing list