diff options
author | Gerald Schaefer <gerald.schaefer@de.ibm.com> | 2013-11-19 17:12:47 +0100 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2014-01-03 04:33:26 +0000 |
commit | 8ccf25d7c6295ab6112711419d3c056a2331e430 (patch) | |
tree | 75d24a2727017c8876ab991420e09d8b13c44b2f /crypto | |
parent | ae77e5647c092c36b89db2db86b19df23fcaa51b (diff) | |
download | kernel_samsung_smdk4412-8ccf25d7c6295ab6112711419d3c056a2331e430.zip kernel_samsung_smdk4412-8ccf25d7c6295ab6112711419d3c056a2331e430.tar.gz kernel_samsung_smdk4412-8ccf25d7c6295ab6112711419d3c056a2331e430.tar.bz2 |
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>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions