Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
ipsec.ko generates kernel bugs #65
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.
Feb 14 21:09:50 kvm32-81 smoothd: 4:invoking command ipsecrestart ()
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:
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:
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.
I have the same problem running 3.4.91. Everything higher that 2.6.39 triggers the problem on
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.744661] WARNING: at fs/proc/generic.c:808 remove_proc_entry+0x1ed/0x260()
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
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.