Re: [PATCH v2] crypto/ansi prng: alloc cipher just in in init()

2009-07-02 Thread Herbert Xu
On Wed, Jul 01, 2009 at 06:36:16AM -0400, Neil Horman wrote: > > Herbert, can you pull this into cryptodev please? Both patches applied. Thanks everyone! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://go

Re: [PATCH v2] crypto/ansi prng: alloc cipher just in in init()

2009-07-01 Thread Neil Horman
On Wed, Jul 01, 2009 at 09:25:17AM +0200, Sebastian Andrzej Siewior wrote: > * Neil Horman | 2009-06-30 20:06:48 [-0400]: > > >I think this looks better, yeah, have you tested this? If not, give it a > >quick > >run please, and I'll ack it. > I've built it and started > | modprobe tcrypt mode=15

Re: [PATCH v2] crypto/ansi prng: alloc cipher just in in init()

2009-07-01 Thread Sebastian Andrzej Siewior
* Neil Horman | 2009-06-30 20:06:48 [-0400]: >I think this looks better, yeah, have you tested this? If not, give it a quick >run please, and I'll ack it. I've built it and started | modprobe tcrypt mode=150 and I ended up with: | alg: No test for stdrng (ansi_cprng) So this should be fine I gue

Re: [PATCH v2] crypto/ansi prng: alloc cipher just in in init()

2009-06-30 Thread Neil Horman
On Tue, Jun 30, 2009 at 09:55:18PM +0200, Sebastian Andrzej Siewior wrote: > As reported by Eric Sesterhenn the re-allocation of the cipher in reset leads > to: > |BUG: sleeping function called from invalid context at kernel/rwsem.c:21 > |in_atomic(): 1, irqs_disabled(): 0, pid: 4926, name: modprob

[PATCH v2] crypto/ansi prng: alloc cipher just in in init()

2009-06-30 Thread Sebastian Andrzej Siewior
As reported by Eric Sesterhenn the re-allocation of the cipher in reset leads to: |BUG: sleeping function called from invalid context at kernel/rwsem.c:21 |in_atomic(): 1, irqs_disabled(): 0, pid: 4926, name: modprobe |INFO: lockdep is turned off. |Pid: 4926, comm: modprobe Tainted: G M 2.6.31-rc