crypto: s390 - Fix aes-xts parameter corruption
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Tue, 19 Nov 2013 16:12:47 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Dec 2013 06:36:26 +0000 (22:36 -0800)
commitda94360f55be9d57c866f4d6b0861d9ecd1a1aeb
treed63fa01918c05d7216a85c5e8b97441757c6f27a
parent87a226e9df5efd1c7d26756fab9e9f29a267ac47
crypto: s390 - Fix aes-xts parameter corruption

commit 9dda2769af4f3f3093434648c409bb351120d9e8 upstream.

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 the xts and pcc parameter blocks from
the tfm onto the stack (48 + 96 bytes).

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/crypto/aes_s390.c