Re: [PATCH] s390/crypto: fix aes ctr concurrency issue

2013-11-22 Thread Gerald Schaefer
On Tue, 19 Nov 2013 11:22:11 +0100 Harald Freudenberger wrote: > The aes-ctr mode used one preallocated page without any concurrency > protection. When multiple threads run aes-ctr encryption or decryption > this could lead to data corruption. > > The patch introduces locking for the preallocate

Re: [PATCH] crypto: s390 - Fix aes-xts parameter corruption

2013-11-22 Thread Gerald Schaefer
On Tue, 19 Nov 2013 17:12:47 +0100 Gerald Schaefer wrote: > Some s390 crypto algorithms incorrectly use the crypto_tfm structure > to store private data. As the tfm can be shared among multiple > threads, this can result in data corruption. > > This patch fixes aes-xts by moving

[PATCH] crypto: s390 - Fix aes-xts parameter corruption

2013-11-19 Thread Gerald Schaefer
-off-by: Gerald Schaefer --- arch/s390/crypto/aes_s390.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c index 4363528..b3feabd 100644 --- a/arch/s390/crypto/aes_s390.c +++ b/arch/s390