NetBSD Problem Report #5909

Received: (qmail 7560 invoked from network); 4 Aug 1998 20:34:50 -0000
Message-Id: <199808042034.PAA11105@fezzik.endicor.com>
Date: Tue, 4 Aug 1998 15:34:35 -0500 (CDT)
From: tsarna@endicor.com
Reply-To: tsarna@endicor.com
To: gnats-bugs@gnats.netbsd.org
Cc: kent@eaenki.nde.swri.edu
Subject: Bug in SYN cache code
X-Send-Pr-Version: 3.95

>Number:         5909
>Category:       kern
>Synopsis:       Bug in SYN cache code
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    thorpej
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 04 13:35:00 +0000 1998
>Closed-Date:    Wed May 05 15:45:42 +0000 1999
>Last-Modified:  Wed May 05 15:47:55 +0000 1999
>Originator:     Ty Sarna
>Release:        1.3.2
>Organization:
	Endicor Technologies, Inc., San Antonio, Texas
>Environment:

Host B:

System: NetBSD fezzik.endicor.com 1.3.2 NetBSD 1.3.2 (FEZZIK) #3: Wed Jul 15 12:53:35 CDT 1998 tsarna@fezzik.endicor.com:/usr/src/sys/arch/i386/compile/FEZZIK i386

Host A:

AmigaOS 3.1, InterWorks IS225 TCP/IP stack

>Description:
	SMTP connections from A to B would sometimes hang. This
	happened 3 or 4 times in ~2 months period.

	We happened to catch this as it happened today, and observed
	that netstat on A shows a connection in ESTABLISH state, while
	netstat on B shows no connection at all.

	It also shows:

        325 SYN cache entries added
                0 hash collisions
                303 completed
                0 aborted (no space to build PCB)
                19 timed out
                0 dropped due to overflow
                0 dropped due to bucket overflow
                0 dropped due to RST
                3 dropped due to ICMP unreachable

>How-To-Repeat:
	From Charles Hannum on ICB:

	Okay; I think this is a bug in the `SYN cache' code.
	Consider this case:
	 * Host A sends a SYN.
	 * Host A retransmits the SYN.
	 * Host B gets the first SYN and sends a SYN-ACK.
	 * Host B gets the second SYN and sends a SYN-ACK.
	 * One of the SYN-ACK bounces with an
	   ICMP unreachable, causing the `SYN cache' entry to be
	   removed with no notification.
	 * Host A receives the other SYN-ACK, sends an ACK, and goes to
	   ESTABLISHED state.
>Fix:
	Unknown.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: thorpej 
State-Changed-When: Tue Sep 8 20:32:07 PDT 1998 
State-Changed-Why:  
Fix committed, need confirmation that problem is solved. 


Responsible-Changed-From-To: kern-bug-people->thorpej 
Responsible-Changed-By: thorpej 
Responsible-Changed-When: Tue Sep 8 20:32:07 PDT 1998 
Responsible-Changed-Why:  
Syn cache is my baby. 
State-Changed-From-To: feedback->closed 
State-Changed-By: tsarna 
State-Changed-When: Wed May 5 08:45:42 PDT 1999 
State-Changed-Why:  
Haven't seen problem since using 1.4 kernel. Then again, the original 
configuration of machines where this problem was seen no longer exists. 
I think we can assume it is fixed, though. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.