From: Jussi Kivilinna Date: Tue, 21 May 2013 14:09:41 +0000 (+0300) Subject: crypto: sha256_ssse3 - fix stack corruption with SSSE3 and AVX implementations X-Git-Tag: v3.10-rc4~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de614e561b9c633073caae8f86399aa8923ef85d;p=pandora-kernel.git crypto: sha256_ssse3 - fix stack corruption with SSSE3 and AVX implementations The _XFER stack element size was set too small, 8 bytes, when it needs to be 16 bytes. As _XFER is the last stack element used by these implementations, the 16 byte stores with 'movdqa' corrupt the stack where the value of register %r12 is temporarily stored. As these implementations align the stack pointer to 16 bytes, this corruption did not happen every time. Patch corrects this issue. Reported-by: Julian Wollrath Signed-off-by: Jussi Kivilinna Tested-by: Julian Wollrath Acked-by: Tim Chen Signed-off-by: Herbert Xu --- Reading git-diff-tree failed