From owner-freebsd-pf@FreeBSD.ORG Wed Nov 14 12:18:42 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CE8B16A420 for ; Wed, 14 Nov 2007 12:18:42 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.freebsd.org (Postfix) with ESMTP id 2E21813C45B for ; Wed, 14 Nov 2007 12:18:41 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-048-197.pools.arcor-ip.net [88.66.48.197]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1IsHCY1U85-0008Ls; Wed, 14 Nov 2007 13:18:39 +0100 From: Max Laier Organization: FreeBSD To: freebsd-pf@freebsd.org Date: Wed, 14 Nov 2007 13:18:23 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1728626.ofe6tvXGRH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711141318.36664.max@love2party.net> X-Provags-ID: V01U2FsdGVkX19dvXlsiKRrorSKPigDfP2EpnwfuoOlAh/sOqD x8n641VkAh1BYeLVmaanLcrUOUW0nEZH+M6MsDStVflBJ8C7sT uOkY5ZgBjBJKwz81+lwPX07PjY+tYcVnkO2lP0ByJg= Cc: Mars G Miro Subject: Re: pf+ipv6 bug? X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 12:18:42 -0000 --nextPart1728626.ofe6tvXGRH Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 13 November 2007, Mars G Miro wrote: > Hiya, > > I've encountered this bug for about a few weeks now . The attached > kernel config and the minimalist ruleset (i have a much more > complicated ruleset), when pf is enabled and you have ipv6, when > sending ipv6 packets? (in this case icmp6) to, say, your ipv6 default > gw, will crash your box always at this spot: > > ++++++++++++++++++++++ > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address =3D 0x1e8 > fault code =3D supervisor read, page not present > instruction pointer =3D 0x20:0xc094a726 > stack pointer =3D 0x28:0xe606dbc0 > frame pointer =3D 0x28:0xe606dc6c > code segment =3D base 0x0, limit 0xfffff, type 0x1b > =3D DPL 0, pres 1, def32 1, gran 1 > processor eflags =3D interrupt enabled, resume, IOPL =3D 0 > current process =3D 17 (swi1: net) > trap number =3D 12 > panic: page fault > cpuid =3D 0 > Uptime: 1h35m21s > Physical memory: 3955 MB > Dumping 122 MB: 107 91 75 59 43 27 11 > > #0 doadump () at pcpu.h:195 > 195 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); > (kgdb) list *0xc094a726 > 0xc094a726 is in ip6_input (/usr/src/sys/netinet6/ip6_input.c:265). > 260 ip6stat.ip6s_m1++; > 261 #undef M2MMAX > 262 } > 263 > 264 /* drop the packet if IPv6 operation is disabled on the > IF */ 265 if ((ND_IFINFO(m->m_pkthdr.rcvif)->flags & > ND6_IFF_IFDISABLED)) { > 266 m_freem(m); > 267 return; > 268 } > 269 > ++++++++++++++++++ > > Adding in ipv6 neighb* rules (comment out lines 47,48 in the attached > ruleset) seem to not crash your box. > This is on 7.0-BETA2 (i386,amd64) and from my own tests, this has > been on 7.X, since around August back then. This does not seem to > exist on 6.X. Can you please get a complete trace and print the mbuf in the ip6_input=20 frame? =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1728626.ofe6tvXGRH Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHOuecXyyEoT62BG0RAu66AJ0ZyuSI945fvsxSGsv7eijzkYUJcwCfcmN8 j9rD6EnADWKzPy5hay/z+k0= =8B18 -----END PGP SIGNATURE----- --nextPart1728626.ofe6tvXGRH--