]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: s390 - fix des and des3_ede cbc concurrency issue
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Wed, 22 Jan 2014 12:00:04 +0000 (13:00 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 Jan 2014 13:45:11 +0000 (21:45 +0800)
commitadc3fcf1552b6e406d172fd9690bbd1395053d13
treed10b74782748dade0df03c287f3d52455ef9493b
parent0519e9ad89e5cd6e6b08398f57c6a71d9580564c
crypto: s390 - fix des and des3_ede cbc concurrency issue

In s390 des and des3_ede cbc mode the iv value is not protected
against concurrency access and modifications from another running
en/decrypt operation which is using the very same tfm struct
instance. This fix copies the iv to the local stack before
the crypto operation and stores the value back when done.

Cc: stable@vger.kernel.org
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/s390/crypto/des_s390.c