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
[-- Attachment #1 --]
(message Bcc´ed to -net)
I have a 4.3-STABLE (cvsupped a few times this week already) which will
crash within hours (and then never get to a second succesful boot).
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
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
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
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=260) at /usr/src/sys/kern/kern_shutdown.c:312
312 dumpsys();
(kgdb) up
#2 0xc0144380 in poweroff_wait (junk=0xc023c400, howto=-921524928)
at /usr/src/sys/kern/kern_shutdown.c:559
559 boot(bootopt);
(kgdb) up
#3 0xc01abe88 in ipsec4_setspidx_inpcb (m=0xc083d000, pcb=0xc99eacc0)
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 == NULL)
721 panic("ipsec4_setspidx_inpcb: no PCB found.\n");
722 if (pcb->inp_sp == NULL)
723 panic("ipsec4_setspidx_inpcb: no inp_sp found.\n");
724 if (pcb->inp_sp->sp_out == NULL || pcb->inp_sp->sp_in ==
NULL)
725 panic("ipsec4_setspidx_inpcb: no sp_in/out
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=260) at /usr/src/sys/kern/kern_shutdown.c:312
#2 0xc0144380 in poweroff_wait (junk=0xc023c400, howto=-921524928)
at /usr/src/sys/kern/kern_shutdown.c:559
#3 0xc01abe88 in ipsec4_setspidx_inpcb (m=0xc083d000, pcb=0xc99eacc0)
at /usr/src/sys/netinet6/ipsec.c:723
#4 0xc01abba1 in ipsec4_getpolicybysock (m=0xc083d000, dir=1,
so=0xc912a540,
error=0xca532af8) at /usr/src/sys/netinet6/ipsec.c:258
#5 0xc01aca09 in ipsec4_in_reject_so (m=0xc083d000, so=0xc912a540)
at /usr/src/sys/netinet6/ipsec.c:1715
#6 0xc019fd6a in rip_input (m=0xc0885e00, off=20, proto=89)
at /usr/src/sys/netinet/raw_ip.c:144
#7 0xc019a6d0 in ip_input (m=0xc0885e00) at
/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=0xc486df3c) at /usr/src/sys/kern/vfs_bio.c:265
#11 0xc016f0bf in vop_stdbwrite (ap=0xca532c0c) at
/usr/src/sys/kern/vfs_default.c:331
#12 0xc016eee5 in vop_defaultop (ap=0xca532c0c) at
/usr/src/sys/kern/vfs_default.c:150
#13 0xc01d30ed in ufs_vnoperate (ap=0xca532c0c) at
/usr/src/sys/ufs/ufs/ufs_vnops.c:2373
#14 0xc0169d06 in bawrite (bp=0xc486df3c) at vnode_if.h:1193
#15 0xc016e78b in cluster_wbuild (vp=0xca535040, size=8192,
start_lbn=5250, len=16)
at /usr/src/sys/kern/vfs_cluster.c:888
#16 0xc016a8a4 in vfs_bio_awrite (bp=0xc48bf01c) at
/usr/src/sys/kern/vfs_bio.c:1450
#17 0xc01ccf09 in ffs_fsync (ap=0xca532cf0) at
/usr/src/sys/ufs/ffs/ffs_vnops.c:220
#18 0xc01cb8c0 in ffs_sync (mp=0xc2090000, waitfor=2, cred=0xc081d880,
p=0xc029a8c0)
at vnode_if.h:558
#19 0xc0173e4b in sync (p=0xc029a8c0, uap=0x0) at
/usr/src/sys/kern/vfs_syscalls.c:545
#20 0xc0143dcb in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:233
#21 0xc0144380 in poweroff_wait (junk=0xc023c400, howto=-921524928)
at /usr/src/sys/kern/kern_shutdown.c:559
#22 0xc01abe88 in ipsec4_setspidx_inpcb (m=0xc0885800, pcb=0xc99eacc0)
at /usr/src/sys/netinet6/ipsec.c:723
#23 0xc01abba1 in ipsec4_getpolicybysock (m=0xc0885800, dir=1,
so=0xc912a540,
error=0xca532dd0) at /usr/src/sys/netinet6/ipsec.c:258
#24 0xc01aca09 in ipsec4_in_reject_so (m=0xc0885800, so=0xc912a540)
at /usr/src/sys/netinet6/ipsec.c:1715
#25 0xc019fd6a in rip_input (m=0xc0885d00, off=20, proto=89)
at /usr/src/sys/netinet/raw_ip.c:144
#26 0xc019a6d0 in ip_input (m=0xc0885d00) at
/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=0xc912a540, pcb_sp=0xc99ead28)
at /usr/src/sys/netinet6/ipsec.c:1128
#31 0xc01a0373 in rip_attach (so=0xc912a540, proto=89, p=0xc8d1cdc0)
at /usr/src/sys/netinet/raw_ip.c:490
#32 0xc0161c4a in socreate (dom=2, aso=0xca532f2c, type=3, proto=89,
p=0xc8d1cdc0)
at /usr/src/sys/kern/uipc_socket.c:163
#33 0xc016569b in socket (p=0xc8d1cdc0, uap=0xca532f80)
at /usr/src/sys/kern/uipc_syscalls.c:120
#34 0xc0216e65 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47,
tf_edi = 135151616,
tf_esi = 0, tf_ebp = -1077937024, tf_isp = -900517932, tf_ebx =
-1077936820,
tf_edx = 134869052, tf_ecx = 135098944, tf_eax = 97, tf_trapno =
12, tf_err = 2,
tf_eip = 672284416, tf_cs = 31, tf_eflags = 659, tf_esp =
-1077937068, tf_ss = 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 = (struct inpcb *) 0xc99eacc0
(kgdb) print *pcb
$2 = {inp_hash = {le_next = 0x0, le_prev = 0x0}, inp_fport = 0,
inp_lport = 0, inp_list = {
le_next = 0xc99ead80, le_prev = 0xc029c380}, inp_flow = 0,
inp_dependfaddr = {
inp46_foreign = {ia46_pad32 = {0, 0, 0}, ia46_addr4 = {s_addr =
0}}, inp6_foreign = {
__u6_addr = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16
= {0, 0, 0, 0, 0, 0,
0, 0}, __u6_addr32 = {0, 0, 0, 0}}}}, inp_dependladdr =
{inp46_local = {
ia46_pad32 = {0, 0, 0}, ia46_addr4 = {s_addr = 0}}, inp6_local =
{__u6_addr = {
__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0,
0, 0, 0, 0, 0},
__u6_addr32 = {0, 0, 0, 0}}}}, inp_ppcb = 0x0, inp_pcbinfo =
0xc029c3a0,
inp_socket = 0xc912a540, inp_flags = 0, inp_dependroute = {inp4_route
= {ro_rt = 0x0,
ro_dst = {sa_len = 0 '\000', sa_family = 0 '\000',
sa_data = '\000' <repeats 13 times>}}, inp6_route = {ro_rt =
0x0, ro_dst = {
sin6_len = 0 '\000', sin6_family = 0 '\000', sin6_port = 0,
sin6_flowinfo = 0,
sin6_addr = {__u6_addr = {__u6_addr8 = '\000' <repeats 15
times>, __u6_addr16 = {0,
0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}},
sin6_scope_id = 0}}},
inp_sp = 0x0, inp_vflag = 1 '\001', inp_ip_ttl = 64 '@', inp_ip_p =
89 'Y', inp_depend4 = {
inp4_ip_tos = 0 '\000', inp4_options = 0x0, inp4_moptions = 0x0},
inp_depend6 = {
inp6_options = 0x0, inp6_outputopts = 0x0, inp6_moptions = 0x0,
inp6_icmp6filt = 0x0,
inp6_cksum = 0, inp6_ifindex = 0, inp6_hops = 0, inp6_hlim = 0
'\000'}, inp_portlist = {
le_next = 0x0, le_prev = 0x0}, inp_phd = 0x0, inp_gencnt = 556}
Kernel configuration file attached.
Any ideas?
--
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
[-- Attachment #2 --]
#
# 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B5DD8BC.8010601>
