It is currently Mon Sep 24, 2018 2:28 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: openl2tp process crashes
PostPosted: Tue Oct 19, 2010 12:07 pm 

Joined: Tue Oct 19, 2010 12:01 pm
Posts: 27
I'm trying to replace xl2tpd with openl2tp on my OpenSwan/L2TP VPN setup, as the latter provides much better performance (due to the pppol2tp kernel module?). The openswan/xl2tpd/pppd config works very stable on my Debian Squeeze armel box (Linksys NSLU2).

However, openl2tp crashes frequently, e.g. when transferring a lot of data through the VPN connection, or on successive connection attempts. I get the following in my /var/log/kern.log when this happens:
Code:
Oct 19 12:00:26 X kernel: [10090.060000] ------------[ cut here ]------------
Oct 19 12:00:26 X kernel: [10090.070000] WARNING: at /build/buildd-linux-2.6_2.6.32-23-armel-m0YG60/linux-2.6-2.6.32/debian/build/source_armel_none/include/net/sock.h:428 udp_lib_unhash+0x54/0xa0()
Oct 19 12:00:26 X kernel: [10090.090000] Modules linked in: authenc pppol2tp pppox ppp_generic slhc deflate zlib_deflate ctr camellia cast5 rmd160 sha1_generic hmac crypto_null ccm serpent blowfish twofish twofish_common ecb xcbc cbc sha256_generic sha512_generic des_generic aes_generic xfrm_user ah6 ah4 esp6 esp4 xfrm4_mode_beet xfrm4_tunnel tunnel4 xfrm4_mode_tunnel xfrm4_mode_transport xfrm6_mode_transport xfrm6_mode_ro xfrm6_mode_beet xfrm6_mode_tunnel ipcomp ipcomp6 xfrm_ipcomp xfrm6_tunnel tunnel6 ipv6 af_key ext2 ixp4xx_eth evdev ixp4xx_npe ixp4xx_qmgr ohci_hcd ixp4xx_beeper libphy ext3 jbd mbcache sd_mod crc_t10dif usb_storage scsi_mod ehci_hcd usbcore nls_base
Oct 19 12:00:26 X kernel: [10090.140000] [<c002af98>] (unwind_backtrace+0x0/0xdc) from [<c0042640>] (warn_slowpath_common+0x4c/0x80)
Oct 19 12:00:26 X kernel: [10090.150000] [<c0042640>] (warn_slowpath_common+0x4c/0x80) from [<c022aa50>] (udp_lib_unhash+0x54/0xa0)
Oct 19 12:00:26 X kernel: [10090.160000] [<c022aa50>] (udp_lib_unhash+0x54/0xa0) from [<c01d6af8>] (sk_common_release+0x30/0xc0)
Oct 19 12:00:26 X kernel: [10090.170000] [<c01d6af8>] (sk_common_release+0x30/0xc0) from [<c0232374>] (inet_release+0x64/0x70)
Oct 19 12:00:26 X kernel: [10090.180000] [<c0232374>] (inet_release+0x64/0x70) from [<c01d3ffc>] (sock_release+0x24/0x8c)
Oct 19 12:00:26 X kernel: [10090.190000] [<c01d3ffc>] (sock_release+0x24/0x8c) from [<c01d4088>] (sock_close+0x24/0x34)
Oct 19 12:00:26 X kernel: [10090.200000] [<c01d4088>] (sock_close+0x24/0x34) from [<c00cc310>] (__fput+0x114/0x1f0)
Oct 19 12:00:26 X kernel: [10090.210000] [<c00cc310>] (__fput+0x114/0x1f0) from [<c00c8db8>] (filp_close+0x70/0x7c)
Oct 19 12:00:26 X kernel: [10090.210000] [<c00c8db8>] (filp_close+0x70/0x7c) from [<c0044300>] (put_files_struct+0x80/0xe0)
Oct 19 12:00:26 X kernel: [10090.220000] [<c0044300>] (put_files_struct+0x80/0xe0) from [<c0045cb4>] (do_exit+0x1f8/0x64c)
Oct 19 12:00:26 X kernel: [10090.230000] [<c0045cb4>] (do_exit+0x1f8/0x64c) from [<c0046190>] (do_group_exit+0x88/0xbc)
Oct 19 12:00:26 X kernel: [10090.240000] [<c0046190>] (do_group_exit+0x88/0xbc) from [<c00461d8>] (sys_exit_group+0x14/0x24)
Oct 19 12:00:26 X kernel: [10090.250000] [<c00461d8>] (sys_exit_group+0x14/0x24) from [<c0024ec0>] (ret_fast_syscall+0x0/0x28)
Oct 19 12:00:26 X kernel: [10090.260000] ---[ end trace 955919f1b1ce5157 ]---


My other NSLU2, running Debian Lenny, produces very similar results (with a WARNING: at include/net/sock.h:358 udp_lib_unhash+0x54/0x9c() in the first line of the trace log).


Top
 Profile  
 
 Post subject: Re: openl2tp process crashes
PostPosted: Tue Oct 19, 2010 5:06 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
Does this kernel patch fix it?
http://patchwork.ozlabs.org/patch/47868/


Top
 Profile  
 
 Post subject: Re: openl2tp process crashes
PostPosted: Thu Oct 21, 2010 5:17 pm 

Joined: Tue Oct 19, 2010 12:01 pm
Posts: 27
thanks I will try this patch. I'll need to read up on kernel module compilation in Debian, but if I manage I'll post the results!


Top
 Profile  
 
 Post subject: Re: openl2tp process crashes
PostPosted: Sat Oct 23, 2010 8:04 pm 

Joined: Tue Oct 19, 2010 12:01 pm
Posts: 27
ok, this patch fixes the kernel trace errors. Many thanks!

However, other issues now pop up. See my other forum post for those


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group