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.2.56~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60745e70f4b4725a1ae9387af914de0d25470491;p=pandora-kernel.git 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 Signed-off-by: Herbert Xu Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed