Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jul 2001 17:21:16 -0300
From:      "Daniel C. Sobral" <daniel.sobral@tcoip.com.br>
To:        stable@freebsd.org
Subject:   Completely unstable -stable (IPSEC)
Message-ID:  <3B5DD8BC.8010601@tcoip.com.br>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010203040502050203020102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

(message Bcc=B4ed to -net)

I have a 4.3-STABLE (cvsupped a few times this week already) which will=20
crash within hours (and then never get to a second succesful boot).=20
4.3-RELEASE works fine with the same kernel.

Data follows:

IdlePTD 3207168
initial pcb at 27dc80
panicstr: ipsec4_setspidx_inpcb: no inp_sp found.

panic messages:
---
panic: ipsec4_setspidx_inpcb: no inp_sp found.


syncing disks... panic: ipsec4_setspidx_inpcb: no inp_sp found.

Uptime: 1m13s

dumping to dev #ad/0x20001, offset 786456
dump ata0: resetting devices .. done
127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110=20
109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 =

88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65=20
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41=20
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17=20
16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
---
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:472
472             if (dumping++) {
(kgdb) up
#1  0xc0143ff8 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c=
:312
312                     dumpsys();
(kgdb) up
#2  0xc0144380 in poweroff_wait (junk=3D0xc023c400, howto=3D-921524928)
     at /usr/src/sys/kern/kern_shutdown.c:559
559             boot(bootopt);
(kgdb) up
#3  0xc01abe88 in ipsec4_setspidx_inpcb (m=3D0xc083d000, pcb=3D0xc99eacc0=
)
     at /usr/src/sys/netinet6/ipsec.c:723
723                     panic("ipsec4_setspidx_inpcb: no inp_sp found.\n"=
);
(kgdb) list
718
719             /* sanity check */
720             if (pcb =3D=3D NULL)
721                     panic("ipsec4_setspidx_inpcb: no PCB found.\n");
722             if (pcb->inp_sp =3D=3D NULL)
723                     panic("ipsec4_setspidx_inpcb: no inp_sp found.\n"=
);
724             if (pcb->inp_sp->sp_out =3D=3D NULL || pcb->inp_sp->sp_in=
 =3D=3D=20
NULL)
725                     panic("ipsec4_setspidx_inpcb: no sp_in/out=20
found.\n");
726
727             bzero(&pcb->inp_sp->sp_in->spidx, sizeof(*spidx));
(kgdb) where
#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:472
#1  0xc0143ff8 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c=
:312
#2  0xc0144380 in poweroff_wait (junk=3D0xc023c400, howto=3D-921524928)
     at /usr/src/sys/kern/kern_shutdown.c:559
#3  0xc01abe88 in ipsec4_setspidx_inpcb (m=3D0xc083d000, pcb=3D0xc99eacc0=
)
     at /usr/src/sys/netinet6/ipsec.c:723
#4  0xc01abba1 in ipsec4_getpolicybysock (m=3D0xc083d000, dir=3D1,=20
so=3D0xc912a540,
     error=3D0xca532af8) at /usr/src/sys/netinet6/ipsec.c:258
#5  0xc01aca09 in ipsec4_in_reject_so (m=3D0xc083d000, so=3D0xc912a540)
     at /usr/src/sys/netinet6/ipsec.c:1715
#6  0xc019fd6a in rip_input (m=3D0xc0885e00, off=3D20, proto=3D89)
     at /usr/src/sys/netinet/raw_ip.c:144
#7  0xc019a6d0 in ip_input (m=3D0xc0885e00) at=20
/usr/src/sys/netinet/ip_input.c:820
#8  0xc019a747 in ipintr () at /usr/src/sys/netinet/ip_input.c:848
#9  0xc020c995 in swi_net_next ()
#10 0xc01699e5 in bwrite (bp=3D0xc486df3c) at /usr/src/sys/kern/vfs_bio.c=
:265
#11 0xc016f0bf in vop_stdbwrite (ap=3D0xca532c0c) at=20
/usr/src/sys/kern/vfs_default.c:331
#12 0xc016eee5 in vop_defaultop (ap=3D0xca532c0c) at=20
/usr/src/sys/kern/vfs_default.c:150
#13 0xc01d30ed in ufs_vnoperate (ap=3D0xca532c0c) at=20
/usr/src/sys/ufs/ufs/ufs_vnops.c:2373
#14 0xc0169d06 in bawrite (bp=3D0xc486df3c) at vnode_if.h:1193
#15 0xc016e78b in cluster_wbuild (vp=3D0xca535040, size=3D8192,=20
start_lbn=3D5250, len=3D16)
     at /usr/src/sys/kern/vfs_cluster.c:888
#16 0xc016a8a4 in vfs_bio_awrite (bp=3D0xc48bf01c) at=20
/usr/src/sys/kern/vfs_bio.c:1450
#17 0xc01ccf09 in ffs_fsync (ap=3D0xca532cf0) at=20
/usr/src/sys/ufs/ffs/ffs_vnops.c:220
#18 0xc01cb8c0 in ffs_sync (mp=3D0xc2090000, waitfor=3D2, cred=3D0xc081d8=
80,=20
p=3D0xc029a8c0)
     at vnode_if.h:558
#19 0xc0173e4b in sync (p=3D0xc029a8c0, uap=3D0x0) at=20
/usr/src/sys/kern/vfs_syscalls.c:545
#20 0xc0143dcb in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c=
:233
#21 0xc0144380 in poweroff_wait (junk=3D0xc023c400, howto=3D-921524928)
     at /usr/src/sys/kern/kern_shutdown.c:559
#22 0xc01abe88 in ipsec4_setspidx_inpcb (m=3D0xc0885800, pcb=3D0xc99eacc0=
)
     at /usr/src/sys/netinet6/ipsec.c:723
#23 0xc01abba1 in ipsec4_getpolicybysock (m=3D0xc0885800, dir=3D1,=20
so=3D0xc912a540,
     error=3D0xca532dd0) at /usr/src/sys/netinet6/ipsec.c:258
#24 0xc01aca09 in ipsec4_in_reject_so (m=3D0xc0885800, so=3D0xc912a540)
     at /usr/src/sys/netinet6/ipsec.c:1715
#25 0xc019fd6a in rip_input (m=3D0xc0885d00, off=3D20, proto=3D89)
     at /usr/src/sys/netinet/raw_ip.c:144
#26 0xc019a6d0 in ip_input (m=3D0xc0885d00) at=20
/usr/src/sys/netinet/ip_input.c:820
#27 0xc019a747 in ipintr () at /usr/src/sys/netinet/ip_input.c:848
#28 0xc020c995 in swi_net_next ()
#29 0xc01af9a0 in key_newsp () at /usr/src/sys/netkey/key.c:1196
#30 0xc01ac290 in ipsec_init_policy (so=3D0xc912a540, pcb_sp=3D0xc99ead28=
)
     at /usr/src/sys/netinet6/ipsec.c:1128
#31 0xc01a0373 in rip_attach (so=3D0xc912a540, proto=3D89, p=3D0xc8d1cdc0=
)
     at /usr/src/sys/netinet/raw_ip.c:490
#32 0xc0161c4a in socreate (dom=3D2, aso=3D0xca532f2c, type=3D3, proto=3D=
89,=20
p=3D0xc8d1cdc0)
     at /usr/src/sys/kern/uipc_socket.c:163
#33 0xc016569b in socket (p=3D0xc8d1cdc0, uap=3D0xca532f80)
     at /usr/src/sys/kern/uipc_syscalls.c:120
#34 0xc0216e65 in syscall2 (frame=3D{tf_fs =3D 47, tf_es =3D 47, tf_ds =3D=
 47,=20
tf_edi =3D 135151616,
       tf_esi =3D 0, tf_ebp =3D -1077937024, tf_isp =3D -900517932, tf_eb=
x =3D=20
-1077936820,
       tf_edx =3D 134869052, tf_ecx =3D 135098944, tf_eax =3D 97, tf_trap=
no =3D=20
12, tf_err =3D 2,
       tf_eip =3D 672284416, tf_cs =3D 31, tf_eflags =3D 659, tf_esp =3D =

-1077937068, tf_ss =3D 47})
     at /usr/src/sys/i386/i386/trap.c:1150
#35 0xc020b535 in Xint0x80_syscall ()
#36 0x80596f9 in ?? ()
#37 0x807369a in ?? ()
#38 0x8049ca9 in ?? ()
#39 0x80498e1 in ?? ()
(kgdb) print pcb
$1 =3D (struct inpcb *) 0xc99eacc0
(kgdb) print *pcb
$2 =3D {inp_hash =3D {le_next =3D 0x0, le_prev =3D 0x0}, inp_fport =3D 0,=
=20
inp_lport =3D 0, inp_list =3D {
     le_next =3D 0xc99ead80, le_prev =3D 0xc029c380}, inp_flow =3D 0,=20
inp_dependfaddr =3D {
     inp46_foreign =3D {ia46_pad32 =3D {0, 0, 0}, ia46_addr4 =3D {s_addr =
=3D=20
0}}, inp6_foreign =3D {
       __u6_addr =3D {__u6_addr8 =3D '\000' <repeats 15 times>, __u6_addr=
16=20
=3D {0, 0, 0, 0, 0, 0,
           0, 0}, __u6_addr32 =3D {0, 0, 0, 0}}}}, inp_dependladdr =3D=20
{inp46_local =3D {
       ia46_pad32 =3D {0, 0, 0}, ia46_addr4 =3D {s_addr =3D 0}}, inp6_loc=
al =3D=20
{__u6_addr =3D {
         __u6_addr8 =3D '\000' <repeats 15 times>, __u6_addr16 =3D {0, 0,=
 0,=20
0, 0, 0, 0, 0},
         __u6_addr32 =3D {0, 0, 0, 0}}}}, inp_ppcb =3D 0x0, inp_pcbinfo =3D=
=20
0xc029c3a0,
   inp_socket =3D 0xc912a540, inp_flags =3D 0, inp_dependroute =3D {inp4_=
route=20
=3D {ro_rt =3D 0x0,
       ro_dst =3D {sa_len =3D 0 '\000', sa_family =3D 0 '\000',
         sa_data =3D '\000' <repeats 13 times>}}, inp6_route =3D {ro_rt =3D=
=20
0x0, ro_dst =3D {
         sin6_len =3D 0 '\000', sin6_family =3D 0 '\000', sin6_port =3D 0=
,=20
sin6_flowinfo =3D 0,
         sin6_addr =3D {__u6_addr =3D {__u6_addr8 =3D '\000' <repeats 15 =

times>, __u6_addr16 =3D {0,
               0, 0, 0, 0, 0, 0, 0}, __u6_addr32 =3D {0, 0, 0, 0}}},=20
sin6_scope_id =3D 0}}},
   inp_sp =3D 0x0, inp_vflag =3D 1 '\001', inp_ip_ttl =3D 64 '@', inp_ip_=
p =3D=20
89 'Y', inp_depend4 =3D {
     inp4_ip_tos =3D 0 '\000', inp4_options =3D 0x0, inp4_moptions =3D 0x=
0},=20
inp_depend6 =3D {
     inp6_options =3D 0x0, inp6_outputopts =3D 0x0, inp6_moptions =3D 0x0=
,=20
inp6_icmp6filt =3D 0x0,
     inp6_cksum =3D 0, inp6_ifindex =3D 0, inp6_hops =3D 0, inp6_hlim =3D=
 0=20
'\000'}, inp_portlist =3D {
     le_next =3D 0x0, le_prev =3D 0x0}, inp_phd =3D 0x0, inp_gencnt =3D 5=
56}

Kernel configuration file attached.

Any ideas?

--=20
Daniel C. Sobral                   (8-DCS)
Daniel.Sobral@tcoip.com.br
dcs@newsguy.com
dcs@freebsd.org
capo@notorious.bsdconspiracy.net

Love to eat them mousies,
Mousies what I love to eat.
Bite they little heads off,
Nibble on they tiny feet.
		-- Kliban

--------------010203040502050203020102
Content-Type: text/plain;
 name="OSPF"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="OSPF"

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#    http://www.FreeBSD.org/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ./LINT configuration file. If you are
# in doubt as to the purpose or necessity of a line, check first in LINT.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.20 2000/10/31 23:16:07 n_hibma Exp $

machine		i386
cpu		I686_CPU
ident		ALMAS
maxusers	32

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

options         IPSEC                   #IP security
options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)
options 	INET			#InterNETworking
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
options 	SOFTUPDATES		#Enable FFS soft updates support
options 	MD_ROOT			#MD is a potential root device
options 	PROCFS			#Process filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM		#Rate limit bad replies
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options    	NMBCLUSTERS=8192
options         TCP_DROP_SYNFIN         #drop TCP packets with SYN+FIN

device		isa
device		eisa
device		pci

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
device		fd1	at fdc0 drive 1

# ATA and ATAPI devices
device		ata0	at isa? port IO_WD1 irq 14
device		ata1	at isa? port IO_WD2 irq 15
device		ata
device		atadisk			# ATA disk drives
device		atapifd			# ATAPI floppy drives
options 	ATA_STATIC_ID		#Static device numbering

options		IPFIREWALL
options		IPDIVERT
options		IPFIREWALL_VERBOSE
options		IPFIREWALL_FORWARD
options		IPFIREWALL_VERBOSE_LIMIT=100
options		MROUTING

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1
device		psm0	at atkbdc? irq 12

device		vga0	at isa?

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? flags 0x100

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device		vt0	at isa?
#options 	XSERVER			# support for X server on a vt console
#options 	FAT_CURSOR		# start with block cursor

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device		apm0    at nexus? flags 0x20 # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device

device		miibus		# MII bus support
device		xl		# 3Com 3c90x
device		fxp		# Intel EtherExpress Pro/100B

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	4	# Kernel SLIP
pseudo-device	ppp	4	# Kernel PPP
pseudo-device	tun	4	# Packet tunnel.
pseudo-device	pty		# Pseudo-ttys (telnet etc)
pseudo-device	vlan	16

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter

# USB support
device		uhci		# UHCI PCI->USB interface
device		usb		# USB Bus (required)

options		SC_HISTORY_SIZE=6000

--------------010203040502050203020102--


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




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