diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2014-01-22 12:01:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-20 19:07:58 (GMT) |
commit | 9d5e3b525d415308035071a009e0353d11d5c0ce (patch) | |
tree | 95d4b64870bcf61456b524b8d55be9f853be7b95 /mm/page_alloc.c | |
parent | 6414e5ed784678a379e0f4afb023f9cc643e1b33 (diff) | |
download | linux-fsl-qoriq-9d5e3b525d415308035071a009e0353d11d5c0ce.tar.xz |
crypto: s390 - fix des and des3_ede ctr concurrency issue
commit ee97dc7db4cbda33e4241c2d85b42d1835bc8a35 upstream.
In s390 des and 3des ctr mode there is one preallocated page
used to speed up the en/decryption. This page is not protected
against concurrent usage and thus there is a potential of data
corruption with multiple threads.
The fix introduces locking/unlocking the ctr page and a slower
fallback solution at concurrency situations.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions