ipsec.ko generates kernel bugs #65

Open
fest3er opened this Issue Feb 15, 2014 · 6 comments

Comments

Projects
None yet
6 participants
@fest3er

fest3er commented Feb 15, 2014

I built 2.6.40 for Smoothwall 3.1. It seems to work OK; talked nicely to a v2.6.39 instance. Then I restarted. A kernel bug resulted. Doesn't happen on v2.6.39.

System is 32-bit. Linux is 3.4.78. The test system is running in a KVM on 64-bit Debian Wheezy.

What other info do you need? Other pkg versions? My build log?

I haven't built 64-bit yet.

Neal


Feb 14 21:09:50 kvm32-81 smoothd: 4:invoking command ipsecrestart ()
Feb 14 21:09:50 kvm32-81 ipsec_setup: Stopping Openswan IPsec...
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.654670] IPSEC EVENT: KLIPS device ipsec0 shut down.
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.655295] ip used greatest stack depth: 5684 bytes left
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.702633]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.718664] BUG: unable to handle kernel NULL pointer dereference at 0000041e
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.718941] IP: [] remove_proc_entry+0x76/0x210
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719137] *pde = 00000000
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719250] Oops: 0000 [#1] PREEMPT SMP
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719408] Modules linked in: ipsec(O-) camellia_generic lzo cast6 deflate zlib_deflate cts ctr gcm ccm ecb xcbc sha256_generic sha512_generic geode_aes ip6t_REJECT ip6table_mangle ip6table_filter act_police sch_ingress nf_nat_pptp nf_nat_proto_gre nf_conntrack_pptp nf_conntrack_proto_gre nf_nat_ftp nf_conntrack_ftp nf_nat_irc nf_conntrack_irc xt_time xt_iprange xt_mac xt_length xt_mark xt_ipp2p(O) xt_dscp xt_connmark xt_multiport xt_state xt_DSCP xt_CLASSIFY xt_ACCOUNT(O) compat_xtables(O) ip6_tables ipt_MASQUERADE ipt_REDIRECT ipt_REJECT xt_LOG iptable_mangle iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_hfsc sch_gred sch_dsmark sch_cbq cls_u32 cls_tcindex cls_route cls_fw cls_flow cls_basic ppp_async crc_ccitt ppp_synctty ppp_generic slhc blowfish_generic blowfish_common cast5 serpent_sse2_i586 cryptd lrw serpent_generic xts gf128mul twofish_generic twofish_i586 twofish_common vfat
msdos fa
Feb 14 21:09:51 kvm32-81 kernel: parport_pc parport ext4 mbcache jbd2 crc16 ata_generic uhci_hcd usbcore pata_acpi i2c_piix4 pcspkr rtc_cmos e1000 floppy usb_common ata_piix libata processor [last unloaded: ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] Pid: 2801, comm: rmmod Tainted: G W O 3.4.78 #1 Bochs Bochs
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] EIP: 0060:[] EFLAGS: 00010202 CPU: 3
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] EIP is at remove_proc_entry+0x76/0x210
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] EAX: dbc8b16f EBX: 000003d0 ECX: 00000007 EDX: 0000002f
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] ESI: 00000006 EDI: de4d1628 EBP: dd003e00 ESP: dd003db4
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
Feb 14 21:09:51 kvm32-81 ipsec_setup: Killed
Feb 14 21:09:51 kvm32-81 ipsec_setup: ...Openswan IPsec stopped
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] CR0: 8005003b CR2: 0000041e CR3: 1ce0f000 CR4: 000006d0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] DR6: ffff0ff0 DR7: 00000400
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] Process rmmod (pid: 2801, ti=dd002000 task=dc0c7530 task.ti=dd002000)
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] Stack:
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] c144d5b3 00000000 dd003dc4 c144a318 dd003dd8 c1366679 c1661114 dbc8b16f
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] c1ce0000 dbc8b16f de4d1600 dbc8b16f dd003e0c c137ccd3 c1661128 c1661000
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] c1d6e600 c1d6e600 00000001 dd003e0c c1429f8a c1d6e600 dd003e44 c1408bed
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] Call Trace:
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? sub_preempt_count+0x43/0xb0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? _raw_spin_unlock_irqrestore+0x18/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? skb_dequeue+0x49/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? neigh_ifdown+0x93/0xd0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] snmp6_unregister_dev+0x2a/0x50
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] addrconf_ifdown+0x23d/0x290
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? neigh_ifdown+0x93/0xd0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] addrconf_notify+0xc1/0x3d0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] notifier_call_chain+0x43/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] __raw_notifier_call_chain+0x19/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] raw_notifier_call_chain+0x1a/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] call_netdevice_notifiers+0x27/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? dev_shutdown+0x77/0xa0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] rollback_registered_many+0x113/0x200
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? drop_sysctl_table+0x53/0xb0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] rollback_registered+0x28/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] unregister_netdevice_queue+0x5f/0xc0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? get_parent_ip+0xb/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] unregister_netdev+0x14/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ipsec_tunnel_cleanup_devices+0x4c/0x160 [ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] cleanup_module+0x26/0x280 [ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? module_refcount+0x72/0x90
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] sys_delete_module+0x107/0x250
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] ? arch_trampoline_kprobe+0x10/0x10
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] [] syscall_call+0x7/0xb
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] Code: 45 dc 8b 58 28 8d 78 28 85 db 0f 84 1d 01 00 00 8b 45 e0 89 45 d0 eb 13 90 8d 74 26 00 8d 7b 20 8b 5b 20 85 db 0f 84 02 01 00 00 <0f> b6 43 4e 39 c6 75 ea 8d 43 4f 89 f1 89 45 d4 89 c2 8b 45 d0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] EIP: [] remove_proc_entry+0x76/0x210 SS:ESP 0068:dd003db4
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.719581] CR2: 000000000000041e
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.747199] ---[ end trace 0cd5b686a601171b ]---
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.747612] note: rmmod[2801] exited with preempt_count 1
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748063] BUG: scheduling while atomic: rmmod/2801/0x10000002
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748513] Modules linked in: ipsec(O-) camellia_generic lzo cast6 deflate zlib_deflate cts ctr gcm ccm ecb xcbc sha256_generic sha512_generic geode_aes ip6t_REJECT ip6table_mangle ip6table_filter act_police sch_ingress nf_nat_pptp nf_nat_proto_gre nf_conntrack_pptp nf_conntrack_proto_gre nf_nat_ftp nf_conntrack_ftp nf_nat_irc nf_conntrack_irc xt_time xt_iprange xt_mac xt_length xt_mark xt_ipp2p(O) xt_dscp xt_connmark xt_multiport xt_state xt_DSCP xt_CLASSIFY xt_ACCOUNT(O) compat_xtables(O) ip6_tables ipt_MASQUERADE ipt_REDIRECT ipt_REJECT xt_LOG iptable_mangle iptable_nat nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables sch_teql sch_tbf sch_sfq sch_red sch_prio sch_htb sch_hfsc sch_gred sch_dsmark sch_cbq cls_u32 cls_tcindex cls_route cls_fw cls_flow cls_basic ppp_async crc_ccitt ppp_synctty ppp_generic slhc blowfish_generic blowfish_common cast5 serpent_sse2_i586 cryptd lrw serpent_generic xts gf128mul twofish_generic twofish_i586 twofish_common vfat
msdos fa
Feb 14 21:09:51 kvm32-81 kernel: parport_pc parport ext4 mbcache jbd2 crc16 ata_generic uhci_hcd usbcore pata_acpi i2c_piix4 pcspkr rtc_cmos e1000 floppy usb_common ata_piix libata processor [last unloaded: ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748545] Pid: 2801, comm: rmmod Tainted: G D W O 3.4.78 #1
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748546] Call Trace:
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748549] [] __schedule_bug+0x4d/0x4f
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748551] [] __schedule+0x6b1/0x7a0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748554] [] ? free_pages_prepare+0xcb/0x140
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748558] [] ? __dec_zone_state+0x65/0x70
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748560] [] __cond_resched+0x12/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748562] [] _cond_resched+0x25/0x30
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748564] [] unmap_single_vma+0x4a5/0x5e0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748566] [] unmap_vmas+0x48/0x80
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748569] [] exit_mmap+0x78/0x110
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748571] [] ? _raw_spin_lock_irqsave+0x1f/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748573] [] mmput+0x4e/0xe0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748575] [] exit_mm+0xdc/0x100
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748577] [] do_exit+0x119/0x860
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748579] [] ? printk+0x18/0x1a
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748581] [] oops_end+0x69/0x90
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748583] [] ? printk+0x18/0x1a
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748584] [] no_context+0x17a/0x182
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748586] [] __bad_area_nosemaphore+0x162/0x16a
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748588] [] ? __mmdrop+0x4e/0x80
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748589] [] ? get_parent_ip+0xb/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748591] [] ? get_parent_ip+0xb/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748593] [] ? arch_trampoline_kprobe+0x10/0x10
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748595] [] bad_area_nosemaphore+0x12/0x14
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748597] [] do_page_fault+0x28c/0x430
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748600] [] ? extract_buf+0xd8/0x1d0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748602] [] ? extract_entropy+0x6d/0x100
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748604] [] ? arch_trampoline_kprobe+0x10/0x10
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748606] [] do_async_page_fault+0x28/0x70
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748608] [] error_code+0x5a/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748611] [] ? arch_trampoline_kprobe+0x10/0x10
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748613] [] ? remove_proc_entry+0x76/0x210
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748614] [] ? sub_preempt_count+0x43/0xb0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748616] [] ? _raw_spin_unlock_irqrestore+0x18/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748618] [] ? skb_dequeue+0x49/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748620] [] ? neigh_ifdown+0x93/0xd0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748622] [] snmp6_unregister_dev+0x2a/0x50
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748624] [] addrconf_ifdown+0x23d/0x290
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748625] [] ? neigh_ifdown+0x93/0xd0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748627] [] addrconf_notify+0xc1/0x3d0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748629] [] notifier_call_chain+0x43/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748631] [] __raw_notifier_call_chain+0x19/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748633] [] raw_notifier_call_chain+0x1a/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748635] [] call_netdevice_notifiers+0x27/0x60
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748637] [] ? dev_shutdown+0x77/0xa0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748638] [] rollback_registered_many+0x113/0x200
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748640] [] ? drop_sysctl_table+0x53/0xb0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748644] [] rollback_registered+0x28/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748646] [] unregister_netdevice_queue+0x5f/0xc0
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748648] [] ? get_parent_ip+0xb/0x40
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748649] [] unregister_netdev+0x14/0x20
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748653] [] ipsec_tunnel_cleanup_devices+0x4c/0x160 [ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748656] [] cleanup_module+0x26/0x280 [ipsec]
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748658] [] ? module_refcount+0x72/0x90
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748659] [] sys_delete_module+0x107/0x250
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748662] [] ? arch_trampoline_kprobe+0x10/0x10
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748664] [] syscall_call+0x7/0xb
Feb 14 21:09:51 kvm32-81 kernel: [ 1207.748766] rmmod used greatest stack depth: 5628 bytes left

@tisj

This comment has been minimized.

Show comment
Hide comment
@tisj

tisj Mar 7, 2014

I can second this defect, which only happens on kernels < 3.9.0 where remove_proc_subtree function does not exist (yet). A supposed backport is added to openswan which would implement the same for older kernels, but it is incorrect and never accepted upstream (it actually removes everything under /proc/net/* when the ipsec module is unloaded). I posted a patch on de openswan-dev mailing list for this, see:

https://lists.openswan.org/pipermail/dev/2014-March/003112.html
http://marc.info/?l=openswan-dev&m=139421370112048&w=2

tisj commented Mar 7, 2014

I can second this defect, which only happens on kernels < 3.9.0 where remove_proc_subtree function does not exist (yet). A supposed backport is added to openswan which would implement the same for older kernels, but it is incorrect and never accepted upstream (it actually removes everything under /proc/net/* when the ipsec module is unloaded). I posted a patch on de openswan-dev mailing list for this, see:

https://lists.openswan.org/pipermail/dev/2014-March/003112.html
http://marc.info/?l=openswan-dev&m=139421370112048&w=2

@fest3er

This comment has been minimized.

Show comment
Hide comment
@fest3er

fest3er Mar 7, 2014

Oddly, after I rebuilt the kernel, I could not reproduce this particular problem even after trying 10-15 versions of openswan (with Patrick's help). But I was 'reliably' getting a whole bunch of the messages containing info like:

...
Pid: 3558, comm: rmmod Tainted: P W O 3.2-axs-1 #1
Call Trace:
[] warn_slowpath_common+0x6d/0xa0
[] ? remove_proc_entry+0x193/0x1f0
[] ? remove_proc_entry+0x193/0x1f0
[] warn_slowpath_fmt+0x2e/0x30
[] remove_proc_entry+0x193/0x1f0
[] ? backport_proc_subdir_remove+0x26/0x30 [ipsec]
...

To be fair, I'd been having memory problems. I bought new RAM which, after sufficient tweaking, seemed to fix the problem. But apparently when RAM was approaching being filled, the system would still generate some sort of memory error; the error could've been in the compiled code. It could've been a mainboard problem or a failure in my quad Phenom II (memory controller).

I haven't been able to reproduce this particular problem since. And I purchased new hardware (needed an 8-way CPU anyway).

So. If you're certain the BUGs I reported are directly related to the patches you mentioned, leave this report open. Otherwise, it should probably be attributed to my faulty hardware and closed.

fest3er commented Mar 7, 2014

Oddly, after I rebuilt the kernel, I could not reproduce this particular problem even after trying 10-15 versions of openswan (with Patrick's help). But I was 'reliably' getting a whole bunch of the messages containing info like:

...
Pid: 3558, comm: rmmod Tainted: P W O 3.2-axs-1 #1
Call Trace:
[] warn_slowpath_common+0x6d/0xa0
[] ? remove_proc_entry+0x193/0x1f0
[] ? remove_proc_entry+0x193/0x1f0
[] warn_slowpath_fmt+0x2e/0x30
[] remove_proc_entry+0x193/0x1f0
[] ? backport_proc_subdir_remove+0x26/0x30 [ipsec]
...

To be fair, I'd been having memory problems. I bought new RAM which, after sufficient tweaking, seemed to fix the problem. But apparently when RAM was approaching being filled, the system would still generate some sort of memory error; the error could've been in the compiled code. It could've been a mainboard problem or a failure in my quad Phenom II (memory controller).

I haven't been able to reproduce this particular problem since. And I purchased new hardware (needed an 8-way CPU anyway).

So. If you're certain the BUGs I reported are directly related to the patches you mentioned, leave this report open. Otherwise, it should probably be attributed to my faulty hardware and closed.

@xelerance

This comment has been minimized.

Show comment
Hide comment
@xelerance

xelerance Mar 14, 2014

Owner

We have received a patch proposal to fix this. Hang tight.

Owner

xelerance commented Mar 14, 2014

We have received a patch proposal to fix this. Hang tight.

@heil

This comment has been minimized.

Show comment
Hide comment
@heil

heil Jun 11, 2014

I have the same problem running 3.4.91. Everything higher that 2.6.39 triggers the problem on
/etc/iniit.d/ipsec restart
I got

logread | grep -i warnin

Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.891422] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.337737] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()

Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.744661] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()

and
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.766889] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.778426] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.787340] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.797199] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.806154] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.814664] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.824455] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.832844] [] ? ipsec_proc_cleanup+0x98/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.844640] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.853879] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.861654] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.869621] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.878641] ---[ end trace f55d7bac65aa4898 ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.883399] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.891422] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.917547] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.921742] name 'ipsec_tncfg'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.926657] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.154589] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.166320] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.170439] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.179244] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.187917] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.198904] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.215695] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.227195] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.238369] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.250458] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.261349] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.270761] [] ? ipsec_proc_cleanup+0xab/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.283449] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.295615] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.305423] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.310470] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.318726] ---[ end trace f55d7bac65aa4899 ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.326914] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.337737] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.348541] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.352635] name 'ipsec_version'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.357959] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.590684] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.601691] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.605953] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.614848] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.624422] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.634416] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.640696] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.649774] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.657557] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.666669] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.675725] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.684455] [] ? ipsec_proc_cleanup+0xbe/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.694056] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.702686] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.711770] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.719762] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.727870] ---[ end trace f55d7bac65aa489a ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.735355] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.744661] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.754940] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.759340] name 'ipsec'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.763849] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.988649] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.998915] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.004638] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.015798] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.024484] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.031934] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.042479] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.050505] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.058782] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.071869] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.081252] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.092457] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.100316] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.108424] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.123450] ---[ end trace f55d7bac65aa489b ]---
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.375456] klips_info:ipsec_init: KLIPS startup, Openswan KLIPS IPsec stack version: 2.6.40
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.385919] NET: Registered protocol family 15
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.404274] registered KLIPS /proc/sys/net
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.405971] klips_info:ipsec_alg_init: KLIPS alg v=0.8.1-0 (EALG_MAX=255, AALG_MAX=255)
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.423905] klips_info:ipsec_alg_init: calling ipsec_alg_static_init()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.458660] ipsec_aes_init(alg_type=15 alg_id=12 name=aes): ret=0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.477184] ipsec_aes_init(alg_type=14 alg_id=9 name=aes_mac): ret=0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.493176] ipsec_3des_init(alg_type=15 alg_id=3 name=3des): ret=0
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.505558] KLIPS cryptoapi interface: alg_type=15 alg_id=12 name=cbc(aes) keyminbits=128 keymaxbits=256, found(0)
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.538420] KLIPS: lookup for ciphername=cbc(twofish): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.577243] KLIPS: lookup for ciphername=cbc(serpent): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.602954] KLIPS: lookup for ciphername=cbc(cast5): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.622517] KLIPS: lookup for ciphername=cbc(blowfish): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.642836] KLIPS cryptoapi interface: alg_type=15 alg_id=3 name=cbc(des3_ede) keyminbits=192 keymaxbits=192, found(0)
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.712571]

Wed Jun 11 22:16:45 2014 daemon.err ipsec_setup: ...Openswan IPsec stopped

I will try the patch from https://lists.openswan.org/pipermail/dev/2014-March/003112.html

heil commented Jun 11, 2014

I have the same problem running 3.4.91. Everything higher that 2.6.39 triggers the problem on
/etc/iniit.d/ipsec restart
I got

logread | grep -i warnin

Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.891422] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.337737] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()

Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.744661] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()

and
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.766889] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.778426] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.787340] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.797199] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.806154] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.814664] [] ? ipcomp_zError+0x1b9c7/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.824455] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.832844] [] ? ipsec_proc_cleanup+0x98/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.844640] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.853879] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.861654] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.869621] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.878641] ---[ end trace f55d7bac65aa4898 ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.883399] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.891422] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.917547] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.921742] name 'ipsec_tncfg'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616973.926657] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.154589] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.166320] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.170439] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.179244] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.187917] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.198904] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.215695] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.227195] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.238369] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.250458] [] ? ipcomp_zError+0x1b9e0/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.261349] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.270761] [] ? ipsec_proc_cleanup+0xab/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.283449] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.295615] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.305423] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.310470] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.318726] ---[ end trace f55d7bac65aa4899 ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.326914] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.337737] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.348541] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.352635] name 'ipsec_version'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.357959] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.590684] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.601691] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.605953] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.614848] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.624422] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.634416] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.640696] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.649774] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.657557] [] ? __kmem_cache_destroy+0xf0/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.666669] [] ? ipcomp_zError+0x1b9fa/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.675725] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.684455] [] ? ipsec_proc_cleanup+0xbe/0xbd0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.694056] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.702686] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.711770] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.719762] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.727870] ---[ end trace f55d7bac65aa489a ]---
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.735355] ------------[ cut here ]------------
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.744661] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.754940] Hardware name: KVM
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.759340] name 'ipsec'
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.763849] Modules linked in: ipsec(O-) ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_pe_sip ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh ip_vs evdev virtio_net nf_conntrack_netlink nfnetlink nf_nat_tftp nf_conntrack_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_conntrack_sip nf_nat_pptp nf_conntrack_pptp nf_nat_h323 nf_conntrack_h323 nf_nat_proto_gre nf_conntrack_proto_gre nf_nat_amanda nf_conntrack_amanda nf_conntrack_broadcast xt_policy xt_esp ipt_ah xt_HL xt_hl xt_ecn ipt_ECN xt_CLASSIFY xt_tcpmss xt_statistic xt_length xt_DSCP xt_dscp ipt_NETMAP ipt_REDIRECT ipt_MASQUERADE iptable_nat nf_nat xt_recent xt_helper xt_connmark xt_connbytes pppoe xt_conntrack xt_CT xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6_queue ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 pppox xt_CHECKSUM xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables tunnel4 ppp_async ppp_generic slhc ts_fsm ts_bm ts_kmp libcrc32c crc_ccitt ipv6 virtio_rng sha1_generic hmac des_generic deflate cbc authenc button crc32c zlib_deflate [last unloaded: tunnel6]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.988649] Pid: 3886, comm: rmmod Tainted: G W O 3.4.91 #1
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616974.998915] Call Trace:
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.004638] [] ? warn_slowpath_common+0x79/0xc0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.015798] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.024484] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.031934] [] ? warn_slowpath_fmt+0x45/0x50
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.042479] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.050505] [] ? remove_proc_entry+0x1ed/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.058782] [] ? ipcomp_zError+0x1b972/0x2090a [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.071869] [] ? __kmem_cache_destroy+0xc5/0xf0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.081252] [] ? cleanup_module+0xeb/0x1b0 [ipsec]
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.092457] [] ? sys_delete_module+0x132/0x260
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.100316] [] ? page_fault+0x25/0x30
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.108424] [] ? system_call_fastpath+0x18/0x1d
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.123450] ---[ end trace f55d7bac65aa489b ]---
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.375456] klips_info:ipsec_init: KLIPS startup, Openswan KLIPS IPsec stack version: 2.6.40
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.385919] NET: Registered protocol family 15
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.404274] registered KLIPS /proc/sys/net
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.405971] klips_info:ipsec_alg_init: KLIPS alg v=0.8.1-0 (EALG_MAX=255, AALG_MAX=255)
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.423905] klips_info:ipsec_alg_init: calling ipsec_alg_static_init()
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.458660] ipsec_aes_init(alg_type=15 alg_id=12 name=aes): ret=0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.477184] ipsec_aes_init(alg_type=14 alg_id=9 name=aes_mac): ret=0
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.493176] ipsec_3des_init(alg_type=15 alg_id=3 name=3des): ret=0
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.505558] KLIPS cryptoapi interface: alg_type=15 alg_id=12 name=cbc(aes) keyminbits=128 keymaxbits=256, found(0)
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.538420] KLIPS: lookup for ciphername=cbc(twofish): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.577243] KLIPS: lookup for ciphername=cbc(serpent): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.602954] KLIPS: lookup for ciphername=cbc(cast5): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.622517] KLIPS: lookup for ciphername=cbc(blowfish): not found
Wed Jun 11 22:16:45 2014 kern.info kernel: [616975.642836] KLIPS cryptoapi interface: alg_type=15 alg_id=3 name=cbc(des3_ede) keyminbits=192 keymaxbits=192, found(0)
Wed Jun 11 22:16:45 2014 kern.warn kernel: [616975.712571]

Wed Jun 11 22:16:45 2014 daemon.err ipsec_setup: ...Openswan IPsec stopped

I will try the patch from https://lists.openswan.org/pipermail/dev/2014-March/003112.html

@letoams

This comment has been minimized.

Show comment
Hide comment
@letoams

letoams Jun 12, 2014

Contributor

You can use KLIPS from https://github.com/libreswan/libreswan which works for kernels 3.14 and lower.

Contributor

letoams commented Jun 12, 2014

You can use KLIPS from https://github.com/libreswan/libreswan which works for kernels 3.14 and lower.

@heil

This comment has been minimized.

Show comment
Hide comment
@heil

heil Jun 12, 2014

The patch from https://lists.openswan.org/pipermail/dev/2014-March/003112.html works for me. Thanks for the hint, but Iam using OpenWrt and OpenSwan with KLIPS. Migrating to libreswan will take time.

heil commented Jun 12, 2014

The patch from https://lists.openswan.org/pipermail/dev/2014-March/003112.html works for me. Thanks for the hint, but Iam using OpenWrt and OpenSwan with KLIPS. Migrating to libreswan will take time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment