* Re: ipsec hang
[not found] <200411240134.50314@senat>
@ 2004-11-24 1:32 ` Patrick McHardy
2004-11-24 2:46 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2004-11-24 1:32 UTC (permalink / raw)
To: Marcin Gibu³a; +Cc: linux-kernel, netdev, David S. Miller
[-- Attachment #1: Type: text/plain, Size: 917 bytes --]
Marcin Gibu³a wrote:
>Hi,
>today I tried to configure ipsec on my linux workstation (with openswan) and
>it hanged just after the init had run /etc/rc.d/init.d/ipsec start.
>It was on linux-2.6.10-rc1-bk20, so I upgraded to 2.6.10-rc2-mm3 but it didn't
>make any difference.
>
>The alt-sysrq-p shows the following call trace:
>xfrm_policy_insert
>xfrm_netlink_rcv
>netlink_data_ready
>netlink_sendmsg
>sock_aio_write
>do_sync_write
>sock_map_fd
>sys_select
>vfs_write
>system_call
>
>The full trace (with regs, etc) is available at
>http://www.iceni.pl/marcin/lockup.jpg
>
>.config attached. This hang is 100%-reproductible for me. I can attach
>openswan config if needed.
>
This patch should fix it. 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.
Regards
Patrick
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 709 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/11/24 02:25:16+01:00 kaber@coreworks.de
# [XFRM]: Fix endless loop in xfrm_policy_insert
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/xfrm/xfrm_policy.c
# 2004/11/24 02:25:07+01:00 kaber@coreworks.de +1 -0
# [XFRM]: Fix endless loop in xfrm_policy_insert
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
--- a/net/xfrm/xfrm_policy.c 2004-11-24 02:31:08 +01:00
+++ b/net/xfrm/xfrm_policy.c 2004-11-24 02:31:08 +01:00
@@ -353,6 +353,7 @@
newpos = p;
if (delpol)
break;
+ p = &pol->next;
}
if (newpos)
p = newpos;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ipsec hang
2004-11-24 1:32 ` ipsec hang Patrick McHardy
@ 2004-11-24 2:46 ` David S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-11-24 2:46 UTC (permalink / raw)
To: Patrick McHardy; +Cc: mg, linux-kernel, netdev
On Wed, 24 Nov 2004 02:32:36 +0100
Patrick McHardy <kaber@trash.net> wrote:
> This patch should fix it. 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.
Good catch Patrick, patch applied.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-24 2:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200411240134.50314@senat>
2004-11-24 1:32 ` ipsec hang Patrick McHardy
2004-11-24 2:46 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).