cvs commit: src/sys/netinet tcp_usrreq.c

Robert Watson rwatson at FreeBSD.org
Fri Jan 18 04:19:51 PST 2008


rwatson     2008-01-18 12:19:51 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_usrreq.c 
  Log:
  In tcp_ctloutput(), don't hold the inpcb lock over sooptcopyin(), rather,
  drop the lock and then re-acquire it, revalidating TCP connection state
  assumptions when we do so.  This avoids a potential lock order reversal
  (and potential deadlock, although none have been reported) due to the
  inpcb lock being held over a page fault.
  
  MFC after:      1 week
  PR:             102752
  Reviewed by:    bz
  Reported by:    Václav Haisman <v dot haisman at sh dot cvut dot cz>
  
  Revision  Changes    Path
  1.166     +55 -25    src/sys/netinet/tcp_usrreq.c


More information about the cvs-src mailing list