Re: [PATCH 01/16] crypto: prevent helper ciphers from being used

2015-03-19 Thread Herbert Xu
On Thu, Mar 19, 2015 at 08:23:58AM +0100, Stephan Mueller wrote: > > How can you distinguish between calls coming from crypto_*_spawn (which > we need to allow) and calls that come from the normal API calls (which > we should block? crypto_*_spawn should not be the place where you make the call

Re: [PATCH 01/16] crypto: prevent helper ciphers from being used

2015-03-19 Thread Stephan Mueller
Am Donnerstag, 19. März 2015, 18:16:30 schrieb Herbert Xu: Hi Herbert, >On Thu, Mar 19, 2015 at 07:57:36AM +0100, Stephan Mueller wrote: >> diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c >> index db201bca..2cd83ad 100644 >> --- a/crypto/ablkcipher.c >> +++ b/crypto/ablkcipher.c >> @@ -688

Re: [PATCH 01/16] crypto: prevent helper ciphers from being used

2015-03-19 Thread Herbert Xu
On Thu, Mar 19, 2015 at 07:57:36AM +0100, Stephan Mueller wrote: > > diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c > index db201bca..2cd83ad 100644 > --- a/crypto/ablkcipher.c > +++ b/crypto/ablkcipher.c > @@ -688,7 +688,7 @@ struct crypto_ablkcipher *crypto_alloc_ablkcipher(const > char