From: Mathias Krause Date: Tue, 29 May 2012 23:43:08 +0000 (+0200) Subject: crypto: aesni-intel - fix unaligned cbc decrypt for x86-32 X-Git-Tag: v3.2.21~49 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0084ba7b528dceee67237bb1d61f9e09c6153cfb;p=pandora-kernel.git crypto: aesni-intel - fix unaligned cbc decrypt for x86-32 commit 7c8d51848a88aafdb68f42b6b650c83485ea2f84 upstream. The 32 bit variant of cbc(aes) decrypt is using instructions requiring 128 bit aligned memory locations but fails to ensure this constraint in the code. Fix this by loading the data into intermediate registers with load unaligned instructions. This fixes reported general protection faults related to aesni. References: https://bugzilla.kernel.org/show_bug.cgi?id=43223 Reported-by: Daniel Signed-off-by: Mathias Krause Signed-off-by: Herbert Xu Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed