Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-19 Thread cristian.sto...@freescale.com
Hi Nikos, I can confirm that this issue is fixed in kernel in 77dbd7a95. The issue and the patch were discussed in http://www.mail-archive.com/linux-crypto@vger.kernel.org/msg09416.html Thanks to Horia for mentioning the patch. Cristian S. > > Just for reference, I've found a possible workarou

Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-06 Thread Nikos Mavrogiannopoulos
On Fri, Dec 6, 2013 at 1:22 PM, Cristian Stoica wrote: > Hi Nikos, > > Just for reference, I've found a possible workaround for this problem. > I could not reproduce the issue after I disabled in openssl eng_cryptodev.c > all the algorithms and digests that were not available in the kernel. > Pro

Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-06 Thread Cristian Stoica
Hi Nikos, Just for reference, I've found a possible workaround for this problem. I could not reproduce the issue after I disabled in openssl eng_cryptodev.c all the algorithms and digests that were not available in the kernel. Probably, it can be just as simple to recompile the kernel with suppor

Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-05 Thread Nikos Mavrogiannopoulos
On Wed, Dec 4, 2013 at 5:59 PM, Cristian Stoica wrote: >> That's pretty strange as the issue is a crash on crypto_alloc_ahash() >> which only includes the hash name parameter. If you protect the >> cryptodev_cipher_init and cryptodev_hash_init with a mutex does it help? > [] > I've guarded both cr

Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-04 Thread Cristian Stoica
> That's pretty strange as the issue is a crash on crypto_alloc_ahash() > which only includes the hash name parameter. If you protect the > cryptodev_cipher_init and cryptodev_hash_init with a mutex does it help? [] I've guarded both cryptodev_cipher_init and cryptodev_hash_init and the crash re

Re: [Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-03 Thread Nikos Mavrogiannopoulos
On Tue, 2013-12-03 at 09:41 +, Cristian Stoica wrote: > Hi Nikos, > > I'm investigating a kernel crash that happens fairly quickly when multiple > cryptodev sessions are opened in parallel. > I've tested the issue both on intel and power_pc and the traces are similar. > There is no support f

[Cryptodev-linux-devel] kernel crash during crypto_create_session

2013-12-03 Thread Cristian Stoica
Hi Nikos, I'm investigating a kernel crash that happens fairly quickly when multiple cryptodev sessions are opened in parallel. I've tested the issue both on intel and power_pc and the traces are similar. There is no support for hardware offloading in kernel - all algorithms in kernel space are