Subject: kern/22580: crash in -current ipsec
To: None <gnats-bugs@gnats.netbsd.org>
From: Daniel Carosone <dan@geek.com.au>
List: netbsd-bugs
Date: 08/23/2003 22:13:56
>Number:         22580
>Category:       kern
>Synopsis:       crash in -current ipsec
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 23 12:15:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Daniel Carosone
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD cwg 1.6W NetBSD 1.6W (_cwg_) #3: Sat Aug 23 19:33:21 EST 2003  dan@uboat:/sys/arch/i386/compile/_cwg_ i386
Architecture: i386
Machine: i386
>Description:

Something in recent changes has broken ipsec.  I have esp/tunnels
over wireless between 2 machines (others, but these two are all
that is relevant):

NetBSD uboat 1.6W NetBSD 1.6W (_uboat_) #150: Mon Aug 18 10:54:18 EST 2003  dan@uboat:/sys/arch/i386/compile/_uboat_ i386
NetBSD cwg 1.6W NetBSD 1.6W (_cwg_) #3: Sat Aug 23 19:33:21 EST 2003  dan@uboat:/sys/arch/i386/compile/_cwg_ i386

After recently updating cwg, it crashes repeatedly. I can provoke
it by trying to hit a web site (instant crash), or it will fall
over while carrying ssh for a cvs update, but not immediately.

panic: trap

all the traces look like this:

(gdb) where
#0  0x1 in ?? ()
#1  0xc02473a7 in cpu_reboot ()
#2  0xc01d6b5c in log ()
#3  0xc024e29a in trap ()
#4  0xc0102b7f in calltrap ()
#5  0xc015b14f in ipsec_delaux ()
#6  0xc0111e72 in ip_output ()
#7  0xc0110f01 in ip_forward ()
#8  0xc010fa85 in ip_input ()
#9  0xc010f63b in ipintr ()
#10 0xc0102850 in Xsoftnet ()

except for at least one that had a repeated set of the same from
cpu_reboot to Xsoftnet again underneath.. (!?).

The slightly older kernel on uboat is just fine.  I will build a
new test one for it and see if it will crash too. Source are
presently from ~12h ago.

cwg runs ipsec and ipf 

>How-To-Repeat:
	upgrade a working ipsec gateway to very-recent code
>Fix:
	no clue
>Release-Note:
>Audit-Trail:
>Unformatted: