Fatal trap 12: page fault while in kernel mode in 5.5-PRERELEASE with IPSEC/isakmpd

From: David Boyd <David.Boyd_at_insightbb.com>
Date: Mon, 27 Feb 2006 13:45:01 -0500
System running 5.5-PRERELEASE panics/reboots many (6) times per day.

This problem first occurred on systems (9 of them) upgraded from 4.x-RELEASE
to 5.4-RELEASE and
continues with 5.5-PRERELEASE.  Falling back to 4.11-RELEASE resolves the
problem.

This is similar/the same as PR kern/88472 which remains open.

George Neville-Neil (gnn_at_freebsd.org) has investigated this problem in the
past and
may have some insight.

uname -a
FreeBSD vpn-gateway.arh.org 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #0: Sun
Feb 26 12:55:38 EST 2006
root_at_vpn-gateway.arh.org:/usr/obj/var/cvsup/usr/src/sys/RADIOLOGY  i386

dmesg -a (partial)
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x274
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc06d2d59
stack pointer	        = 0x10:0xd10be8c8
frame pointer	        = 0x10:0xd10be8d0
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 496 (isakmpd)
trap number		= 12
panic: page fault

gdb output (bt)
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:

		<unprintable garbage goes here>

#0  doadump () at pcpu.h:160
160		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:160
#1  0xc0618a4c in boot (howto=260) at
/var/cvsup/usr/src/sys/kern/kern_shutdown.c:412
#2  0xc0618ce0 in panic (fmt=0xc07e3dec "%s")
    at /var/cvsup/usr/src/sys/kern/kern_shutdown.c:568
#3  0xc0798224 in trap_fatal (frame=0xcc7048b8, eva=34)
    at /var/cvsup/usr/src/sys/i386/i386/trap.c:822
#4  0xc0797f8b in trap_pfault (frame=0xcc7048b8, usermode=0, eva=34)
    at /var/cvsup/usr/src/sys/i386/i386/trap.c:737
#5  0xc0797bcd in trap (frame=
      {tf_fs = -1049821160, tf_es = 16, tf_ds = 16, tf_edi = 3, tf_esi
= -1046944256, tf_ebp = -865056504, tf_isp = -865056540, tf_ebx
= -1049798400, tf_edx = 1, tf_ecx = 810690339, tf_eax = 2, tf_trapno = 12,
tf_err = 0, tf_eip = -1066611880, tf_cs = 8, tf_eflags = 66050, tf_esp = 0,
tf_ss = -1049798400}) at /var/cvsup/usr/src/sys/i386/i386/trap.c:427
#6  0xc0787afa in calltrap () at
/var/cvsup/usr/src/sys/i386/i386/exception.s:140
#7  0xc16d0018 in ?? ()
#8  0x00000010 in ?? ()
#9  0x00000010 in ?? ()
#10 0x00000003 in ?? ()
#11 0xc198e600 in ?? ()
#12 0xcc704908 in ?? ()
#13 0xcc7048e4 in ?? ()
#14 0xc16d5900 in ?? ()
#15 0x00000001 in ?? ()
#16 0x30522723 in ?? ()
#17 0x00000002 in ?? ()
#18 0x0000000c in ?? ()
#19 0x00000000 in ?? ()
#20 0xc06ccb58 in key_getsavbyspi (sah=0xc198e600, spi=0)
    at /var/cvsup/usr/src/sys/netkey/key.c:2981
#21 0xc06cf719 in key_delete (so=0xc1786654, m=0xc16d5900, mhp=0xcc704a64)
    at /var/cvsup/usr/src/sys/netkey/key.c:5428
#22 0xc06d1805 in key_parse (m=0xc16d5900, so=0xc1786654)
    at /var/cvsup/usr/src/sys/netkey/key.c:7134
#23 0xc06d2fc5 in key_output (m=0xc16d5900, so=0xc1786654)
    at /var/cvsup/usr/src/sys/netkey/keysock.c:119
#24 0xc068ca28 in raw_usend (so=0x0, flags=0, m=0x0, nam=0x0, control=0x0,
td=0xc1527d80)
    at /var/cvsup/usr/src/sys/net/raw_usrreq.c:263
#25 0xc06d352b in key_send (so=0xc1786654, flags=0, m=0xc16d5900, nam=0x0,
control=0x0,
    p=0xc1527d80) at /var/cvsup/usr/src/sys/netkey/keysock.c:430
#26 0xc064e9bb in sosend (so=0xc1786654, addr=0x0, uio=0xc19c5880,
top=0xc16d5900,
    control=0x0, flags=0, td=0xc1527d80) at
/var/cvsup/usr/src/sys/kern/uipc_socket.c:835
#27 0xc063e1c6 in soo_write (fp=0x0, uio=0xc19c5880, active_cred=0xc14fbd80,
flags=0,
    td=0xc1527d80) at /var/cvsup/usr/src/sys/kern/sys_socket.c:118
#28 0xc06384b3 in dofilewrite (td=0xc1527d80, fd=5, fp=0xc171761c,
auio=0xc19c5880, offset=
) at file.h:245
#29 0xc0638353 in kern_writev (td=0xc1527d80, fd=5, auio=0xc19c5880)
    at /var/cvsup/usr/src/sys/kern/sys_generic.c:401
#30 0xc06382fc in writev (td=0xc1527d80, uap=0xcc704d04)
    at /var/cvsup/usr/src/sys/kern/sys_generic.c:387
#31 0xc079852f in syscall (frame=
      {tf_fs = 134742063, tf_es = 47, tf_ds = -1078001617, tf_edi =
134794240, tf_esi = -1078007504, tf_ebp = -1078007400, tf_isp = -865055388,
tf_ebx = 5, tf_edx = 23, tf_ecx = 0, tf_eax = 121, tf_trapno = 0, tf_err =
2, tf_eip = 673149675, tf_cs = 31, tf_eflags = 658, tf_esp = -1078007540,
tf_ss = 47}) at /var/cvsup/usr/src/sys/i386/i386/trap.c:1014
#32 0xc0787b4f in Xint0x80_syscall () at
/var/cvsup/usr/src/sys/i386/i386/exception.s:201
#33 0x0808002f in ?? ()
#34 0x0000002f in ?? ()
#35 0xbfbf002f in ?? ()
#36 0x0808cc00 in ?? ()
#37 0xbfbee930 in ?? ()
#38 0xbfbee998 in ?? ()
#39 0xcc704d64 in ?? ()
#40 0x00000005 in ?? ()
#41 0x00000017 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000079 in ?? ()
#44 0x00000000 in ?? ()
#45 0x00000002 in ?? ()
#46 0x281f72eb in ?? ()
#47 0x0000001f in ?? ()
#48 0x00000292 in ?? ()
#49 0xbfbee90c in ?? ()
#50 0x0000002f in ?? ()
#51 0x88ae2581 in ?? ()
#52 0x6237bb36 in ?? ()
#53 0x529c23a5 in ?? ()
#54 0x42984ad9 in ?? ()
#55 0x0f992000 in ?? ()
#56 0xc15f21c4 in ?? ()
#57 0xc1527d80 in ?? ()
#58 0xcc704aa8 in ?? ()
#59 0xcc704a90 in ?? ()
#60 0xc14fe480 in ?? ()
#61 0xc06286bf in sched_switch (td=0xbfbee930, newtd=0x5, flags=)
    at /var/cvsup/usr/src/sys/kern/sched_4bsd.c:881
(kgdb) q

kernel configuration
#
# RADIOLOGY -- Custom kernel configuration file for FreeBSD/i386
#
# $FreeBSD: src/sys/i386/conf/RADIOLOGY,v 5.06.01.1 2005/06/01 10:00:00
dbboyd Exp $

makeoptions	DEBUG=-g

include 	GENERIC

nooption	SMP
nooption	INET6

nodevice	eisa

nooption 	NFSCLIENT
nooption 	NFSSERVER
nooption 	NFS_ROOT

ident		RADIOLOGY

options 	IPFIREWALL
options 	IPFIREWALL_FORWARD
options 	IPFIREWALL_VERBOSE
options 	IPFIREWALL_VERBOSE_LIMIT=100
options 	IPFIREWALL_DEFAULT_TO_ACCEPT

option		IPSTEALTH

option		IPSEC
option		IPSEC_ESP
option		IPSEC_DEBUG

options		DEVICE_POLLING
options		HZ=1000

device		atapicam

#
#
#
#
Received on Mon Feb 27 2006 - 17:45:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:52 UTC