From: Harald Freudenberger Date: Wed, 22 Jan 2014 12:01:33 +0000 (+0100) Subject: crypto: s390 - fix des and des3_ede ctr concurrency issue X-Git-Tag: v3.14-rc2~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee97dc7db4cbda33e4241c2d85b42d1835bc8a35;p=pandora-kernel.git crypto: s390 - fix des and des3_ede ctr concurrency issue 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. Cc: stable@vger.kernel.org Signed-off-by: Harald Freudenberger Signed-off-by: Herbert Xu --- Reading git-diff-tree failed