kern/128974: unp_connect() unlocking unp if UNP_CONNECTING

Larry Baird lab at
Tue Nov 18 13:50:01 PST 2008

>Number:         128974
>Category:       kern
>Synopsis:       unp_connect() unlocking unp if UNP_CONNECTING
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 18 21:50:01 UTC 2008
>Originator:     Larry Baird
>Release:        FreeBSD 6.3-PRERELEASE i386
System: FreeBSD 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Fri Jan 4 05:30:56 EST 2008 root at i386

	In function unp_connect() of uipc_usrreq.c a test for UNP_CONNECTING
being set is made.  If the flag is set, UNP_UNLOCK() is called and EALREADY
is returned. Calling functions of unp_connect() except unp to still be locked.
Don't call UNP_UNLOCK() if UNP_CONNECTING is set.


More information about the freebsd-bugs mailing list