Received: with ECARTIS (v1.0.0; list netdev); Mon, 31 Jan 2005 02:55:36 -0800 (PST) Received: from arnor.apana.org.au (mail@arnor.apana.org.au [203.14.152.115]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j0VAtQGK003938 for ; Mon, 31 Jan 2005 02:55:27 -0800 Received: from gondolin.me.apana.org.au ([192.168.0.6] ident=mail) by arnor.apana.org.au with esmtp (Exim 3.35 #1 (Debian)) id 1CvZCv-0004NQ-00; Mon, 31 Jan 2005 21:55:01 +1100 Received: from herbert by gondolin.me.apana.org.au with local (Exim 3.36 #1 (Debian)) id 1CvZCT-00017g-00; Mon, 31 Jan 2005 21:54:33 +1100 From: Herbert Xu To: akpm@osdl.org (Andrew Morton), au@unterluggauer.org Subject: Re: Fw: [Bugme-new] [Bug 4138] New: ipsec with racoon in transport mode with esp and ah hangs (problem is in xfrm_state_add) Cc: netdev@oss.sgi.com Organization: Core In-Reply-To: <20050130224404.5f78d28a.akpm@osdl.org> X-Newsgroups: apana.lists.os.linux.netdev User-Agent: tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686)) Message-Id: Date: Mon, 31 Jan 2005 21:54:33 +1100 X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 1068 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: herbert@gondor.apana.org.au Precedence: bulk X-list: netdev Content-Length: 1061 Lines: 30 Andrew Morton wrote: > > the SAD entries for ah and esp have the same km.seq! Sounds like a racoon bug. The kernel will assign different sequence numbers to the two SAs. It will also send SADB_ACQUIRE messages to racoon with those sequence numbers. So if racoon is sending two SADB_ADD commands with the same sequence number back then it's broken. Could you get a dump of the messages that racoon has received and sent? That should tell us exactly what's happening. > Workaround: > I comment the if (x->km.seq) { ... } out. than it works vor me. but I know > thats not a solution. Well without the check we would have silently ignored the sequence number which is why you wouldn't have noticed the problem with racoon before. However, for those who need to use the sequence number this check is necessary. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt