NetBSD Problem Report #30160
From jmcneill@invisible.ca Fri May 6 23:12:26 2005
Return-Path: <jmcneill@invisible.ca>
Received: from triton.invisible.ca (CPE0000f875dc7b-CM0011aec561d6.cpe.net.cable.rogers.com [69.195.239.196])
by narn.netbsd.org (Postfix) with ESMTP id 087E763B116
for <gnats-bugs@gnats.NetBSD.org>; Fri, 6 May 2005 23:12:26 +0000 (UTC)
Message-Id: <20050506231147.1C7222C006A@triton.invisible.ca>
Date: Fri, 6 May 2005 20:11:47 -0300 (ADT)
From: jmcneill@NetBSD.org
Reply-To: jmcneill@NetBSD.org
To: gnats-bugs@netbsd.org
Subject: TCP SACK code causes 'panic: m_copydata: m == 0, len 1'
X-Send-Pr-Version: 3.95
>Number: 30160
>Category: kern
>Synopsis: TCP SACK code is unstable and periodically causes a 'panic: m_copydata: m == 0, len 1'
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 06 23:13:00 +0000 2005
>Closed-Date: Mon May 09 14:43:51 +0000 2005
>Last-Modified: Wed May 11 18:12:01 +0000 2005
>Originator: jmcneill@NetBSD.org
>Release: NetBSD 3.99.3, NetBSD 2.99.16
>Organization:
Invisible
>Environment:
System: NetBSD triton.invisible.ca 3.99.3 NetBSD 3.99.3 (TRITON.MP) #0: Sun Apr 24 13:27:16 ADT 2005 jmcneill@triton.invisible.ca:/usr/obj/sys/arch/sparc/compile/TRITON.MP sparc
Architecture: sparc
Machine: sparc
System: NetBSD centauri.invisible.ca 2.99.16 NetBSD 2.99.16 (CENTAURI) #0: Mon Mar 14 07:57:22 AST 2005 jmcneill@centauri.invisible.ca:/u2/obj/sys/arch/alpha/compile/CENTAURI alpha
Architecture: alpha
Machine: alpha
>Description:
Periodically, two of my machines (running completely different workloads) will
die with 'panic: m_copydata: m == 0, len 1'. One is an MP sparc, the other is
a UP alpha.
Disabling sack makes the problem disappear:
sysctl -w net.inet.tcp.sack=0
sysctl -w net.inet6.tcp6.sack=0
This is a definite must-fix before the next release.
>How-To-Repeat:
Unknown.
>Fix:
Unknown. See 'Description' for workaround.
>Release-Note:
>Audit-Trail:
From: Geoff Wing <gcw@pobox.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/30160: TCP SACK code causes 'panic: m_copydata: m == 0, len 1'
Date: Sat, 7 May 2005 12:45:52 +1000
On Saturday 2005-05-07 09:13 +1000, jmcneill@NetBSD.org output:
:Periodically, two of my machines (running completely different workloads) will
:die with 'panic: m_copydata: m == 0, len 1'. One is an MP sparc, the other is
:a UP alpha.
:
:Disabling sack makes the problem disappear:
: sysctl -w net.inet.tcp.sack=0
: sysctl -w net.inet6.tcp6.sack=0
Note the sysctl names have changed in current. net.inet.tcp.sack is now a
node not a leaf. e.g. the first one is now net.inet.tcp.sack.enable
A backtrace on i386 around 7th March:
panic: m_copydata: m == 0, len 1
Begin traceback...
m_copydata(0,0,1,c143897c,c1472d18) at netbsd:m_copydata+0x81
tcp_build_datapkt(c1ba48fc,c147c1c0,65a,1,34) at netbsd:tcp_build_datapkt+0x229
tcp_output(c1ba48fc,cc467e10,c16df208,caf1c824,c1ba48fc) at netbsd:tcp_output+0xd6b
tcp_sack_newack(c1ba48fc,caf1c824,cc467f08,caf1c838,1) at netbsd:tcp_sack_newack+0xed
tcp_input(c1462b00,14,6,c16dfe08,c1462b00) at netbsd:tcp_input+0x146a
ip_input(c1462b00,0,0,200246,0) at netbsd:ip_input+0x53f
ipintr(1f,bfbf001f,1f,bfbf001f,85ea2dc) at netbsd:ipintr+0x76
DDB lost frame for netbsd:Xsoftnet+0x41, trying 0xcc467fa8
Xsoftnet() at netbsd:Xsoftnet+0x41
--- interrupt ---
0x200202:
End traceback...
From: YAMAMOTO Takashi <yamt@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30160 CVS commit: src/sys/netinet
Date: Sun, 8 May 2005 04:48:47 +0000 (UTC)
Module Name: src
Committed By: yamt
Date: Sun May 8 04:48:47 UTC 2005
Modified Files:
src/sys/netinet: tcp_output.c
Log Message:
tcp_output: clear TH_FIN where appropriate. related to PR/30160.
To generate a diff of this commit:
cvs rdiff -r1.131 -r1.132 src/sys/netinet/tcp_output.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: YAMAMOTO Takashi <yamt@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30160 CVS commit: src/sys/netinet
Date: Sun, 8 May 2005 04:51:05 +0000 (UTC)
Module Name: src
Committed By: yamt
Date: Sun May 8 04:51:05 UTC 2005
Modified Files:
src/sys/netinet: tcp_output.c
Log Message:
tcp_output: don't try to send more data than we have. PR/30160.
To generate a diff of this commit:
cvs rdiff -r1.132 -r1.133 src/sys/netinet/tcp_output.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: yamt@netbsd.org
State-Changed-When: Sun, 08 May 2005 04:53:52 +0000
State-Changed-Why:
please try the latest source.
State-Changed-From-To: feedback->closed
State-Changed-By: yamt@netbsd.org
State-Changed-When: Mon, 09 May 2005 14:43:51 +0000
State-Changed-Why:
confirmed by submitter.
i'll request a pullup for netbsd-3 later.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30160 CVS commit: [netbsd-3] src/sys/netinet
Date: Wed, 11 May 2005 18:10:07 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Wed May 11 18:10:07 UTC 2005
Modified Files:
src/sys/netinet [netbsd-3]: tcp_output.c
Log Message:
Pull up revision 1.132 (requested by yamt in ticket #293):
tcp_output: clear TH_FIN where appropriate. related to PR/30160.
To generate a diff of this commit:
cvs rdiff -r1.128.2.2 -r1.128.2.3 src/sys/netinet/tcp_output.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30160 CVS commit: [netbsd-3] src/sys/netinet
Date: Wed, 11 May 2005 18:11:03 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Wed May 11 18:11:03 UTC 2005
Modified Files:
src/sys/netinet [netbsd-3]: tcp_output.c
Log Message:
Pull up revision 1.133 (requested by yamt in ticket #293):
tcp_output: don't try to send more data than we have. PR/30160.
To generate a diff of this commit:
cvs rdiff -r1.128.2.3 -r1.128.2.4 src/sys/netinet/tcp_output.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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.