From owner-freebsd-current@FreeBSD.ORG Thu Sep 12 10:46:01 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D1490255 for ; Thu, 12 Sep 2013 10:46:01 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id 8FC7027E9 for ; Thu, 12 Sep 2013 10:46:01 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 0A5E093 for ; Thu, 12 Sep 2013 12:45:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Nycazx2xFRhK for ; Thu, 12 Sep 2013 12:44:59 +0200 (CEST) Received: from [10.0.10.80] (snifi.laptop [10.0.10.80]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 7DD108B for ; Thu, 12 Sep 2013 12:44:59 +0200 (CEST) Message-ID: <52319B47.1020804@dat.pl> Date: Thu, 12 Sep 2013 12:45:27 +0200 From: Maciej Milewski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8 MIME-Version: 1.0 To: "freebsd-current@freebsd.org" Subject: IPSEC with IPv6 crashes Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 10:46:02 -0000 I'm trying to use IPSEC with IPv6 in transport mode. My configuration is simple: IPSEC + racoon from ipsec-utils. One side is RS(MIPS) with HEAD-r252464 and 2nd side ALIX(i386) with 9.1-STABLE. This error is visible only on MIPS side. ipsec.conf: spdadd [ipv6_addr1] [ipv6_addr2] any -P in ipsec esp/transport//require; spdadd [ipv6_addr2] [ipv6_addr1] any -P out ipsec esp/transport//require; And the error is reproducible with just getting transmission over the IPSEC: Trap cause = 2 (TLB miss (load or instr. fetch) - kernel mode) [ thread pid 0 tid 100027 ] Stopped at ipsec6_common_input_cb+0x364: lw v0,116(v1) db> bt Tracing pid 0 tid 100027 td 0x80dc2990 db_trace_thread+30 (?,?,?,?) ra c039f24000000018 sp 0 sz 0 80083c3c+114 (0,?,ffffffff,?) ra c039f25800000020 sp 100000000 sz 1 80082f84+388 (?,?,?,?) ra c039f278000000a8 sp 0 sz 0 db_command_loop+70 (?,?,?,?) ra c039f32000000018 sp 0 sz 0 80085a80+f4 (?,?,?,?) ra c039f338000001a8 sp 0 sz 0 kdb_trap+110 (?,?,?,?) ra c039f4e000000030 sp 0 sz 0 trap+f18 (?,?,?,?) ra c039f510000000b8 sp 0 sz 0 MipsKernGenException+134 (82bee380,81c84900,0,0) ra c039f5c8000000c8 sp 100000001 sz 1 ipsec6_common_input_cb+364 (81c84900,?,28,?) ra c039f69000000038 sp 100000000 sz 1 803c6684+568 (?,?,?,?) ra c039f6c800000078 sp 0 sz 0 crypto_done+11c (?,?,?,?) ra c039f74000000030 sp 0 sz 0 803fd608+fb4 (?,?,?,?) ra c039f770000001a0 sp 0 sz 0 803fb3a8+164 (?,?,?,?) ra c039f91000000028 sp 0 sz 0 crypto_dispatch+94 (?,?,?,?) ra c039f93800000020 sp 0 sz 0 803c708c+62c (?,?,?,?) ra c039f95800000058 sp 0 sz 0 803b2390+52c (?,?,?,?) ra c039f9b000000060 sp 0 sz 0 ipsec6_common_input+19c (?,?,?,?) ra c039fa1000000040 sp 0 sz 0 ip6_input+16d8 (81c84900,?,?,?) ra c039fa5000000120 sp 100000000 sz 0 netisr_dispatch_src+134 (?,?,?,?) ra c039fb7000000040 sp 0 sz 0 netisr_dispatch+14 (?,?,?,?) ra c039fbb000000018 sp 0 sz 0 ether_demux+218 (?,81c84900,?,?) ra c039fbc800000028 sp 1 sz 0 802d72ec+4a8 (81c84900,?,?,?) ra c039fbf000000030 sp 100000000 sz 0 netisr_dispatch_src+134 (?,?,?,?) ra c039fc2000000040 sp 0 sz 0 netisr_dispatch+14 (?,?,?,?) ra c039fc6000000018 sp 0 sz 0 802d6e9c+3c (?,?,?,?) ra c039fc7800000018 sp 0 sz 0 ieee80211_deliver_data+100 (?,?,?,?) ra c039fc9000000028 sp 0 sz 0 803387fc+bc4 (?,?,?,ffffffa0) ra c039fcb800000060 sp 0 sz 0 ath_rx_pkt+6c0 (?,?,0,?) ra c039fd1800000050 sp 0 sz 1 800aa98c+388 (?,1,?,?) ra c039fd6800000060 sp 1 sz 0 800aaef0+c4 (?,?,?,?) ra c039fdc800000020 sp 0 sz 0 8024e34c+e8 (?,?,?,?) ra c039fde800000038 sp 0 sz 0 taskqueue_thread_loop+8c (?,?,?,?) ra c039fe2000000038 sp 0 sz 0 fork_exit+b0 (?,?,?,?) ra c039fe5800000028 sp 0 sz 0 fork_trampoline+10 (?,?,?,?) ra c039fe8000000000 sp 0 sz 0 pid 0 I'm open to any hints. Regards, Maciej Milewski