Re: [PATCH]crypto: Fix algorithm and driver duplicate registered

From: Herbert Xu
Date: Mon Nov 23 2009 - 05:52:56 EST


On Mon, Nov 23, 2009 at 12:21:17PM -0500, Youquan,Song wrote:
>
> Sorry for late. I use the cryptodev-2.6 tree, enable AESNI and PCLMULQDQ NI.
>
> Step: like this.
> A. modprobe tcrypt mode=35
> B. modprobe aesni-intel
> C. modprobe tcrypt mode=35
>
> After I do A. Because it do not load aesni-intel, so I do B, then repeat C.
>
> cat /proc/crypto.
>
> there is two identical gcm:
>
> name : gcm(aes)
> driver : gcm_base(ctr-aes-aesni,ghash-clmulni)
> module : gcm
> priority : 400
> refcnt : 1
> selftest : unknown

It's creating a second copy because the first one failed the
self-test.

So you should try to identify the reason for the failed self-test.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/