From owner-freebsd-net@FreeBSD.ORG Thu May 28 03:29:14 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3167952F for ; Thu, 28 May 2015 03:29:14 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F243BCB1 for ; Thu, 28 May 2015 03:29:13 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-250-63.lns20.per4.internode.on.net [121.45.250.63]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t4S3T96e073884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 27 May 2015 20:29:12 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <55668B7F.9010509@freebsd.org> Date: Thu, 28 May 2015 11:29:03 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: Re: Crash with GRE und IPFW fwd References: <5566565A.7030200@tzi.de> <20150528013135.GR95600@strugglingcoder.info> In-Reply-To: <20150528013135.GR95600@strugglingcoder.info> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2015 03:29:14 -0000 On 5/28/15 9:31 AM, hiren panchasara wrote: > On 05/28/15 at 01:42P, Julian Kornberger wrote: >> Hi, >> >> I have recurring crashes if I forward GRE packets using IPFW with fwd: >> - The first fwd rule forwards incoming traffic into a GRE interface. >> - The second fwd rule forwards GRE packets to a gateway. >> >> If there is no GRE traffic, the system is stable. As soon as there is >> GRE traffic i takes araound one to five minutes until is crashes. >> If I omit the second fwd rule, it never crashes. >> >> I use a FreeBSD 10.1 on a PC Engines APU.1D board. >> Any Ideas how to debug this? >> >> Kind Regards >> Julian >> >> >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x7c >> fault code = supervisor read data, page not present >> instruction pointer = 0x20:0xffffffff80a58105 >> stack pointer = 0x28:0xfffffe00957335e0 >> frame pointer = 0x28:0xfffffe00957336e0 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, long 1, def32 0, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 1707 (tcpmssd) > Where is this from? net/tcpmssd port/package? > > If so, try disabling/uninstalling it and see if that helps. no it's inherrent kernel behaviour. Julian, I am guessing (with no actual information) that something in gre processing is assuming that the packet id going where it normally would go. (and not where fwd is sending it). you really need to use objdump or gdb to look at the gre module and work out where gre_output+0x467 is in the function. that should give you a clue on the problem. not too helpful I know... but you have a reproducible case at least. kgdb may be your friend if you have a serial cable or firewire cable. > > cheers, > Hiren >> trap number = 12 >> panic: page fault >> cpuid = 0 >> KDB: stack backtrace: >> #0 0xffffffff80963000 at kdb_backtrace+0x60 >> #1 0xffffffff80928125 at panic+0x155 >> #2 0xffffffff80d258df at trap_fatal+0x38f >> #3 0xffffffff80d25bf8 at trap_pfault+0x308 >> #4 0xffffffff80d2525a at trap+0x47a >> #5 0xffffffff80d0b142 at calltrap+0x8 >> #6 0xffffffff81a15797 at gre_output+0x467 >> #7 0xffffffff80a59024 at ip_output+0x11b4 >> #8 0xffffffff819b257a at div_send+0x33a >> #9 0xffffffff8099e0b5 at sosend_generic+0x475 >> #10 0xffffffff809a4425 at kern_sendit+0x245 >> #11 0xffffffff809a4749 at sendit+0x129 >> #12 0xffffffff809a460d at sys_sendto+0x4d >> #13 0xffffffff80d26211 at amd64_syscall+0x351 >> #14 0xffffffff80d0b42b at Xfast_syscall+0xfb >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"