crypto: aesni_intel - fix accessing of unaligned memory
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Tue, 11 Jun 2013 19:25:22 +0000 (22:25 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Jun 2013 06:57:42 +0000 (14:57 +0800)
The new XTS code for aesni_intel uses input buffers directly as memory operands
for pxor instructions, which causes crash if those buffers are not aligned to
16 bytes.

Patch changes XTS code to handle unaligned memory correctly, by loading memory
with movdqu instead.

Reported-by: Dave Jones <davej@redhat.com>
Tested-by: Dave Jones <davej@redhat.com>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

No differences found