[Openswan dev] KLIPS and Fedora kernels

Johannes Walch j.walch at nwe.de
Mon Oct 10 16:06:00 CEST 2005


  >> To solve this problem I will compare the fedora kernel to the vanilla
>> kernel and try to find out which modification causes the aformentioned 
>> problems by removing modifications from the fedora kernel until the 
>> errors are gone.
>>
>> The post is basically to let you know I am on this and probably to 
>> synchronize results with other people.
> 
> 
> Of particular interest to you will be the define NET_26_12_SKALLOC.
> Unfortunately, some Fedora kernels earlier then 2.6.12 had the new skalloc
> code as well.

Before I had a look into the Fedora kernels I made some tests with the 
newest vanilla kernel and I discovered there is some small problem/error 
message when I unload the ipsec module just after loading it. It does 
unload correctly though and the machine keeps stable, but see below for 
more, though!

Oct 10 14:42:34 wsjo kernel: klips_info:ipsec_init: KLIPS startup, 
Openswan KLIPS IPsec stack version: 2.4.0
Oct 10 14:42:34 wsjo kernel: NET: Registered protocol family 15
Oct 10 14:42:34 wsjo kernel: klips_info:ipsec_alg_init: KLIPS alg 
v=0.8.1-0 (EALG_MAX=255, AALG_MAX=251)
Oct 10 14:42:34 wsjo kernel: klips_info:ipsec_alg_init: calling 
ipsec_alg_static_init()
Oct 10 14:42:34 wsjo kernel: ipsec_aes_init(alg_type=15 alg_id=12 
name=aes): ret=0
Oct 10 14:42:34 wsjo kernel: ipsec_3des_init(alg_type=15 alg_id=3 
name=3des): ret=0
Oct 10 14:42:49 wsjo kernel: KLIPS: can not unregister klips_rcv_encap 
function
Oct 10 14:42:49 wsjo kernel:
Oct 10 14:42:49 wsjo kernel: klips_info:pfkey_cleanup: shutting down 
PF_KEY domain sockets.
Oct 10 14:42:49 wsjo kernel: NET: Unregistered protocol family 15
Oct 10 14:42:49 wsjo kernel: Badness in remove_proc_entry at 
fs/proc/generic.c:693
Oct 10 14:42:49 wsjo kernel:  [<c01d71e1>] remove_proc_entry+0x131/0x140
Oct 10 14:42:49 wsjo kernel:  [<e0ca51e9>] ipsec_cleanup+0xc9/0x1a0 [ipsec]
Oct 10 14:42:49 wsjo kernel:  [<e0ca52ed>] cleanup_module+0x1d/0x30 [ipsec]
Oct 10 14:42:49 wsjo kernel:  [<c014aec9>] sys_delete_module+0x119/0x160
Oct 10 14:42:49 wsjo kernel:  [<c0108889>] do_syscall_trace+0x109/0x13d
Oct 10 14:42:49 wsjo kernel:  [<c0103c35>] syscall_call+0x7/0xb
Oct 10 14:42:49 wsjo kernel: klips_info:cleanup_module: ipsec module 
unloaded.

Interestingly enough when I start the ipsec service something crashes. I 
have included a part of the error messages. Tell me if you need more or 
higher debug level. This leads me to the conclusion that the problems 
are not necessarily tied to the Fedora kernel but rather to newer kernel 
versions.

Oct 10 14:49:33 wsjo kernel: ------------[ cut here ]------------
Oct 10 14:49:33 wsjo kernel: kernel BUG at include/linux/module.h:357!
Oct 10 14:49:33 wsjo kernel: invalid operand: 0000 [#1]
Oct 10 14:49:33 wsjo kernel: Modules linked in: ipsec radeon drm 
parport_pc lp parport autofs4 it87 eeprom i2c_sensor i2c_isa i2c_viapro 
i2c_dev i2c_core nfs lockd rfcomm l2cap bluetooth sunrpc dm_mod video 
button battery ac ipv6 uhci_hcd ehci_hcd via_ircc irda crc_ccitt 
snd_via82xx gameport snd_ac97_codec snd_seq_dummy snd_seq_oss 
snd_seq_midi_event snd_seq snd_pcm_oss snd_mixer_oss snd_pcm snd_timer 
snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore 
via_rhine mii floppy ext3 jbd
Oct 10 14:49:33 wsjo kernel: CPU:    0
Oct 10 14:49:33 wsjo kernel: EIP:    0060:[<c0331f32>]    Not tainted VLI
Oct 10 14:49:33 wsjo kernel: EFLAGS: 00010246   (2.6.13.3)
Oct 10 14:49:33 wsjo kernel: EIP is at sk_alloc+0x182/0x190
Oct 10 14:49:33 wsjo kernel: eax: 00000000   ebx: e0cfd780   ecx: 
000000d0   edx: e0cfb760
Oct 10 14:49:33 wsjo kernel: esi: cff04e00   edi: cff04fa0   ebp: 
00000000   esp: de97eefc
Oct 10 14:49:33 wsjo kernel: ds: 007b   es: 007b   ss: 0068
Oct 10 14:49:33 wsjo kernel: Process klipsdebug (pid: 3189, 
threadinfo=de97e000 task=c1c08000)
Oct 10 14:49:33 wsjo kernel: Stack: e0cfb760 0000000f 00000000 c76cf480 
de97e000 00000003 e0cb592b 00000001
Oct 10 14:49:33 wsjo kernel:        00030002 00000296 00000010 00000010 
00000000 c76cf480 0000000f 00000000
Oct 10 14:49:34 wsjo kernel:        c032fb4c 00000000 c1c08000 00000002 
de97ef74 de97ef98 0804f7d4 de97e000
Oct 10 14:49:34 wsjo kernel: Call Trace:
Oct 10 14:49:34 wsjo kernel:  [<e0cb592b>] pfkey_create+0x6b/0x220 [ipsec]
Oct 10 14:49:34 wsjo kernel:  [<c032fb4c>] __sock_create+0xdc/0x200
Oct 10 14:49:34 wsjo kernel:  [<c032fc86>] sock_create+0x16/0x20
Oct 10 14:49:34 wsjo kernel:  [<c032fccc>] sys_socket+0x1c/0x50
Oct 10 14:49:34 wsjo kernel:  [<c0330e32>] sys_socketcall+0x92/0x2a0
Oct 10 14:49:34 wsjo kernel:  [<c0108889>] do_syscall_trace+0x109/0x13d
Oct 10 14:49:34 wsjo kernel:  [<c0103c35>] syscall_call+0x7/0xb
Oct 10 14:49:34 wsjo kernel: Code: 18 89 50 1c e9 e0 fe ff ff 8b 14 24 
8b 42 6c 89 da e8 23 0c e3 ff 89 c6 e9 bc fe ff ff 89 f0 31 f6 e8 63 0d 
e3 ff e9 f5 fe ff ff <0f> 0b 65 01 5b 63 3c c0 e9 e2 fe ff ff 90 56 53 
89 c3 83 ec 0c

--
johannes walch


More information about the Dev mailing list