Skip to content
Commit 4c6ab3ee authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: padlock-sha - Fix stack alignment



The PadLock hardware requires the output buffer for SHA to be
128-bit aligned.  We currentply place the buffer on the stack,
and ask gcc to align it to 128 bits.  That doesn't work on i386
because the kernel stack is only aligned to 32 bits.  This patch
changes the code to align the buffer by hand so that the hardware
doesn't fault on unaligned buffers.

Reported-by: default avatarSéguier Régis <rguier@e-teleport.net>
Tested-by: default avatarSéguier Régis <rguier@e-teleport.net>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 78f28b7c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment