[Openswan Users] Cause of kernel bug in AES_set_key

David McCullough david_mccullough at mcafee.com
Thu Apr 15 18:34:03 EDT 2010


Jivin Paul Wouters lays it down ...
> On Thu, 15 Apr 2010, David McCullough wrote:
> 
> >> BUG: unable to handle kernel NULL pointer dereference at 00000000
> >> IP: [<f865a6ad>] aes_32+0x3/0x496 [ipsec]
> 
> >> (last checked: kernel 2.6.31.13 and openswan 2.6.24). I couldn't check
> >> openswan 2.6.25 due to an other problem but never mind. Configuring
> >> CONFIG_FRAME_POINTER=y always gave me the kernel bug and changing it to
> >> disabled did the trick.
> >
> > Ok,  the problem is in the assembly, openswan only builds the assembler
> > versions for i386 with CONFIG_FRAME_POINTER=y,  everything else uses the 'C'
> > code.
> >
> > A simple patch that should allow you to use CONFIG_FRAME_POINTER=y is
> > attached,
> 
> I could swear that this was already patched in the tree a long time ago when this
> came up before?

You are probably recalling the des patch. The Makefile in the "des" directory
has been patched,  but I think on 2.6 the ipsec Makefile needed patching,
either way, the aes dir and the ipsec dir were not patched.

Did you want to commit this ?

Cheers,
Davidm

-- 
David McCullough,      david_mccullough at mcafee.com,  Ph:+61 734352815
McAfee - SnapGear      http://www.mcafee.com         http://www.uCdot.org


More information about the Users mailing list