[Openswan Users] openswan 2.4.4-1 on RHEL4

patrick hartemann patrick-hartemann at wanadoo.fr
Sat Feb 25 11:31:44 CET 2006


Paul Wouters wrote:

>On Fri, 24 Feb 2006, Patrick Hartemann wrote:
>
>  
>
>>we've modified, recompiled and installed openswan 2.4.4-1 on RHEL4 - 2.6.9-22.0.2.ELsmp - based on SRPM for fedora4.
>>All seems ok, recompilation and installation, we could modprobe the module ipsec but ....
>>the start of ipsec userland freezes the system, and modprobe -r of module generates a panic.
>>    
>>
>
>How have you "modified" it?
>
>  
>
>>Feb 24 07:24:38 ch-dev-3 kernel: kernel BUG at fs/proc/generic.c:687!
>>Feb 24 07:24:38 ch-dev-3 kernel: invalid operand: 0000 [#1]
>>Feb 24 07:24:38 ch-dev-3 kernel: SMP
>>Feb 24 07:24:38 ch-dev-3 kernel: Modules linked in: ipsec(U) md5 ipv6 button battery ac uhci_hcd snd_ens1371 snd_rawmidi snd_seq_dev
>>    
>>
>
>Can you check out the 2_4_X CVS branch and try that? It has a fix that might
>fix this SMP crasher you are observing.
>
>Paul
>---------------------------------------------------------------------------------------
>Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
>Aucun virus connu a ce jour par nos services n'a ete detecte.
>
>
>
>
>  
>
Hello Paul,

I've tried your suggest (I'm using 2.4.5rc5 vers), and it's working fine 
with a non smp kernel(2.6.9-22.0.2EL) .... :-D
With smp kernel(2.6.9-22.0.2ELsmp), we're getting always same issue ... :-[
During ipsec service start these messages appear on the console :
ipsec_aes_init(alg_type=15 alg_id=12 name=aes): ret=0
ipsec_3des_init(alg_type=15 alg_id=3 name=3des): ret=0
and afterward the system is freezed.

The changes we've made in spec file ,between the original fedora4 specs 
file and own, are :

root at ch-dev-3 SPECS]# diff openswan.spec rhel4.openswan.spec
3c3
< Version: 2.4.4
---
> Version: 2.4.5rc5

5c5
< %{!?buildklips: %{expand: %%define buildklips 0}}
---
> %{!?buildklips: %{expand: %%define buildklips 1}}

11c11
< %define defkv %(rpm -q kernel kernel-smp| grep -v "not installed" | sed
"s/kernel-smp-\\\(.\*\\\)$/\\1smp/"| sed "s/kernel-//"| sort | tail -1)
---
> %define defkv %(rpm -q kernel kernel-smp| grep -v "not installed" | sed

"s/kernel-smp-\\\(.\*\\\)$/\\1smp/"| sed "s/kernel-//"| tail -1)
12a13,14
> %define ksource /usr/src/kernels/%(echo %{kversion} | sed

"s/\\\(.\*\\\)smp$/\\1-smp/")-%{_target_cpu}
>

17c19
< %define ourrelease 1
---
> %define ourrelease 1.el4.act

81a84
> echo %{ksource} - %{kversion}

100c103
<     KERNELSRC=/lib/modules/%{kversion}/build \
---
>     KERNELSRC=%{ksource} \

[root at ch-dev-3 SPECS]#
---------------------------------------------------------------------------------------------------
In fact these are just the right directories def to get the kernel source.

Have you an other idea or experience with a smp kernel ?

Best regards

patrick hartemann






-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openswan.org/pipermail/users/attachments/20060225/08deaaa7/attachment.htm


More information about the Users mailing list