Re: [PATCH] crypto: s390 - fix des and des3_ede ctr concurrency issue

2014-01-30 Thread Herbert Xu
On Wed, Jan 22, 2014 at 01:01:33PM +0100, Harald Freudenberger wrote: In s390 des and 3des ctr mode there is one preallocated page used to speed up the en/decryption. This page is not protected against concurrent usage and thus there is a potential of data corruption with multiple threads.

[PATCH] crypto: s390 - fix des and des3_ede ctr concurrency issue

2014-01-22 Thread Harald Freudenberger
In s390 des and 3des ctr mode there is one preallocated page used to speed up the en/decryption. This page is not protected against concurrent usage and thus there is a potential of data corruption with multiple threads. The fix introduces locking/unlocking the ctr page and a slower fallback