Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2000 19:01:49 +0930 (CST)
From:      ian@niw.com.au
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/17895: stale unix domain connections
Message-ID:  <20000410093149.70F1562D12@rose.niw.com.au>

next in thread | raw e-mail | index | archive | help

>Number:         17895
>Category:       kern
>Synopsis:       stale unix domain connections
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 10 02:40:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ian West
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
SMP kernel, dual PIII-450, 256Megs Memory.

>Description:
Poorly written (alpha) code which opens a unix domain listener socket,
but which fail's to 'attach' in combination with a client attached to
this, can leave open connections which do not appear to time out when
the socket is closed due to a terminate.

I would guess that if enough of these were left laying around it could
eventually chew up enough resouces to cause problems.

netstat -an output follows

cde970c0 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde97140 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde97d80 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde97f00 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde97180 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde974c0 stream   12   0   0   0   0   0 /home/ian/tools/testsocket
cde97640 stream    0   0   0   0   0   0 /home/ian/tools/testsocket
cde978c0 stream    1   0   0   0   0   0 /home/ian/tools/testsocket


>How-To-Repeat:
Open a unix domain socket for listen. Connect to it from a another
program, terminate the listener before the connection has been
'accepted' The connection seems to remain.

>Fix:
Unknown at this stage. I suspect a check needs to be made on
exit for open unix domain sockets ? Where are ipv4 domain sockets
checked ? do they just wait for a timeout ?


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000410093149.70F1562D12>