2007-11-25 11:46:05

by Mikko Herranen

[permalink] [raw]
Subject: Givcipher bug?

Hi Herbert,

The newest cryptodev kernel hangs on "testing ctr(aes,4,8,4) encryption"
in tcrypt. Stack trace:

[<c0291520>] schedule_timeout+0x6a/0xa4
[<c0291383>] wait_for_common+0xad/0x104
[<c0291433>] wait_for_completion+0x12/0x14
[<c012a509>] call_usermodehelper_exec+0x76/0x8a
[<c012a679>] request_module+0x98/0xdc
[<c01c5be3>] crypto_larval_lookup+0x56/0x136
[<d20213f9>] crypto_givcipher_default+0x20/0x11c [crypto_blkcipher]
[<d2021512>] crypto_init_blkcipher_ops+0x1d/0xb7 [crypto_blkcipher]
[<c01c5864>] __crypto_alloc_tfm+0x5c/0x122
[<c01c5d9b>] crypto_alloc_base+0x31/0x6a
[<d20c497e>] test_cipher+0xda/0x814 [tcrypt]
[<d202751e>] init+0x151e/0x192b [tcrypt]
[<c0141505>] sys_init_module+0x122/0x1959
[<c0103f9e>] sysenter_past_esp+0x5f/0xa5

--
Mikko Herranen


2007-11-25 16:09:10

by Herbert Xu

[permalink] [raw]
Subject: Re: Givcipher bug?

On Sun, Nov 25, 2007 at 01:45:20PM +0200, Mikko Herranen wrote:
> Hi Herbert,
>
> The newest cryptodev kernel hangs on "testing ctr(aes,4,8,4) encryption"
> in tcrypt. Stack trace:

OK, all the IV generators are broken. They just happened to
work by chance on everything apart from CTR.

The problem is that I was thinking of making the IV generators
as special crypto_instance objects that simply extended existing
algorithms without spawning.

Somehow I ended up writing them as normal spawns.

So I'm going to fix that up and repost them.

Thanks,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt