[Openswan Users] kernel BUG at include/linux/module.h:357!

Paul Wouters paul at xelerance.com
Fri Jan 20 18:44:35 CET 2006


On Fri, 20 Jan 2006, Vaclav Dousa wrote:

>
> I have compiled Openswan 2.4.4 on FC4, kernel 2.6.13.32.
> I want use klips.
>
> But kernel errs when I start ipsec.
>
> Should I do something with openswan-2.4.4.kernel-2.6- klips.patch.gz? I compiled without it.
>
> Would you help me?

This is a known issue with sk_alloc on redhat/fedora kernels. Try a stock kernel instead.

Paul

>
> messages:
> Jan 20 09:48:44 linuxbene2 kernel:  ------------[ cut here ]------------
> Jan 20 09:48:44 linuxbene2 kernel: kernel BUG at include/linux/module.h:357!
> Jan 20 09:48:44 linuxbene2 kernel: invalid operand: 0000 [#95]
> Jan 20 09:48:44 linuxbene2 kernel: Modules linked in: ipsec parport_pc lp parport autofs4 sunrpc ipt_REJECT
> ipt_state ip_conntrack iptable_filter ip_tables i2c_sis5595 i2c_core floppy
> Jan 20 09:48:44 linuxbene2 kernel: CPU:    0
> Jan 20 09:48:44 linuxbene2 kernel: EIP:    0060:[<c02ef815>]    Not tainted VLI
> Jan 20 09:48:44 linuxbene2 kernel: EFLAGS: 00010246   (2.6.13.32)
> Jan 20 09:48:44 linuxbene2 kernel: EIP is at sk_alloc+0x155/0x170
> Jan 20 09:48:44 linuxbene2 kernel: eax: 00000000   ebx: c2ed2a00   ecx: 00000000   edx: c88d4980
> Jan 20 09:48:45 linuxbene2 kernel: esi: 00000000   edi: c88d4980   ebp: c88d2980   esp: c3944f04
> Jan 20 09:48:45 linuxbene2 ipsec_setup: KLIPS debug `klips pfkey natt'
> Jan 20 09:48:45 linuxbene2 kernel: ds: 007b   es: 007b   ss: 0068
> Jan 20 09:48:45 linuxbene2 kernel: Process eroute (pid: 3954, threadinfo=c3944000 task=c3ba8aa0)
> Jan 20 09:48:45 linuxbene2 kernel: Stack: 00000002 c3944000 c148dae0 00000002 c888d6a4 0000000f 000000d0
> c88d2980
> Jan 20 09:48:45 linuxbene2 kernel:        00000001 0000000f 00000000 00000003 c02ed764 c148dae0 00000002
> c148dae0
> Jan 20 09:48:45 linuxbene2 kernel:        00000001 00000002 08051a70 c3944000 c02ed89b 0000000f 00000003
> 00000002
> Jan 20 09:48:45 linuxbene2 kernel: Call Trace:
> Jan 20 09:48:45 linuxbene2 kernel:  [<c888d6a4>] pfkey_create+0x64/0x1f0 [ipsec]
> Jan 20 09:48:45 linuxbene2 ipsec_setup: KLIPS ipsec0 on eth2 192.168.222.2/255.255.255.0 broadcast
> 192.168.222.255
> Jan 20 09:48:45 linuxbene2 kernel:  [<c02ed764>] __sock_create+0xc4/0x1e0
> Jan 20 09:48:45 linuxbene2 kernel:  [<c02ed89b>] sock_create+0x1b/0x20
> Jan 20 09:48:45 linuxbene2 kernel:  [<c02ed8d9>] sys_socket+0x19/0x50
> Jan 20 09:48:45 linuxbene2 kernel:  [<c02ee7d5>] sys_socketcall+0x85/0x230
> Jan 20 09:48:45 linuxbene2 kernel:  [<c0103389>] syscall_call+0x7/0xb
> Jan 20 09:48:45 linuxbene2 kernel: Code: 8d b6 00 00 00 00 8b 5c 24 18 53 8b 4d 6c 51 e8 e2 33 e6 ff 89 c3 58
> 5a e9 db fe ff ff 53 e8 03 35 e6 ff 31 db 59 e9 12 ff ff ff <0f> 0b 65 01 bf 3f 37 c0 e9 ff fe ff ff 8d b4 26
> 00 00 00 00 8d
> Jan 20 09:48:46 linuxbene2 kernel:  ------------[ cut here ]------------
> Jan 20 09:48:46 linuxbene2 kernel: kernel BUG at include/linux/module.h:357!
> Jan 20 09:48:46 linuxbene2 kernel: invalid operand: 0000 [#96]
> Jan 20 09:48:46 linuxbene2 kernel: Modules linked in: ipsec parport_pc lp parport autofs4 sunrpc ipt_REJECT
> ipt_state ip_conntrack iptable_filter ip_tables i2c_sis5595 i2c_core floppy
> Jan 20 09:48:46 linuxbene2 kernel: CPU:    0
> Jan 20 09:48:46 linuxbene2 kernel: EIP:    0060:[<c02ef815>]    Not tainted VLI
> Jan 20 09:48:46 linuxbene2 ipsec_setup: ...Openswan IPsec started
> Jan 20 09:48:46 linuxbene2 kernel: EFLAGS: 00010246   (2.6.13.32)
> Jan 20 09:48:46 linuxbene2 kernel: EIP is at sk_alloc+0x155/0x170
> Jan 20 09:48:46 linuxbene2 ipsec_setup: Restarting Openswan IPsec 2.4.4...
> Jan 20 09:48:46 linuxbene2 kernel: eax: 00000000   ebx: c2ed2400   ecx: 00000000   edx: c88d4980
> Jan 20 09:48:46 linuxbene2 ipsec_setup: /usr/local/lib/ipsec/_startklips: line 324:  3998 Segmentation
> fault      ipsec klipsdebug --none
> Jan 20 09:48:46 linuxbene2 kernel: esi: 00000000   edi: c88d4980   ebp: c88d2980   esp: c3944f04
> Jan 20 09:48:47 linuxbene2 ipsec_setup: usage: /usr/local/libexec/ipsec/klipsdebug {--set|--clear}
> {tunnel|tunnel-xmit|netlink|xform|eroute|spi|radij|esp|ah|rcv|pfkey|ipcomp|verbose}
> Jan 20 09:48:47 linuxbene2 kernel: ds: 007b   es: 007b   ss: 0068
> Jan 20 09:48:47 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug {--all|--none}
> Jan 20 09:48:47 linuxbene2 kernel: Process spi (pid: 3955, threadinfo=c3944000 task=c3ba8aa0)
> Jan 20 09:48:47 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug --help
> Jan 20 09:48:47 linuxbene2 ipsec__plutorun: /usr/local/lib/ipsec/_plutorun: line 228:  4042 Segmentation
> fault      /usr/local/libexec/ipsec/pluto --nofork --secretsfile /etc/ipsec.secrets --ipsecdir /etc/ipsec.d
> --use-auto --uniqueids --nat_traversal
> Jan 20 09:48:47 linuxbene2 kernel: Stack: 00000002 c3944000 c148d8c0 00000002 c888d6a4 0000000f 000000d0
> c88d2980
> Jan 20 09:48:47 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug --version
> Jan 20 09:48:47 linuxbene2 kernel:        00000001 0000000f 00000000 00000003 c02ed764 c148d8c0 00000002
> c148d8c0
> Jan 20 09:48:47 linuxbene2 ipsec__plutorun: whack: is Pluto running?  connect() for "/var/run/pluto/pluto.ctl"
> failed (111 Connection refused)
> Jan 20 09:48:47 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug
> Jan 20 09:48:47 linuxbene2 kernel:        00000001 00000002 00000000 c3944000 c02ed89b 0000000f 00000003
> 00000002
> Jan 20 09:48:47 linuxbene2 ipsec__plutorun: !pluto failure!:  exited with error status 139 (signal 11)
> Jan 20 09:48:47 linuxbene2 ipsec_setup:         [ --debug ] is optional to any
> /usr/local/libexec/ipsec/klipsdebug command
> Jan 20 09:48:47 linuxbene2 kernel: Call Trace:
> Jan 20 09:48:48 linuxbene2 ipsec__plutorun: restarting IPsec after pause...
> Jan 20 09:48:48 linuxbene2 ipsec_setup:         [ --label <label> ] is optional to any
> /usr/local/libexec/ipsec/klipsdebug command.
> Jan 20 09:48:48 linuxbene2 kernel:  [<c888d6a4>] pfkey_create+0x64/0x1f0 [ipsec]
> Jan 20 09:48:48 linuxbene2 ipsec_setup: /usr/local/lib/ipsec/_startklips: line 328:  4000 Segmentation
> fault      ipsec klipsdebug --set $d
> Jan 20 09:48:48 linuxbene2 kernel:  [<c02ed764>] __sock_create+0xc4/0x1e0
> Jan 20 09:48:48 linuxbene2 ipsec_setup: usage: /usr/local/libexec/ipsec/klipsdebug {--set|--clear}
> {tunnel|tunnel-xmit|netlink|xform|eroute|spi|radij|esp|ah|rcv|pfkey|ipcomp|verbose}
> Jan 20 09:48:48 linuxbene2 kernel:  [<c02ed89b>] sock_create+0x1b/0x20
> Jan 20 09:48:48 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug {--all|--none}
> Jan 20 09:48:48 linuxbene2 kernel:  [<c02ed8d9>] sys_socket+0x19/0x50
> Jan 20 09:48:48 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug --help
> Jan 20 09:48:48 linuxbene2 kernel:  [<c02ee7d5>] sys_socketcall+0x85/0x230
> Jan 20 09:48:48 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug --version
> Jan 20 09:48:48 linuxbene2 kernel:  [<c0103389>] syscall_call+0x7/0xb
> Jan 20 09:48:48 linuxbene2 ipsec_setup:        /usr/local/libexec/ipsec/klipsdebug
> Jan 20 09:48:48 linuxbene2 kernel: Code: 8d b6 00 00 00 00 8b 5c 24 18 53 8b 4d 6c 51 e8 e2 33 e6 ff 89 c3 58
> 5a e9 db fe ff ff 53 e8 03 35 e6 ff 31 db 59 e9 12 ff ff ff <0f> 0b 65 01 bf 3f 37 c0 e9 ff fe ff ff 8d b4 26
> 00 00 00 00 8d
> Jan 20 09:48:48 linuxbene2 ipsec_setup:         [ --debug ] is optional to any
> /usr/local/libexec/ipsec/klipsdebug command
> Jan 20 09:48:49 linuxbene2 kernel:  ------------[ cut here ]------------
> Jan 20 09:48:49 linuxbene2 ipsec_setup:         [ --label <label> ] is optional to any
> /usr/local/libexec/ipsec/klipsdebug command.
> Jan 20 09:48:49 linuxbene2 kernel: kernel BUG at include/linux/module.h:357!
> Jan 20 09:48:49 linuxbene2 ipsec_setup: /usr/local/lib/ipsec/_startklips: line 387:  4002 Segmentation
> fault      ipsec eroute --clear
> Jan 20 09:48:49 linuxbene2 kernel: invalid operand: 0000 [#97]
> Jan 20 09:48:49 linuxbene2 ipsec_setup: /usr/local/lib/ipsec/_startklips: line 387:  4003 Segmentation
> fault      ipsec spi --clear
> Jan 20 09:48:49 linuxbene2 kernel: Modules linked in: ipsec parport_pc lp parport autofs4 sunrpc ipt_REJECT
> ipt_state ip_conntrack iptable_filter ip_tables i2c_sis5595 i2c_core floppy
> Jan 20 09:48:49 linuxbene2 kernel: CPU:    0
> Jan 20 09:48:49 linuxbene2 kernel: EIP:    0060:[<c02ef815>]    Not tainted VLI
> Jan 20 09:48:49 linuxbene2 kernel: EFLAGS: 00010246   (2.6.13.32)
> Jan 20 09:48:49 linuxbene2 kernel: EIP is at sk_alloc+0x155/0x170
> Jan 20 09:48:49 linuxbene2 kernel: eax: 00000000   ebx: c2ed2e00   ecx: 00000000   edx: c88d4980
> Jan 20 09:48:49 linuxbene2 kernel: esi: 00000000   edi: c88d4980   ebp: c88d2980   esp: c2ea7f04
> Jan 20 09:48:49 linuxbene2 kernel: ds: 007b   es: 007b   ss: 0068
> Jan 20 09:48:49 linuxbene2 kernel: Process klipsdebug (pid: 3998, threadinfo=c2ea7000 task=c1ff0000)
> Jan 20 09:48:49 linuxbene2 kernel: Stack: 00000002 c2ea7000 c148d480 00000002 c888d6a4 0000000f 000000d0
> c88d2980
> Jan 20 09:48:50 linuxbene2 kernel:        00000001 0000000f 00000000 00000003 c02ed764 c148d480 00000002
> c148d480
> Jan 20 09:48:50 linuxbene2 kernel:        00000001 00000002 0804f7d4 c2ea7000 c02ed89b 0000000f 00000003
> 00000002
> Jan 20 09:48:50 linuxbene2 kernel: Call Trace:
> Jan 20 09:48:50 linuxbene2 kernel:  [<c888d6a4>] pfkey_create+0x64/0x1f0 [ipsec]
> Jan 20 09:48:50 linuxbene2 kernel:  [<c02ed764>] __sock_create+0xc4/0x1e0
> Jan 20 09:48:50 linuxbene2 kernel:  [<c02ed89b>] sock_create+0x1b/0x20
> Jan 20 09:48:50 linuxbene2 kernel:  [<c02ed8d9>] sys_socket+0x19/0x50
> Jan 20 09:48:50 linuxbene2 kernel:  [<c02ee7d5>] sys_socketcall+0x85/0x230
> Jan 20 09:48:50 linuxbene2 kernel:  [<c0103389>] syscall_call+0x7/0xb
> Jan 20 09:48:50 linuxbene2 kernel: Code: 8d b6 00 00 00 00 8b 5c 24 18 53 8b 4d 6c 51 e8 e2 33 e6 ff 89 c3 58
> 5a e9 db fe ff ff 53 e8 03 35 e6 ff 31 db 59 e9 12 ff ff ff <0f> 0b 65 01 bf 3f 37 c0 e9 ff fe ff ff 8d b4 26
> 00 00 00 00 8d
> Jan 20 09:48:50 linuxbene2 kernel:  ------------[ cut here ]------------
>
>
> --
> Vaclav Dousa
> Medical Technologies CZ a.s.
> mailto:dousa at bn.medictech.com
> Tel: +420 317 726864, 726863, 725200 ext. 27
> GSM: +420 602 402582
>
>

-- 

"Happiness is never grand"

	--- Mustapha Mond, World Controller (Brave New World)


More information about the Users mailing list