From nobody@FreeBSD.org  Mon Dec 13 09:57:23 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E916F16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 09:57:23 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D0B6943D2F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 09:57:23 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBD9vMmT077285
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 13 Dec 2004 09:57:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBD9vM9S077284;
	Mon, 13 Dec 2004 09:57:22 GMT
	(envelope-from nobody)
Message-Id: <200412130957.iBD9vM9S077284@www.freebsd.org>
Date: Mon, 13 Dec 2004 09:57:22 GMT
From: Nenad Gavrilovic <neca@boox.co.yu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: When close ipx socket kernel panic
X-Send-Pr-Version: www-2.3

>Number:         75014
>Category:       kern
>Synopsis:       When close ipx socket kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    rwatson
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 13 10:00:56 GMT 2004
>Closed-Date:    Sun Nov 27 18:44:08 GMT 2005
>Last-Modified:  Sun Nov 27 18:44:08 GMT 2005
>Originator:     Nenad Gavrilovic
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
BOOX Computers
>Environment:
FreeBSD necatest.boox.co.yu 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #14: Sat Dec 11 20:36:11 CET 2004 root@necatest.boox.co.yu:/usr/obj/usr/src/sys/IPX i386

config IPX
GENERIC,v 1.413.2.6.2.2
with changes:
ident IPX

# NetWare
device          ef
options         ETHER_II
Problem repeat with all fremes
#options         ETHER_8023
#options         ETHER_8022
#options         ETHER_SNAP
options         IPX
#options        NCP

Debug options
#options         PREEMPTION
#options         ADAPTIVE_GIANT
#options         MUTEX_NOINLINE
#options         MUTEX_DEBUG

Debug options
makeoptions     DEBUG=-g
options         KDB
#options         KDB_TRACE
options         DDB
#options         KTRACE
#options         KTRACE_REQUEST_POOL=101
options         INVARIANTS
options         INVARIANT_SUPPORT

>Description:
panic: mutex rtentry not owned at /usr/src/sys/net/route.c:241
KDB: enter: panic
[thread 100053]
Stopped at kdb_enter+0x2b: nop
db> trace
kdb_enter
panic
_mtx_assert
rtfree
ipx_pcbdetach
ipx_detach
soclose
soo_close
fdrop_locked
fdrop
closef
close
syscall
>How-To-Repeat:
1.
kldload ncp
ncplist s

2.
When use mars_nwe when You end nwbind or nwserv thay close ipx socket.
/usr/local/etc/rc.d/nwserv.sh start
/usr/local/etc/rc.d/nwserv.sh stop
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: rwatson 
State-Changed-When: Sun Jan 2 13:02:51 GMT 2005 
State-Changed-Why:  
I've applied changes ipx_outputfl.c:1.21 and ipx_pcb.c:1.36 to the 
FreeBSD CVS HEAD (6-CURRENT) that are believed to correct this bug. 
The changes will be merged to RELENG_5 after a week or so of 
settling.  If using IPX, you'll also want ipx.h:1.19 which corrects 
an alignment problem in the IPX header that can result in corrupted 
on-the-wire IPX headers as a result of a compiler change.  This fix 
will also be MFC'd shortly.  If you have the opportunity to test 
these patches before the merge, tht would be very helpful.  Thanks! 



Responsible-Changed-From-To: freebsd-bugs->rwatson 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Sun Jan 2 13:02:51 GMT 2005 
Responsible-Changed-Why:  
Grab ownership of this as I believe I may have fixed this bug; I'm also 
generally chasing down IPX/SPX issues currently. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=75014 
State-Changed-From-To: patched->closed 
State-Changed-By: rwatson 
State-Changed-When: Sun Nov 27 18:41:36 GMT 2005 
State-Changed-Why:  
Merged to RELENG_5 as ipx_outputfl.c:1.19.4.1 and ipx_pcb.c:1.28.2.7; 
appeared in FreeBSD 5.4-RELEASE and FreeBSD 6.0-RELEASE.  Believed 
fixed; please let me know if not. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=75014 
>Unformatted:
