netdev
[Top] [All Lists]

Re: Fw: ipsec hang

To: Bill Crowell <bill@xxxxxxxxxxxxxxxxxx>
Subject: Re: Fw: ipsec hang
From: Patrick McHardy <kaber@xxxxxxxxx>
Date: Tue, 30 Nov 2004 00:54:39 +0100
Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, James Morris <jmorris@xxxxxxxxxx>, akpm@xxxxxxxx, netdev@xxxxxxxxxxx, mg@xxxxxxxx
In-reply-to: <41ABA014.4090309@crowellsystems.com>
References: <E1CXGlt-00069n-00@gondolin.me.apana.org.au> <41A5D1CF.10504@trash.net> <41ABA014.4090309@crowellsystems.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041008 Debian/1.7.3-5
Bill Crowell wrote:

Re the bk12, is there just 1 patch that I should install to 2.6.10-rc2 to test IPSec? If I don't fiddle with the mm code, we might be able to make some progress on this part. I just love simultaneous equations with 1000 or more variables... ;-)

Patch is attached.

Regards
Patrick


# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2004/11/23 18:21:09-08:00 kaber@xxxxxxxxx 
#   [XFRM]: Fix endless loop in xfrm_policy_insert
#   
#   The patch 'Fix policy update bug when increasing
#   priority of last policy' broke this, when a policy
#   with lower priority than an existing policy is inserted
#   xfrm_policy_insert loops forever.
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
#   Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
# 
# net/xfrm/xfrm_policy.c
#   2004/11/23 18:20:49-08:00 kaber@xxxxxxxxx +1 -0
#   [XFRM]: Fix endless loop in xfrm_policy_insert
#   
#   The patch 'Fix policy update bug when increasing
#   priority of last policy' broke this, when a policy
#   with lower priority than an existing policy is inserted
#   xfrm_policy_insert loops forever.
#   
#   Signed-off-by: Patrick McHardy <kaber@xxxxxxxxx>
#   Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
# 
diff -Nru a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
--- a/net/xfrm/xfrm_policy.c    2004-11-30 00:51:18 +01:00
+++ b/net/xfrm/xfrm_policy.c    2004-11-30 00:51:18 +01:00
@@ -353,6 +353,7 @@
                        newpos = p;
                if (delpol)
                        break;
+               p = &pol->next;
        }
        if (newpos)
                p = newpos;
<Prev in Thread] Current Thread [Next in Thread>