From: Harald Freudenberger Date: Thu, 16 Jan 2014 15:01:11 +0000 (+0100) Subject: crypto: s390 - fix concurrency issue in aes-ctr mode X-Git-Tag: v3.14-rc2~25^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0519e9ad89e5cd6e6b08398f57c6a71d9580564c;p=pandora-kernel.git crypto: s390 - fix concurrency issue in aes-ctr mode The aes-ctr mode uses one preallocated page without any concurrency protection. When multiple threads run aes-ctr encryption or decryption this can lead to data corruption. The patch introduces locking for the page and a fallback solution with slower en/decryption performance in concurrency situations. Cc: stable@vger.kernel.org Signed-off-by: Harald Freudenberger Signed-off-by: Herbert Xu --- Reading git-diff-tree failed