From owner-freebsd-net@FreeBSD.ORG Wed Sep 26 21:13:36 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B028616A418 for ; Wed, 26 Sep 2007 21:13:36 +0000 (UTC) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mail.cybernet.by [212.98.164.131]) by mx1.freebsd.org (Postfix) with ESMTP id 2AFBF13C478 for ; Wed, 26 Sep 2007 21:13:36 +0000 (UTC) (envelope-from m.boyarov@bsd.by) Received: from mx1.cybernet.by (mx1.cybernet.by [127.0.0.10]) by mx1.cybernet.by (Postfix) with ESMTP id 867B9CDF5B6 for ; Wed, 26 Sep 2007 23:54:27 +0300 (EEST) Received: from solar.bsd.by (dragonsoul.aichyna.com [87.252.248.30]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.cybernet.by (Postfix) with ESMTP id 6B23FCDF531 for ; Wed, 26 Sep 2007 23:54:27 +0300 (EEST) Received: by solar.bsd.by (Postfix, from userid 1001) id D087522853; Wed, 26 Sep 2007 23:56:19 +0300 (EEST) To: freebsd-net@freebsd.org From: m.boyarov@bsd.by (Max N. Boyarov) X-Mailer: Gnus v5.11/GNU Emacs 22.1 Date: Wed, 26 Sep 2007 23:56:15 +0300 Message-ID: <86ir5x5eog.fsf@bsd.by> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Virus-Scanned: ClamAV Subject: releng_6_2 pagefault X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 21:13:36 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Hi, I have setup RELENG_6_2 system (also check on RELENG_6). But when packet come from net0 to net1 system do pagefault. This is 4 core Intel Xeon. debug.mpsafenet =3D 0. kernel builded with FAST_IPSEC support and isakmpd used for IKE exchange. net image net0 [ gif tunnel ] [ pf based router ] [ ipsec tunnel ] net1 (kgdb) symbol-file /usr/obj/usr/src/sys/ded-mazay/kernel.debug Reading symbols from /usr/obj/usr/src/sys/ded-mazay/kernel.debug...done. (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc053da52 in boot (howto=3D256) at /usr/src/sys/kern/kern_shutdown.c:4= 09 #2 0xc053dd79 in panic (fmt=3D0xc06eb44b "%s") at /usr/src/sys/kern/kern_s= hutdown.c:565 #3 0xc06c2b9c in trap_fatal (frame=3D0xe35bfaf0, eva=3D12) at /usr/src/sys= /i386/i386/trap.c:838 #4 0xc06c28db in trap_pfault (frame=3D0xe35bfaf0, usermode=3D0, eva=3D12) = at /usr/src/sys/i386/i386/trap.c:745 #5 0xc06c252d in trap (frame=3D {tf_fs =3D -480575480, tf_es =3D 40, tf_ds =3D -987693016, tf_edi =3D= -987664896, tf_esi =3D -989560320, tf_ebp =3D -480511092, tf_isp =3D -4805= 11204, tf_ebx =3D -985463040, tf_edx =3D 0, tf_ecx =3D 4, tf_eax =3D 0, tf_= trapno =3D 12, tf_err =3D 0, tf_eip =3D -1067554940, tf_cs =3D 32, tf_eflag= s =3D 66118, tf_esp =3D 7, tf_ss =3D -985461980}) at /usr/src/sys/i386/i386= /trap.c:435 #6 0xc06addca in calltrap () at /usr/src/sys/i386/i386/exception.s:139 #7 0xc05e6784 in ipsec4_process_packet (m=3D0x0, isr=3D0xc5430700, flags= =3D1, tunalready=3D0) at /usr/src/sys/netipsec/ipsec_output.c:377 #8 0xc05d21db in ip_output (m=3D0xc5048200, opt=3D0x0, ro=3D0xe35bfbc0, fl= ags=3D1, imo=3D0x0, inp=3D0x0) at /usr/src/sys/netinet/ip_output.c:628 #9 0xc05d1654 in ip_forward (m=3D0xc5048200, srcrt=3D0) at /usr/src/sys/ne= tinet/ip_input.c:1923 #10 0xc05d00ae in ip_input (m=3D0xc5048200) at /usr/src/sys/netinet/ip_inpu= t.c:694 #11 0xc05b8dff in netisr_processqueue (ni=3D0xc0772638) at /usr/src/sys/net= /netisr.c:236 #12 0xc05b8fb6 in swi_net (dummy=3D0x0) at /usr/src/sys/net/netisr.c:343 #13 0xc0526411 in ithread_execute_handlers (p=3D0xc4af5430, ie=3D0xc4b47b80= ) at /usr/src/sys/kern/kern_intr.c:682 #14 0xc052652d in ithread_loop (arg=3D0xc4ad88b0) at /usr/src/sys/kern/kern= _intr.c:765 #15 0xc05251c5 in fork_exit (callout=3D0xc05264d8 , arg=3D0xc= 4ad88b0, frame=3D0xe35bfd38) at /usr/src/sys/kern/kern_fork.c:830 #16 0xc06ade2c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:= 208 (kgdb) frame 7 #7 0xc05e6784 in ipsec4_process_packet (m=3D0x0, isr=3D0xc5430700, flags= =3D1, tunalready=3D0) at /usr/src/sys/netipsec/ipsec_output.c:377 377 if (m->m_len < sizeof (struct ip) && (kgdb) list 372 373 /* 374 * Collect IP_DF state from the outer header. 375 */ 376 if (dst->sa.sa_family =3D=3D AF_INET) { 377 if (m->m_len < sizeof (struct ip) && 378 (m =3D m_pullup(m, sizeof (struct ip)))= =3D=3D NULL) { 379 error =3D ENOBUFS; 380 goto bad; 381 } after crash with disabled ipsec # netstat -m 641/1159/1800 mbufs in use (current/cache/total) 640/684/1324/25600 mbuf clusters in use (current/cache/total/max) 640/459 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 1440K/1657K/3098K bytes allocated to network (current/cache/total) 0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/5/6656 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 9 calls to protocol drain routines =2D-=20 Max N. Boyarov GPG fingerprint =3D F6E5 A1DE 619F 72E3 3EEC 2EFF 5C95 E05C CA05 9E8F (sub= keys.pgp.net) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFG+sdzXJXgXMoFno8RAmyiAKC9fdAED+saVpewJVxrKYfNn2ZSOwCg+Ngg OyILb0SVNcZ4yLhte6a53Jw= =42qY -----END PGP SIGNATURE----- --=-=-=--