crypto: s390/ghash - Fix incorrect ghash icv buffer handling.
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Thu, 21 May 2015 08:01:11 +0000 (10:01 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 10 Jun 2015 17:42:28 +0000 (13:42 -0400)
commitf09aa7ad8b9b63548b8e8302b05eefc60c200944
tree2e92401fcbf1ae04d36b6bf64eaaffdc1068faeb
parentbfea0f5c4ba46663fb16ffdab09e57b670e7edcf
crypto: s390/ghash - Fix incorrect ghash icv buffer handling.

[ Upstream commit a1cae34e23b1293eccbcc8ee9b39298039c3952a ]

Multitheaded tests showed that the icv buffer in the current ghash
implementation is not handled correctly. A move of this working ghash
buffer value to the descriptor context fixed this. Code is tested and
verified with an multithreaded application via af_alg interface.

Cc: stable@vger.kernel.org
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Gerald Schaefer <geraldsc@linux.vnet.ibm.com>
Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/s390/crypto/ghash_s390.c