From: Herbert Xu Date: Tue, 5 Nov 2013 11:36:27 +0000 (+0800) Subject: crypto: s390 - Fix aes-cbc IV corruption X-Git-Tag: v3.13-rc2~35^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f262f0f5cad0c9eca61d1d383e3b67b57dcbe5ea;p=pandora-kernel.git crypto: s390 - Fix aes-cbc IV corruption The cbc-aes-s390 algorithm incorrectly places the IV in the tfm data structure. As the tfm is shared between multiple threads, this introduces a possibility of data corruption. This patch fixes this by moving the parameter block containing the IV and key onto the stack (the block is 48 bytes long). The same bug exists elsewhere in the s390 crypto system and they will be fixed in subsequent patches. Cc: stable@vger.kernel.org Signed-off-by: Herbert Xu --- Reading git-diff-tree failed